From e3f4c60f46e2a009a874b6554172522e9395090d Mon Sep 17 00:00:00 2001 From: Tobias Bosch Date: Thu, 26 Feb 2015 10:08:58 -0800 Subject: [PATCH] feat(build): copy css files --- gulpfile.js | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 1886658144..a905633e82 100644 --- a/gulpfile.js +++ b/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 ); });