Skip to content

Commit

Permalink
feat: replace version script with not-prerelase (#209)
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonocasey authored Aug 16, 2018
1 parent eec8fe9 commit 2dc6c27
Show file tree
Hide file tree
Showing 7 changed files with 627 additions and 328 deletions.
3 changes: 1 addition & 2 deletions generators/app/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,7 @@ module.exports = class extends Generator {
'_.editorconfig',
'_.gitignore',
'_.npmignore',
'_.nvmrc',
'scripts/_version.js'
'_.nvmrc'
];

this._templatesToCopy = [
Expand Down
5 changes: 3 additions & 2 deletions generators/app/package-json.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ const DEFAULTS = {
'rollup-plugin-multi-entry',
'rollup-plugin-node-resolve',
'rollup-plugin-uglify',
'semver',
'not-prerelease',
'sinon',
'uglify-es',
'videojs-standard'
Expand Down Expand Up @@ -164,7 +164,8 @@ const packageJSON = (current, context) => {
'pretest': 'npm-run-all lint build',
'test': 'karma start scripts/karma.conf.js',
'preversion': 'npm test',
'version': 'node scripts/version.js',
'version': 'is-prerelease || npm run update-changelog && git add CHANGELOG.md',
'update-changelog': 'conventional-changelog -p videojs -i CHANGELOG.md -s',
'watch': 'npm-run-all -p watch:*',
'watch:js': 'npm run build:js -- -w'
}),
Expand Down
10 changes: 0 additions & 10 deletions generators/app/templates/scripts/_version.js

This file was deleted.

Loading

0 comments on commit 2dc6c27

Please sign in to comment.