/// <summary> /// Gets the list of all js files required by the module. /// </summary> /// <param name="language">The language.</param> /// <returns></returns> public String[] GetJsFiles(string language) { if (JsPackages == null) { return(new string[0]); } return(JsPackages.SelectMany(a => a.GetPaths(language)).ToArray()); }
/// <summary> /// Creates the new JS package used by the module. /// </summary> /// <param name="package">The package.</param> /// <returns></returns> public DextopJsResourcePackage CreateJsPackage(String package) { var p = new DextopJsResourcePackage(this, package) { Concate = true, Minify = true, SmartOverwrite = SmartOverwrite }; if (JsPackages == null) { JsPackages = new List <DextopJsResourcePackage>(); } JsPackages.Add(p); return(p); }