當前位置: 首頁>>代碼示例>>TypeScript>>正文


TypeScript gulp-debug類代碼示例

本文整理匯總了TypeScript中gulp-debug的典型用法代碼示例。如果您正苦於以下問題:TypeScript gulp-debug類的具體用法?TypeScript gulp-debug怎麽用?TypeScript gulp-debug使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。


在下文中一共展示了gulp-debug類的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。

示例1: processExternalCss

// This takes, PROD_DEPENDENCIES from config, and looks for CSS files in specified path, minifies them
// adds them to a common css bundle and saves them to a CSS_DEST.
    function processExternalCss() {
      return gulp.src(getExternalCss().map(r => r.src))
        .pipe(debug({title:'html_css.processExternalCss.src'}))
        .pipe(plugins.cssnano())
        .pipe(debug({title:'html_css.processExternalCss.cssnano'}))
        .pipe(plugins.concat(CSS_PROD_BUNDLE))
        .pipe(debug({title:'html_css.processExternalCss.CSS_PROD_BUNDLE'}))
        .pipe(gulp.dest(CSS_DEST))
        .pipe(debug({title:'html_css.processExternalCss.CSS_DEST'}));
    }
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:12,代碼來源:build.html_css.prodW.ts

示例2: minifyComponentCss

 // This method collects component's CSS files, minifies them and pushed them to TMP_DIR.
 function minifyComponentCss() {
   return gulp.src([
       join(APP_SRC, '**', '*.css'),
       // This line restricts any other css place in folders under assets from being picked.
       '!' + join(APP_SRC, 'assets', '**', '*.css')
     ])
     .pipe(debug({title:'html_css.minifyComponentCss.src'}))
     .pipe(plugins.cssnano())
     .pipe(debug({title:'html_css.minifyComponentCss.cssnano'}))
     .pipe(gulp.dest(TMP_DIR))
     .pipe(debug({title:'html_css.minifyComponentCss.dist'}));
 }
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:13,代碼來源:build.html_css.prodW.ts

示例3: bundleShims

 // This takes, PROD_DEPENDENCIES from config, and looks for JS,SHIMS,Libs files in specified path
 // adds them to a common JS bundle (Shimps.js) and saves them to a JS_DEST.
 function bundleShims() {
   return gulp.src(getShims())
   // Strip comments and sourcemaps
   .pipe(debug({title:'build.bundle.getShims.src'}))
   .pipe(plugins.uglify({
     mangle: false
   }))
   .pipe(debug({title:'build.bundle.getShims.uglify'}))
   .pipe(plugins.concat(JS_PROD_SHIMS_BUNDLE))
   .pipe(debug({title:'build.bundle.JS_PROD_SHIMS_BUNDLE.concat'}))
   .pipe(gulp.dest(JS_DEST))
   .pipe(debug({title:'build.bundle.JS_DEST.concat'}));
 }
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:15,代碼來源:build.bundlesW.ts

示例4: function

 return function () {
   return gulp.src([                   // picks source files, except HTML, CSS and ts files
       join(APP_SRC, '**'),
       '!' + join(APP_SRC, '**', '*.ts'),
       '!' + join(APP_SRC, '**', '*.css'),
       '!' + join(APP_SRC, '**', '*.html'),
     ])
     // .pipe(debug({title:'ASSETS.prodW.src'}))
     .pipe(onlyDirs(es))               // Allows to copy only non empty directories.
     .pipe(debug({title:'ASSETS.prodW.onlyDIRs'}))
     .pipe(gulp.dest(APP_DEST))       // adds files to APP_DEST directory.
     .pipe(debug({title:'ASSETS.prodW.DEST'}));
 };
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:13,代碼來源:build.assets.prodW.ts

示例5:

	@Task('ts::lint')
	tslint() {
		gulp.src(['./app/**/*.ts'])
			.pipe(tslint())
			.pipe(tslint.report('verbose'))
			.pipe(debug());
	}
開發者ID:happy-q,項目名稱:happy-q-core,代碼行數:7,代碼來源:gulpclass.ts

示例6: size

gulp.task('default', () => {
    let s = size();

    return gulp.src('fixture.js')
        .pipe(s)
        .pipe(gulp.dest('dist'))
        .pipe(debug({title: 'Total size ' + s.prettySize}));
});
開發者ID:minodisk,項目名稱:DefinitelyTyped,代碼行數:8,代碼來源:gulp-size-tests.ts

示例7: join

export = () => {
    let debug: boolean = argv.debug;
    let dir=join(Config.TMP_DIR, 'jslocal');
    let serviceWorkerFiles = join(dir, '**/service-worker*.js');
    let normalFiles=[join(dir, '**/*.js'),
                    '!' + serviceWorkerFiles];
    if (debug) {
        console.log('copy.js.local - normal files: ', normalFiles);
        console.log('copy.js.local - service worker files: ', serviceWorkerFiles);
    }
    gulp.src(normalFiles)
        .pipe(gulpif(debug, gulpdebug({title:'copy.js.local normal files'})))
        .pipe(gulp.dest(Config.JS_DEST));
    gulp.src(serviceWorkerFiles)
        .pipe(gulpif(debug, gulpdebug({title:'copy.js.local service worker files'})))
        .pipe(gulp.dest(Config.PROD_DEST));
};
開發者ID:GeoscienceAustralia,項目名稱:gnss-site-manager,代碼行數:17,代碼來源:copy.js.local.prod.ts

示例8: function

  return function () {
    let tsProject = tsProjectFn(plugins);
    util.log('BUILD JS Prod: tsProject', chalk.yellow(tsProject));

    let src = [
      'typings/browser.d.ts',
      'tools/manual_typings/**/*.d.ts',
      join(APP_SRC, '**/*.ts'),
      '!' + join(APP_SRC, '**/*.spec.ts'),
      '!' + join(APP_SRC, '**/*.e2e.ts')
    ];
    let result = gulp.src(src)
      .pipe(debug({title:'buildJS.Prod.src'}))
      .pipe(plugins.plumber())
      .pipe(debug({title:'buildJS.Prod.plumbr'}))
      .pipe(plugins.inlineNg2Template(INLINE_OPTIONS))
      .pipe(debug({title:'buildJS.Prod.inlineNG2'}))
      .pipe(plugins.typescript(tsProject));

    return result.js
      .pipe(debug({title:'buildJS.Prod.resultJS.tsProject'}))
      .pipe(plugins.template(templateLocals()))
      .pipe(debug({title:'buildJS.Prod.resultJS.templateLocals'}))
      .pipe(gulp.dest(TMP_DIR))
      .pipe(debug({title:'buildJS.Prod.resultJS.dir'}));
  };
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:26,代碼來源:build.js.prodW.ts

示例9: prepareTemplates

 // This method collects component's HTML files and pushed them to TMP_DIR.
 function prepareTemplates() {
   return gulp.src(join(APP_SRC, '**', '*.html'))
     .pipe(debug({title:'html_css.prepareTemplates.src'}))
     .pipe(gulp.dest(TMP_DIR))
     .pipe(debug({title:'html_css.prepareTemplates.dist'}));
 }
開發者ID:kambojankit,項目名稱:angular2-seed,代碼行數:7,代碼來源:build.html_css.prodW.ts


注:本文中的gulp-debug類示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。