当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript systemjs-builder.buildStatic函数代码示例

本文整理汇总了TypeScript中systemjs-builder.buildStatic函数的典型用法代码示例。如果您正苦于以下问题:TypeScript buildStatic函数的具体用法?TypeScript buildStatic怎么用?TypeScript buildStatic使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了buildStatic函数的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。

示例1: Builder

gulp.task('!bundle', ['!build:system'], () => {
  var builder = new Builder();
  builder.config({
    map: {
      'worker': 'dist/src',
      '@angular': 'node_modules/@angular',
      'rxjs': 'node_modules/rxjs',
      'reflect-metadata': 'node_modules/reflect-metadata/temp/Reflect.js',
      'jshashes': 'node_modules/jshashes/hashes.js'
    },
    packages: {
      'worker': {
        defaultExtension: 'js'
      },
      'rxjs': {
        defaultExtension: 'js'
      },
      '@angular/core': {
        defaultExtension: 'js',
        main: 'index.js'
      },
      'reflect-metadata': {
        format: 'global'
      }
    }
  });
  builder.buildStatic('worker/browser_entry', 'dist/worker.js');
});
开发者ID:Splaktar,项目名称:mobile-toolkit,代码行数:28,代码来源:gulpfile.ts

示例2:

 .then(function() {
   let outputFile = './public/bundle.min.js';
   return builder.buildStatic('app', outputFile, {
     minify: true,
     mangle: true,
     rollup: true
   });
 })
开发者ID:JayKan,项目名称:angular2-todo,代码行数:8,代码来源:bundle.builder.ts

示例3: Builder

export = (done: any) => {
  let builder = new Builder(SYSTEM_BUILDER_CONFIG);
  builder
    .buildStatic(join(TMP_DIR, BOOTSTRAP_MODULE),
                 join(JS_DEST, JS_PROD_APP_BUNDLE),
                 BUNDLER_OPTIONS)
    .then(() => done());
};
开发者ID:Amoghavarsha,项目名称:angular2-seed,代码行数:8,代码来源:build.bundles.app.ts

示例4: Builder

export = (done: any) => {
    let builder = new Builder(SYSTEM_BUILDER_CONFIG);
    builder
        .buildStatic(`${TMP_DIR}/${BOOTSTRAP_MODULE}`,
            join(JS_DEST, JS_PROD_APP_BUNDLE),
            BUNDLER_OPTIONS)
        .then(() => done())
        .catch(err => done(err));
};
开发者ID:austinmaclean,项目名称:faithinquest,代码行数:9,代码来源:build.bundles.app.prod.ts

示例5: Builder

export = (done: any) => {
  let builder = new Builder(Config.SYSTEM_BUILDER_CONFIG);
  builder
    .buildStatic(join(Config.TMP_DIR, Config.BOOTSTRAP_FACTORY_PROD_MODULE),
		 join(Config.JS_DEST, Config.JS_PROD_APP_BUNDLE),
                 BUNDLER_OPTIONS)
    .then(() => done())
    .catch((err: any) => done(err));
};
开发者ID:ZarkoPernar,项目名称:angular2-calendar,代码行数:9,代码来源:build.bundles.app.exp.ts

示例6: function

 return function (done) {
   let builder = new Builder(SYSTEM_BUILDER_CONFIG);
   console.log(builder);
   util.log('join(TMP_DIR, BOOTSTRAP_MODULE)', chalk.yellow(join(TMP_DIR, BOOTSTRAP_MODULE)));
   util.log('join(JS_DEST, JS_PROD_APP_BUNDLE)', chalk.yellow(join(JS_DEST, JS_PROD_APP_BUNDLE)));
   builder
     .buildStatic(join(TMP_DIR, BOOTSTRAP_MODULE),
                  join(JS_DEST, JS_PROD_APP_BUNDLE),
                  BUNDLER_OPTIONS)
     .then(() => done());
 };
开发者ID:kambojankit,项目名称:angular2-seed,代码行数:11,代码来源:build.bundles.appW.ts

示例7: bundleTask

function bundleTask() {
    let builder = new Builder('', prodPath(SYSJS_CONFIG));
    return builder
        .buildStatic(prodPath(MAIN), prodPath(BUNDLE), { minify: true, sourceMaps: true})
        .then(function() {
            console.log('Build complete');
        })
        .catch(function(err) {
            console.log('Build error');
            console.log(err);
        });
}
开发者ID:rudkodm,项目名称:closer-ui,代码行数:12,代码来源:gulp-compress.ts

示例8: builder

export = gulp.task('production:scripts', ['production:scripts:compile'], (callback: () => void) => {
  const bundle = new builder({
    defaultJSExtensions: true
  });

  bundle
    .buildStatic(paths.bundle.entry, paths.bundle.output, {
      format: 'cjs',
      minify: true,
      mangle: true
    })
    .then(() => callback());
});
开发者ID:mogusbi,项目名称:ts-starter,代码行数:13,代码来源:scripts.ts

示例9: function

    return function(done) {
        let builder = new Builder(SYSTEM_BUILDER_CONFIG);

        builder
            .buildStatic(
                `${APP_TEMP}/${BOOTSTRAP_MODULE}`,
                `${APP_DEST}/${JS}/${JS_PROD_APP_BUNDLE}`,
                {
                    'format': 'cjs',
                    'minify': true,
                    'mangle': false
                }
            )
            .then(() => done());
    };
开发者ID:fellswoop,项目名称:angular-project-template,代码行数:15,代码来源:bundle.app.ts

示例10: function

 return function (done) {
   let builder = new Builder(SYSTEM_BUILDER_CONFIG);
   // makes a (Self-Executing) bundle that is independent of the SystemJS loader entirely
   // This bundle file can then be included with a <script> tag, and no other dependencies would need to be included in the page.
   //
   // https://github.com/systemjs/builder#sfx-format
   // The first module (TMP_DIR/BOOTSTRAP_MODULE) used as input
   // will then have its exports output as the CommonJS exports of the whole SFX bundle itself
   // when run in a CommonJS environment
   // it saves it into JS_DEST/JS_PROD_APP_BUNDLE
   builder
     .buildStatic(join(TMP_DIR, BOOTSTRAP_MODULE),
                  join(JS_DEST, JS_PROD_APP_BUNDLE),
                  BUNDLER_OPTIONS)
     .then(() => done());
 };
开发者ID:Cha-OS,项目名称:collabo-flow-visual-frontend,代码行数:16,代码来源:build.bundles.app.ts


注:本文中的systemjs-builder.buildStatic函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。