本文整理汇总了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);
}
示例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);
}
示例3: processCSS
export default function processCSS() {
gulp.src(project.cssProcessor.source)
.pipe(changedInPlace({firstPass:true}))
.pipe(sourcemaps.init())
.pipe(less())
.pipe(build.bundle());
};
示例4: processMarkup
export default function processMarkup() {
return gulp.src(project.markupProcessor.source)
.pipe(changedInPlace({firstPass:true}))
.pipe(sourcemaps.init())
.pipe(jade())
.pipe(build.bundle());
}
示例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));
}
示例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());
}
示例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());
}
示例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()));
}
示例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());
};
示例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());
}