feat(build): copy css files

This commit is contained in:
Tobias Bosch 2015-02-26 10:08:58 -08:00
parent 06f7481141
commit e3f4c60f46
1 changed files with 23 additions and 3 deletions

View File

@ -161,10 +161,18 @@ var CONFIG = {
}), }),
'**/package.json': gulpPlugins.template({ 'packageJson': COMMON_PACKAGE_JSON }) '**/package.json': gulpPlugins.template({ 'packageJson': COMMON_PACKAGE_JSON })
} }
},
dev: {
src: ['modules/**/*.css'],
pipes: {}
},
prod: {
src: ['modules/**/*.css'],
pipes: {}
} }
}, },
dart: { 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: { pipes: {
'**/*.dart': util.insertSrcFolder(gulpPlugins, SRC_FOLDER_INSERTION.dart), '**/*.dart': util.insertSrcFolder(gulpPlugins, SRC_FOLDER_INSERTION.dart),
'**/*.dart.md': gulpPlugins.rename(function(file) { '**/*.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 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, { gulp.task('build/copy.dart', copy.copy(gulp, gulpPlugins, {
src: CONFIG.copy.dart.src, src: CONFIG.copy.dart.src,
pipes: CONFIG.copy.dart.pipes, pipes: CONFIG.copy.dart.pipes,
@ -617,14 +637,14 @@ gulp.task('build.dart', function(done) {
gulp.task('build.js.dev', function(done) { gulp.task('build.js.dev', function(done) {
runSequence( 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 done
); );
}); });
gulp.task('build.js.prod', function(done) { gulp.task('build.js.prod', function(done) {
runSequence( 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 done
); );
}); });