Skip to content

Commit

Permalink
Add prerelease step
Browse files Browse the repository at this point in the history
  • Loading branch information
sawyerh committed Feb 24, 2017
1 parent 9b293a3 commit 084457e
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 7 deletions.
1 change: 1 addition & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ _Note_: `yerna` will become obsolete once [Lerna](https://lernajs.io/) [is merge
### Scripts

- `yarn run build` compiles everything and makes things production-ready
- `yarn run prerelease` increments the package versions. By default it will do a patch version increment, however you can also do a minor or major increment by doing the following: `yarn run prerelease -- --type=minor`
- `yarn run start` runs a Browsersync server for the documentation, and compiles a file when it changes.
- `yarn test` runs all tests using [Jest](https://facebook.github.io/jest/).

Expand Down
2 changes: 1 addition & 1 deletion config/gulp/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = (gulp) => {
'docs',
'fonts',
'javascript',
'publish',
'prerelease',
'sass',
'server',
'watch',
Expand Down
6 changes: 3 additions & 3 deletions config/gulp/publish.js → config/gulp/prerelease.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/**
* The `publish` task increments our package versions. It accepts a single
* The `prerelease` task increments our package versions. It accepts a single
* argument: `--type` with a value of 'patch' (default), 'minor', and 'major'.
* Example: `gulp publish --type=major` would bump 1.1.1 to 2.0.0
* Example: `gulp prerelease --type=major` would bump 1.1.1 to 2.0.0
*/
const argv = require('yargs').argv;
const bump = require('gulp-bump');
Expand All @@ -22,7 +22,7 @@ module.exports = (gulp) => {
gulp.task('bumpVersion:core', () => bumpVersion('./packages/core'));
gulp.task('bumpVersion:docs', () => bumpVersion('./packages/docs'));

gulp.task('publish', () => {
gulp.task('prerelease', () => {
runSequence([
'bumpVersion:core',
'bumpVersion:docs',
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"scripts": {
"bootstrap": "yerna install",
"build": "NODE_ENV=production gulp build",
"prerelease": "gulp prerelease",
"start": "NODE_ENV=development gulp watch",
"test": "NODE_ENV=test jest"
},
Expand Down
3 changes: 0 additions & 3 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,2 @@
# Bump package versions
yarn run gulp publish

cd packages/core
npm publish

0 comments on commit 084457e

Please sign in to comment.