コード例 #1
0
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();



            manifest.DefineScript(ResourceName.requireJS).SetUrl(PathBuilder.BuilderScripts("require.js"),
                                                                 PathBuilder.BuilderScripts("require.js")).SetVersion("2.3.5");

            manifest.DefineScript(ResourceName.vueJS).SetUrl(PathBuilder.BuilderScripts("vue.min.js"),
                                                             PathBuilder.BuilderScripts("vue.js")).SetVersion("2.5.16").SetAMD();
        }
コード例 #2
0
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();

            // jQuery.
            manifest.DefineScript(ResourceName.jquery).SetUrl(PathBuilder.BuilderScripts("jquery-1.9.1.min.js"),
                                                              PathBuilder.BuilderScripts("jquery-1.9.1.js")).SetVersion("1.9.1").SetAMD();


            manifest.DefineScript(ResourceName.jquery_validate).SetUrl("lib/jquery-validation/dist/jquery.validate.js",
                                                                       "lib/jquery-validation/dist/jquery.validate.js").SetVersion("1.9.1").SetAMD();
            manifest.DefineScript(ResourceName.jquery_cookies).SetUrl(PathBuilder.BuilderScripts("jquery.cookie.js"),
                                                                      PathBuilder.BuilderScripts("jquery.cookie-1.4.1.min.js")).SetDependencies(ResourceName.jquery).SetVersion("1.4.1");
        }
コード例 #3
0
        public void BuildManifests(ResourceManifestBuilder builder)
        {
            var manifest = builder.Add();

            manifest.DefineStyle(ResourceName.bootstrap).SetUrl(PathBuilder.BuilderStyle("bootstrap.min.css"),
                                                                PathBuilder.BuilderStyle("bootstrap.css")).SetVersion("3.3.7");

            manifest.DefineStyle(ResourceName.bootstrap_select).SetUrl("lib/bootstrap-select/dist/css/bootstrap-select.min.css",
                                                                       "lib/bootstrap-select/dist/css/bootstrap-select.css").SetVersion("3.3.7").SetDependencies(ResourceName.bootstrap);


            manifest.DefineScript(ResourceName.bootstrap).SetUrl(PathBuilder.BuilderScripts("bootstrap.min.js"),
                                                                 PathBuilder.BuilderScripts("bootstrap.js")).SetVersion("3.3.7").SetDependencies(ResourceName.jquery);

            manifest.DefineScript(ResourceName.bootstrap_select).SetUrl("lib/bootstrap-select/dist/js/bootstrap-select.min.js",
                                                                        "lib/bootstrap-select/dist/js/bootstrap-select.js").SetVersion("3.3.7").SetDependencies(ResourceName.bootstrap).SetAMD();
        }