File tree Expand file tree Collapse file tree 5 files changed +420
-12
lines changed Expand file tree Collapse file tree 5 files changed +420
-12
lines changed Original file line number Diff line number Diff line change
1
+ <a name="0.1.0"></a>
2
+ # 0.1.0 (2017-09-02)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * add correct main file ([a60e64c](https://github.com/eddyerburgh/vue-jest/commit/a60e64c))
8
+
9
+
10
+ ### Features
11
+
12
+ * **typescript:** add ts support ([4354570](https://github.com/eddyerburgh/vue-jest/commit/4354570))
Original file line number Diff line number Diff line change
1
+ const version = process . argv [ 2 ] || process . env . VERSION
2
+ const cc = require ( 'conventional-changelog' )
3
+ const file = `./RELEASE_NOTE${ version ? `_${ version } ` : `` } .md`
4
+ const fileStream = require ( 'fs' ) . createWriteStream ( file )
5
+
6
+ cc ( {
7
+ preset : 'angular' ,
8
+ pkg : {
9
+ transform ( pkg ) {
10
+ pkg . version = `v${ version } `
11
+ return pkg
12
+ }
13
+ }
14
+ } ) . pipe ( fileStream ) . on ( 'close' , ( ) => {
15
+ console . log ( `Generated release note at ${ file } ` )
16
+ } )
Original file line number Diff line number Diff line change
1
+ set -e
2
+ echo " Enter release version: "
3
+ read VERSION
4
+
5
+ read -p " Releasing $VERSION - are you sure? (y/n)" -n 1 -r
6
+ echo # (optional) move to a new line
7
+ if [[ $REPLY =~ ^[Yy]$ ]]
8
+ then
9
+ echo " Releasing $VERSION ..."
10
+
11
+ # run tests
12
+ npm test 2> /dev/null
13
+
14
+ # build
15
+ VERSION=$VERSION npm run build
16
+
17
+ # commit
18
+ git add -A
19
+ git commit -m " [build] $VERSION "
20
+ npm version $VERSION --message " [release] $VERSION "
21
+
22
+ # publish
23
+ git push origin refs/tags/v$VERSION
24
+ git push
25
+ npm publish
26
+ fi
Original file line number Diff line number Diff line change 6
6
"scripts" : {
7
7
"lint" : " eslint jest-vue.js test" ,
8
8
"lint:fix" : " npm run lint -- --fix" ,
9
+ "release:note" : " node build/gen-release-note.js" ,
9
10
"test" : " npm run lint && npm run unit" ,
10
11
"unit" : " cross-env BABEL_ENV=test jest --no-cache --coverage --coverageDirectory test/coverage"
11
12
},
17
18
"babel-plugin-transform-runtime" : " ^6.23.0" ,
18
19
"babel-preset-env" : " ^1.6.0" ,
19
20
"babel-preset-es2015" : " ^6.24.1" ,
21
+ "conventional-changelog" : " ^1.1.5" ,
20
22
"cross-env" : " ^5.0.2" ,
21
23
"eslint" : " ^4.3.0" ,
22
24
"eslint-plugin-html" : " ^3.1.1" ,
You can’t perform that action at this time.
0 commit comments