Skip to content

Commit 43a8872

Browse files
Dan LaskyShuwen Qian
authored andcommitted
reorder dist
1 parent e6ef04e commit 43a8872

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

Gulpfile.js

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
/*jslint node: true */
33
/*jslint esversion: 6*/
44
//TODO(shuwen): split into multiple files
5-
//TODO(shuwen): replace path string concatenation with path.join
65

76
//node packages
87
var fs = require('fs');
@@ -79,7 +78,6 @@ gulp.task('patch-lib', function() {
7978
gulp.src(C.PATCH_LIST, {base: j(__dirname, C.BOWER)})
8079
.pipe(dbg('patch-lib'))
8180
.pipe(wrap(function(data) {
82-
// console.log(data.file.contents.toString('utf8'));
8381
if (data.file.contents.toString('utf8').indexOf('/*patched*/') !== -1) {
8482
return "{{{contents}}}";
8583
} else {
@@ -197,11 +195,11 @@ gulp.task('build', function(cb) {
197195
run('copy',['sass','font'],'vulcanize',cb);
198196
});
199197

200-
// gulp.task('build:dist', function(cb) {
201-
// run('clean','patch-lib', )
202-
// });
198+
gulp.task('build:dist', function(cb) {
199+
run('clean','patch-lib', 'copy',['sass','font'], 'build:prod', cb);
200+
});
203201

204-
gulp.task('build:prod', ['patch-lib', 'build'], function() {
202+
gulp.task('build:prod', function() {
205203
var excludes = glob.sync(j(C.BUILD,C.MODULE_MASK, C.MODULE_HTML));
206204
excludes.push('bower_components/polymer/polymer.html');
207205

0 commit comments

Comments
 (0)