feat(build): copy css files
This commit is contained in:
parent
06f7481141
commit
e3f4c60f46
26
gulpfile.js
26
gulpfile.js
|
@ -161,10 +161,18 @@ var CONFIG = {
|
|||
}),
|
||||
'**/package.json': gulpPlugins.template({ 'packageJson': COMMON_PACKAGE_JSON })
|
||||
}
|
||||
},
|
||||
dev: {
|
||||
src: ['modules/**/*.css'],
|
||||
pipes: {}
|
||||
},
|
||||
prod: {
|
||||
src: ['modules/**/*.css'],
|
||||
pipes: {}
|
||||
}
|
||||
},
|
||||
dart: {
|
||||
src: ['modules/**/README.dart.md', 'modules/**/*.dart', 'modules/*/pubspec.yaml', '!modules/**/e2e_test/**'],
|
||||
src: ['modules/**/README.dart.md', 'modules/**/*.dart', 'modules/*/pubspec.yaml', 'modules/**/*.css', '!modules/**/e2e_test/**'],
|
||||
pipes: {
|
||||
'**/*.dart': util.insertSrcFolder(gulpPlugins, SRC_FOLDER_INSERTION.dart),
|
||||
'**/*.dart.md': gulpPlugins.rename(function(file) {
|
||||
|
@ -363,6 +371,18 @@ gulp.task('build/copy.js.cjs', copy.copy(gulp, gulpPlugins, {
|
|||
dest: CONFIG.dest.js.cjs
|
||||
}));
|
||||
|
||||
gulp.task('build/copy.js.dev', copy.copy(gulp, gulpPlugins, {
|
||||
src: CONFIG.copy.js.dev.src,
|
||||
pipes: CONFIG.copy.js.dev.pipes,
|
||||
dest: CONFIG.dest.js.dev.es5
|
||||
}));
|
||||
|
||||
gulp.task('build/copy.js.prod', copy.copy(gulp, gulpPlugins, {
|
||||
src: CONFIG.copy.js.prod.src,
|
||||
pipes: CONFIG.copy.js.prod.pipes,
|
||||
dest: CONFIG.dest.js.prod.es5
|
||||
}));
|
||||
|
||||
gulp.task('build/copy.dart', copy.copy(gulp, gulpPlugins, {
|
||||
src: CONFIG.copy.dart.src,
|
||||
pipes: CONFIG.copy.dart.pipes,
|
||||
|
@ -617,14 +637,14 @@ gulp.task('build.dart', function(done) {
|
|||
|
||||
gulp.task('build.js.dev', function(done) {
|
||||
runSequence(
|
||||
['build/transpile.js.dev', 'build/html.js.dev', 'build/multicopy.js.dev.es6', 'build/multicopy.js.dev.es5'],
|
||||
['build/transpile.js.dev', 'build/html.js.dev', 'build/copy.js.dev', 'build/multicopy.js.dev.es6', 'build/multicopy.js.dev.es5'],
|
||||
done
|
||||
);
|
||||
});
|
||||
|
||||
gulp.task('build.js.prod', function(done) {
|
||||
runSequence(
|
||||
['build/transpile.js.prod', 'build/html.js.prod', 'build/multicopy.js.prod.es6', 'build/multicopy.js.prod.es5'],
|
||||
['build/transpile.js.prod', 'build/html.js.prod', 'build/copy.js.prod', 'build/multicopy.js.prod.es6', 'build/multicopy.js.prod.es5'],
|
||||
done
|
||||
);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue