Skip to content

Commit e3f4c60

Browse files
committed
feat(build): copy css files
1 parent 06f7481 commit e3f4c60

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

gulpfile.js

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,18 @@ var CONFIG = {
161161
}),
162162
'**/package.json': gulpPlugins.template({ 'packageJson': COMMON_PACKAGE_JSON })
163163
}
164+
},
165+
dev: {
166+
src: ['modules/**/*.css'],
167+
pipes: {}
168+
},
169+
prod: {
170+
src: ['modules/**/*.css'],
171+
pipes: {}
164172
}
165173
},
166174
dart: {
167-
src: ['modules/**/README.dart.md', 'modules/**/*.dart', 'modules/*/pubspec.yaml', '!modules/**/e2e_test/**'],
175+
src: ['modules/**/README.dart.md', 'modules/**/*.dart', 'modules/*/pubspec.yaml', 'modules/**/*.css', '!modules/**/e2e_test/**'],
168176
pipes: {
169177
'**/*.dart': util.insertSrcFolder(gulpPlugins, SRC_FOLDER_INSERTION.dart),
170178
'**/*.dart.md': gulpPlugins.rename(function(file) {
@@ -363,6 +371,18 @@ gulp.task('build/copy.js.cjs', copy.copy(gulp, gulpPlugins, {
363371
dest: CONFIG.dest.js.cjs
364372
}));
365373

374+
gulp.task('build/copy.js.dev', copy.copy(gulp, gulpPlugins, {
375+
src: CONFIG.copy.js.dev.src,
376+
pipes: CONFIG.copy.js.dev.pipes,
377+
dest: CONFIG.dest.js.dev.es5
378+
}));
379+
380+
gulp.task('build/copy.js.prod', copy.copy(gulp, gulpPlugins, {
381+
src: CONFIG.copy.js.prod.src,
382+
pipes: CONFIG.copy.js.prod.pipes,
383+
dest: CONFIG.dest.js.prod.es5
384+
}));
385+
366386
gulp.task('build/copy.dart', copy.copy(gulp, gulpPlugins, {
367387
src: CONFIG.copy.dart.src,
368388
pipes: CONFIG.copy.dart.pipes,
@@ -617,14 +637,14 @@ gulp.task('build.dart', function(done) {
617637

618638
gulp.task('build.js.dev', function(done) {
619639
runSequence(
620-
['build/transpile.js.dev', 'build/html.js.dev', 'build/multicopy.js.dev.es6', 'build/multicopy.js.dev.es5'],
640+
['build/transpile.js.dev', 'build/html.js.dev', 'build/copy.js.dev', 'build/multicopy.js.dev.es6', 'build/multicopy.js.dev.es5'],
621641
done
622642
);
623643
});
624644

625645
gulp.task('build.js.prod', function(done) {
626646
runSequence(
627-
['build/transpile.js.prod', 'build/html.js.prod', 'build/multicopy.js.prod.es6', 'build/multicopy.js.prod.es5'],
647+
['build/transpile.js.prod', 'build/html.js.prod', 'build/copy.js.prod', 'build/multicopy.js.prod.es6', 'build/multicopy.js.prod.es5'],
628648
done
629649
);
630650
});

0 commit comments

Comments
 (0)