本文整理汇总了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;未经允许,请勿转载。 |
请发表评论