Skip to content
This repository has been archived by the owner on Oct 8, 2021. It is now read-only.

Commit

Permalink
Compile JS and CSS in release task. Remove electron-rebuild from `b…
Browse files Browse the repository at this point in the history
…uild` script (will be run on postinstall)
  • Loading branch information
atdrago committed May 10, 2016
1 parent 518497a commit c67b2e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gulp.task('watch', () => {
watch(sassSrc, () => gulp.start('sass'));
});

gulp.task('default', [ 'js:index', 'js:settings', 'js:lint', 'sass', 'watch' ]);
gulp.task('default', ['js:index', 'js:settings', 'js:lint', 'sass', 'watch']);

gulp.task('js:lint', () => {
return gulp.src(jsLintSrc)
Expand Down Expand Up @@ -94,5 +94,5 @@ gulp.task('release:lib', () => {
});

gulp.task('release', () => {
return runSequence('release:clean', ['release:root', 'release:view', 'release:lib']);
return runSequence('release:clean', ['js:index', 'js:settings', 'sass'], ['release:root', 'release:view', 'release:lib']);
});
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"license": "MIT",
"scripts": {
"start": "export NODE_ENV=development && export ELECTRON_ENABLE_LOGGING=true && electron .",
"build": "gulp release && mkdir -p ./release/node_modules && npm install --production --prefix ./release/ && ./node_modules/.bin/electron-rebuild && grunt",
"build": "gulp release && mkdir -p ./release/node_modules && npm install --production --prefix ./release/ && grunt",
"lint": "gulp js:lint",
"test": "mocha --harmony_destructuring",
"postinstall": "./node_modules/.bin/electron-rebuild"
Expand Down

0 comments on commit c67b2e5

Please sign in to comment.