本文整理汇总了TypeScript中aurelia-cli.build类的典型用法代码示例。如果您正苦于以下问题:TypeScript build类的具体用法?TypeScript build怎么用?TypeScript build使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了build类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。
示例1: 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
示例2: 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
示例3: 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
示例4: 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
示例5: 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
示例6: 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
示例7: 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
示例8: 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
示例9: processMarkup
export default function processMarkup() {
return gulp.src(project.markupProcessor.source)
.pipe(changedInPlace({firstPass:true}))
.pipe(htmlmin({
removeComments: true,
collapseWhitespace: true,
collapseInlineTagWhitespace: true,
collapseBooleanAttributes: true,
removeAttributeQuotes: true,
minifyCSS: true,
minifyJS: true,
removeScriptTypeAttributes: true,
removeStyleLinkTypeAttributes: true
}))
.pipe(build.bundle());
}
开发者ID:sebthieti,项目名称:jogplayer-online,代码行数:16,代码来源:process-markup.ts
示例10: buildTypeScript
function buildTypeScript() {
typescriptCompiler = ts.createProject('tsconfig.json', {
typescript: require('typescript')
});
let dts = gulp.src(project.transpiler.dtsSource);
let src = gulp.src(project.transpiler.source)
.pipe(changedInPlace({firstPass: true}));
return eventStream.merge(dts, src)
.pipe(plumber({ errorHandler: notify.onError('Error: <%= error.message %>') }))
.pipe(sourcemaps.init())
.pipe(typescriptCompiler())
.pipe(sourcemaps.write({ sourceRoot: 'src' }))
.pipe(build.bundle());
}
开发者ID:AshleyGrant,项目名称:cli,代码行数:17,代码来源:transpile.ts
注:本文中的aurelia-cli.build类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论