Skip to content

Commit

Permalink
prepare to pack
Browse files Browse the repository at this point in the history
  • Loading branch information
mdmen committed Feb 14, 2018
1 parent c5cbdbb commit 06eaf12
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.vscode
node_modules
node_modules
final
10 changes: 9 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const path = {
js: 'src/js/**/*.*',
css: 'src/css/**/*.*',
img: 'src/img/**/*.*'
}
},
final: 'final'
};

gulp
Expand Down Expand Up @@ -79,4 +80,11 @@ gulp
watch([path.watch.js], function (e, cb) {
gulp.start('js:build');
});
})
.task('final', function () {
gulp.src(['./popup.html', './manifest.json'])
.pipe(gulp.dest(path.final));

gulp.src(['./dist/**/*.*', '!**/screenshot.png'])
.pipe(gulp.dest(path.final + '/dist'));
});
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
"gulp-watch": "^5.0.0"
},
"scripts": {
"build": "./node_modules/.bin/gulp build"
"build": "./node_modules/.bin/gulp build",
"final": "./node_modules/.bin/gulp final"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 06eaf12

Please sign in to comment.