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


TypeScript gulp-changed-in-place類代碼示例

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


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

示例1: merge

export default function copyBuildToWwwRoot() {
  const source = 'scripts';

  const taskIndex = gulp.src('index.html')
    .pipe(changedInPlace({ firstPass: true }))
    .pipe(gulp.dest(`${project.platform.output}/../../wwwroot/`));

  const taskScripts = gulp.src(`${source}/**/*`)
    .pipe(changedInPlace({ firstPass: true }))
    .pipe(gulp.dest(`${project.platform.output}/../../wwwroot/scripts`));

  return merge(taskIndex, taskScripts);
}
開發者ID:dwarry,項目名稱:AspNetCoreWithAurelia,代碼行數:13,代碼來源:copy-build-to-wwwroot.ts

示例2: merge

export default function prepareFontAwesome() {
  const source = 'node_modules/font-awesome';

  const taskCss = gulp.src(`${source}/css/font-awesome.min.css`)
    .pipe(changedInPlace({ firstPass: true }))
    .pipe(gulp.dest(`${project.platform.output}/css`));

  const taskFonts = gulp.src(`${source}/fonts/*`)
    .pipe(changedInPlace({ firstPass: true }))
    .pipe(gulp.dest(`${project.platform.output}/fonts`));

  return merge(taskCss, taskFonts);
}
開發者ID:jugglingthebits,項目名稱:C3,代碼行數:13,代碼來源:prepare-font-awesome.ts

示例3: processCSS

export default function processCSS() {
  gulp.src(project.cssProcessor.source)
    .pipe(changedInPlace({firstPass:true}))
    .pipe(sourcemaps.init())
    .pipe(less())
    .pipe(build.bundle());
};
開發者ID:agileraymond,項目名稱:cli,代碼行數:7,代碼來源:process-less.ts

示例4: processMarkup

export default function processMarkup() {
  return gulp.src(project.markupProcessor.source)
    .pipe(changedInPlace({firstPass:true}))
    .pipe(sourcemaps.init())
    .pipe(jade())
    .pipe(build.bundle());
}
開發者ID:AshleyGrant,項目名稱:cli,代碼行數:7,代碼來源:process-pug.ts

示例5: configureEnvironment

function configureEnvironment() {
  let env = CLIOptions.getEnvironment();

  return gulp.src(`aurelia_project/environments/${env}.ts`)
    .pipe(changedInPlace({firstPass:true}))
    .pipe(rename('environment.js'))
    .pipe(gulp.dest(project.paths.root));
}
開發者ID:agileraymond,項目名稱:cli,代碼行數:8,代碼來源:transpile.ts

示例6: processCSS

export default function processCSS() {
  return gulp.src(project.cssProcessor.source)
    .pipe(changedInPlace({ firstPass: true }))
    .pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
    .pipe(sourcemaps.init())
    .pipe(less())
    .pipe(build.bundle());
}
開發者ID:jugglingthebits,項目名稱:C3,代碼行數:8,代碼來源:process-css.ts

示例7: processMarkup

export default function processMarkup() {
  return gulp.src(project.markupProcessor.source)
    .pipe(changedInPlace({firstPass:true}))
    .pipe(htmlmin({
        removeComments: true,
        collapseWhitespace: true,
        minifyCSS: true,
        minifyJS: true
    }))
    .pipe(build.bundle());
}
開發者ID:dwarry,項目名稱:AspNetCoreWithAurelia,代碼行數:11,代碼來源:process-markup.ts

示例8: buildTypeScript

function buildTypeScript() {
  typescriptCompiler = ts.createProject('tsconfig.json', {
    typescript: require('typescript')
  });
  let src = gulp.src(project.transpiler.source).pipe(changedInPlace({ firstPass: true }));
  return eventStream
    .merge(src)
    .pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
    .pipe(typescriptCompiler())
    .pipe(gulpif(isJsFile, build.bundle()));
}
開發者ID:aurelia,項目名稱:aurelia,代碼行數:11,代碼來源:transpile.ts

示例9: processCSS

export default function processCSS() {
  let processors = [
    autoprefixer({browsers: ['last 1 version']})
  ];

  return gulp.src(project.cssProcessor.source)
    .pipe(changedInPlace({firstPass:true}))
    .pipe(sourcemaps.init())
    .pipe(postcss(processors))
    .pipe(build.bundle());
};
開發者ID:AshleyGrant,項目名稱:cli,代碼行數:11,代碼來源:process-css.ts

示例10: processMarkup

export default function processMarkup() {
  return gulp.src(project.markupProcessor.source)
    .pipe(plumber({errorHandler: notify.onError('Error: <%= error.message %>')}))
    .pipe(changedInPlace({firstPass:true}))
    .pipe(htmlmin({
        removeComments: true,
        collapseWhitespace: true,
        minifyCSS: true,
        minifyJS: true,
        ignoreCustomFragments: [/\${.*?}/g] // ignore interpolation expressions
    }))
    .pipe(build.bundle());
}
開發者ID:AshleyGrant,項目名稱:cli,代碼行數:13,代碼來源:process-markup.ts


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