本文整理汇总了TypeScript中gulp-plumber类的典型用法代码示例。如果您正苦于以下问题:TypeScript gulp-plumber类的具体用法?TypeScript gulp-plumber怎么用?TypeScript gulp-plumber使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了gulp-plumber类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: 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
示例2: 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
示例3: compileJs
function compileJs(src: string[], dest: string, inlineTpl?: boolean): NodeJS.ReadWriteStream {
const result = gulp.src(['./tools/typings/tsd/tsd.d.ts', './tools/typings/*.ts'].concat(src))
.pipe(plumber())
.pipe(sourcemaps.init());
return result
.pipe(typescript(tsProject)).js
.pipe(ngAnnotate())
.pipe(sourcemaps.write())
.pipe(gulp.dest(dest));
}
开发者ID:australdev,项目名称:app,代码行数:12,代码来源:gulpfile.ts
示例4: tslint
/**
* Typescript lint task
*/
@Task('ts::lint')
tslint() {
let lintoptions: any = {
emitError: false,
sort: true,
bell: true
}
return gulp.src(this.config.paths.source)
.pipe(plumber())
.pipe(tslint())
.pipe(tslint.report(require('tslint-stylish'), lintoptions));
}
开发者ID:molecuel,项目名称:mlcl_log,代码行数:15,代码来源:gulpclass.ts
示例5: 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
示例6: 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));
}
开发者ID:itainteasy,项目名称:cli,代码行数:13,代码来源:build-javascript.ts
示例7: merge
/**
* Typescript compile task
*/
@Task('ts::compile')
tscompile(): any {
let sourcepaths = ['typings/main.d.ts'];
sourcepaths.push(this.config.paths.source);
var tsResult = gulp.src(sourcepaths)
.pipe(plumber())
.pipe(ts(this.tsProject));
return merge([
tsResult.dts.pipe(gulp.dest('definitions')),
tsResult.js.pipe(gulp.dest(this.config.paths.dist))
]);
}
开发者ID:molecuel,项目名称:mlcl_log,代码行数:16,代码来源:gulpclass.ts
示例8: compileTs
function compileTs(src: string | string[], dest: string, inlineTpl?: boolean): NodeJS.ReadWriteStream {
let result = gulp.src(src)
.pipe(plumber())
.pipe(sourcemaps.init());
if (inlineTpl) {
result = result.pipe(inlineNg2Template({ base: PATH.src.base }));
}
return result.pipe(typescript(tsProject))
.js.pipe(sourcemaps.write())
.pipe(gulp.dest(dest));
}
开发者ID:kgeorgieva,项目名称:kristina-georgieva-angular2-site,代码行数:14,代码来源:gulpfile.ts
示例9: buildTypeScript
function buildTypeScript() {
if(!typescriptCompiler) {
typescriptCompiler = ts.createProject('tsconfig.json', {
"typescript": require('typescript')
});
}
return gulp.src(project.transpiler.dtsSource.concat(project.transpiler.source))
.pipe(plumber({errorHandler: notify.onError('Error: <%= error.message %>')}))
.pipe(changedInPlace({firstPass:true}))
.pipe(sourcemaps.init())
.pipe(ts(typescriptCompiler))
.pipe(build.bundle());
}
开发者ID:agileraymond,项目名称:cli,代码行数:14,代码来源:transpile.ts
示例10:
gulp.task("build.css.dev", () => {
gulp.src(["src/themes/*.scss"])
.pipe(plumber())
.pipe(sourcemaps.init())
.pipe(sass({
includePaths: ["src/**/*.scss"],
}))
.pipe(autoprefixer({
browsers: ["last 2 versions"],
cascade: false
}))
.pipe(sourcemaps.write("./"))
.pipe(plumber.stop())
.pipe(gulp.dest("./dist/dev"))
});
开发者ID:damyanpetev,项目名称:zero-blocks,代码行数:15,代码来源:gulpfile.ts
注:本文中的gulp-plumber类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论