Skip to content

Commit

Permalink
chore: run gulp task before release script
Browse files Browse the repository at this point in the history
  • Loading branch information
whizark committed Apr 9, 2017
1 parent cc3dade commit 06899a4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ const extra = require('./composer.json').extra;
*/
function bumpTaskFactory(type) {
return () => {
const packages = ['package.json'];
const packages = [];
const plugin = (pkg.main) ? [path.normalize(pkg.main)] : [];
const loader = (extra && extra['installer-loader']) ? [path.normalize(extra['installer-loader'])] : [];
const plugins = plugin.concat(loader);
Expand Down
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,9 @@
"precommit" : "npm run --silent lint",
"cz" : "git cz",
"release:first": "standard-version --sign --first-release",
"release:patch": "standard-version --sign --release-as pathc",
"release:minor": "standard-version --sign --release-as minor",
"release:major": "standard-version --sign --release-as major",
"release" : "standard-version --sign",
"release:patch": "npm run --silent gulp bump:patch && git add -u && standard-version --sign --release-as patch --commit-all",
"release:minor": "npm run --silent gulp bump:minor && git add -u && standard-version --sign --release-as minor --commit-all",
"release:major": "npm run --silent gulp bump:major && git add -u && standard-version --sign --release-as major --commit-all",
"gulp" : "gulp",
"lint:md" : "remark .",
"lint" : "npm-run-all --parallel --silent --continue-on-error lint:*",
Expand Down

0 comments on commit 06899a4

Please sign in to comment.