示例#1
0
        static JsPackageRepository()
        {
            var reglist = JsPackageRegistrationProvider.Packages.OrderBy(p => p.Name);
            foreach (var reg in reglist)
            {
                var package = new JsPackage
                              	{
                              		Name = reg.Name,
                              		Description = reg.Description
                              	};

                var config = new JsPackageConfig(package);
                reg.ConfigureJsPackage(config);
                addTestScriptsToPackage(package);
                addScriptPathToPackage(package);
                addHtmlPathToPackage(package);
                packages.Add(config.Package);
            }
        }
示例#2
0
 public override void ConfigureJsPackage(JsPackageConfig config)
 {
 }
示例#3
0
 public override void ConfigureJsPackage(JsPackageConfig config)
 {
     config.AddDependency("~/Scripts/jquery.ui.widget.js");
     config.AddDependency("~/Scripts/ui.message/ui.message.js");
 }