Exemplo n.º 1
0
        void BuildScript(bool debug)
        {
            modules.InitializeModules(bundles, "~/shared/required.js");
            var builder = new ConfigurationScriptBuilder(
                urlGenerator.Object,
                new SimpleJsonSerializer(),
                debug
                );

            script = builder.BuildConfigurationScript(modules);
        }
 void BuildScript(bool debug)
 {
     modules.InitializeModulesFromBundles(bundles, "~/shared/required.js");
     var builder = new ConfigurationScriptBuilder(
         urlGenerator.Object,
         new SimpleJsonSerializer(),
         debug
     );
     script = builder.BuildConfigurationScript(modules);
 }
 void BuildScript(bool debug, Action<IModuleInitializer> configuration = null)
 {
     modules.InitializeModules(bundles, "~/shared/required.js");
     if (configuration != null)
     {
         configuration(modules);
     }
     var builder = new ConfigurationScriptBuilder(
         urlGenerator.Object,
         new SimpleJsonSerializer(),
         debug
     );
     script = builder.BuildConfigurationScript(modules,new RequireJSConfiguration());
 }