本文整理汇总了TypeScript中gulp-changed.default方法的典型用法代码示例。如果您正苦于以下问题:TypeScript gulp-changed.default方法的具体用法?TypeScript gulp-changed.default怎么用?TypeScript gulp-changed.default使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gulp-changed
的用法示例。
在下文中一共展示了gulp-changed.default方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: buildStyles
export default function buildStyles() {
return gulp.src(project.paths.styles)
.pipe(changed(project.paths.output, {extension: '.css'}))
.pipe(sourcemaps.init())
.pipe(sass().on('error', sass.logError))
.pipe(sourcemaps.write())
.pipe(gulp.dest(project.paths.output));
};
示例2: buildStyles
export default function buildStyles() {
gulp.src(project.paths.styles)
.pipe(changed(project.paths.output, {extension: '.css'}))
.pipe(sourcemaps.init())
.pipe(less())
.pipe(sourcemaps.write())
.pipe(gulp.dest(project.paths.output));
};
示例3: buildStyles
export default function buildStyles() {
let processors = [
autoprefixer({browsers: ['last 1 version']})
];
return gulp.src(project.paths.styles)
.pipe(changed(project.paths.output, {extension: '.css'}))
.pipe(sourcemaps.init())
.pipe(postcss(processors))
.pipe(sourcemaps.write())
.pipe(gulp.dest(project.paths.output));
};
示例4: buildMarkup
export default function buildMarkup() {
return gulp.src(project.paths.markup)
.pipe(changed(project.paths.output, {extension: '.html'}))
.pipe(gulp.dest(project.paths.output));
}
示例5: buildStyles
export default function buildStyles() {
return gulp.src(project.paths.styles)
.pipe(changed(project.paths.output, {extension: '.css'}))
.pipe(gulp.dest(project.paths.output));
};
示例6:
gulp.task('compile-pug', () => {
gulp
.src(TEMPLATES_SRC)
.pipe(changed(APP_DEST))
.pipe(pug())
.pipe(gulp.dest(APP_DEST))
.pipe(browserSync.stream());
});
示例7: buildJavaScript
function buildJavaScript() {
if (!typescriptCompiler) {
typescriptCompiler = typescript.create(require('../../tsconfig.json').compilerOptions);
}
return gulp.src(project.paths.dtsSource.concat(project.paths.source))
.pipe(plumber({errorHandler: notify.onError('Error: <%= error.message %>')}))
.pipe(changed(project.paths.output, {extension: '.js'}))
.pipe(sourcemaps.init({loadMaps: true}))
.pipe(typescriptCompiler())
.pipe(sourcemaps.write({includeContent: false, sourceRoot: '/src'}))
.pipe(gulp.dest(project.paths.output));
}