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


TypeScript gulp.start函数代码示例

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


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

示例1: e2eWatch

function e2eWatch(componentName: string, componentTest: string) {
  // If any tests change within components then run e2e.resources.
  watch([
    'src/components/*/test/**/*'
  ],
    function (file) {
      console.log('start e2e.resources - ' + JSON.stringify(file.history, null, 2));
      start('e2e.copyAndCompile');
    });

  // If any src files change except for tests then transpile only the source ionic files
  watch([
    'src/**/*.ts',
    '!src/components/*/test/**/*',
    '!src/util/test/*'
  ],
    function (file) {
      console.log('start e2e.ngcSource - ' + JSON.stringify(file.history, null, 2));
      start('e2e.copyAndCompile');
    });

  // If any scss files change then recompile all sass
  watch(['src/**/*.scss'], (file) => {
    console.log('start sass - ' + JSON.stringify(file.history, null, 2));
    start('e2e.sass');
  });

  console.log(`http://localhost:${LOCAL_SERVER_PORT}/${DIST_NAME}/${E2E_NAME}/components/${componentName}/test/${componentTest}/`);

  start('e2e.serve');
}
开发者ID:JackMj,项目名称:ionic,代码行数:31,代码来源:e2e.prod.ts

示例2: watchTask

function watchTask(task) {
  watch([
    'src/**/*.ts',
    '!src/components/*/test/**/*',
    '!src/util/test/*'
  ],
    function (file) {
      if (file.event !== 'unlink') {
        start(task);
      }
    }
  );

  watch('src/**/*.scss', function () {
    start('e2e.sass');
  });

  start('e2e.serve');
}
开发者ID:fsdn,项目名称:ionic,代码行数:19,代码来源:e2e.dev.ts

示例3: demosWatch

function demosWatch(componentName: string, componentTest: string) {
  // If any tests change within components then run demos.resources.
  watch([
    'demos/src/**/*'
  ],
    function (file) {
      console.log('start demos.resources - ' + JSON.stringify(file.history, null, 2));
      start('demos.copyAndCompile');
    });

  // If any src files change except for tests then transpile only the source ionic files
  watch([
    'src/**/*.ts',
    '!src/components/*/test/**/*',
    '!src/util/test/*'
  ],
    function (file) {
      console.log('start demos.ngcSource - ' + JSON.stringify(file.history, null, 2));
      start('demos.copyAndCompile');
    });

  // If any scss files change then recompile all sass
  watch(['src/**/*.scss'], (file) => {
    console.log('start sass - ' + JSON.stringify(file.history, null, 2));
    start('demos.sass');
  });

  let serverUrl = `http://localhost:${LOCAL_SERVER_PORT}/${DIST_NAME}/${DEMOS_NAME}`;
  if (componentName) {
    serverUrl += `/${componentName}`;
  }

  console.log(serverUrl);

  start('demos.serve');
}
开发者ID:BossKing,项目名称:ionic,代码行数:36,代码来源:demos.prod.ts

示例4: function

 function (file) {
   console.log('start e2e.resources - ' + JSON.stringify(file.history, null, 2));
   start('e2e.copyAndCompile');
 });
开发者ID:JackMj,项目名称:ionic,代码行数:4,代码来源:e2e.prod.ts

示例5:

 () => {
   gulp.start('js');
 });
开发者ID:pacbiodev,项目名称:node-seed,代码行数:3,代码来源:gulpfile.ts

示例6: watch

 watch('src/**/*.scss', function () {
   start('e2e.sass');
 });
开发者ID:fsdn,项目名称:ionic,代码行数:3,代码来源:e2e.dev.ts

示例7: watch

 watch({name: 'templates', emitOnGlob: false, glob: ['./app/**/*.html', '!./app/index.html']}, () => {
   gulp.start('templates');
 });
开发者ID:ngbinh,项目名称:angular-typescript,代码行数:3,代码来源:gulpfile.ts

示例8: function

 function (file) {
   if (file.event !== 'unlink') {
     start(task);
   }
 }
开发者ID:fsdn,项目名称:ionic,代码行数:5,代码来源:e2e.dev.ts


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