File tree Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Expand file tree Collapse file tree 3 files changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ if [[ $REPLY =~ ^[Yy]$ ]]
8
8
then
9
9
echo " Releasing $VERSION ..."
10
10
npm test
11
- npm run build
11
+ VERSION= $VERSION npm run build
12
12
13
13
# commit
14
14
git add -A
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const flow = require('rollup-plugin-flow')
3
3
const cjs = require ( 'rollup-plugin-commonjs' )
4
4
const node = require ( 'rollup-plugin-node-resolve' )
5
5
const replace = require ( 'rollup-plugin-replace' )
6
+ const version = process . env . VERSION || require ( '../package.json' ) . version
6
7
7
8
module . exports = {
8
9
entry : 'src/index.js' ,
@@ -17,5 +18,11 @@ module.exports = {
17
18
node ( ) ,
18
19
cjs ( ) ,
19
20
buble ( )
20
- ]
21
+ ] ,
22
+ banner :
23
+ `/**
24
+ * vue-router v${ version }
25
+ * (c) ${ new Date ( ) . getFullYear ( ) } Evan You
26
+ * @license MIT
27
+ */`
21
28
}
Original file line number Diff line number Diff line change 17
17
],
18
18
"scripts" : {
19
19
"dev" : " node examples/server.js" ,
20
- "dev:dist" : " rollup -wcm " ,
21
- "build" : " rollup -c && uglifyjs dist/vue-router.js -c -m -o dist/vue-router.min.js" ,
20
+ "dev:dist" : " rollup -wm -c build/rollup.config.js " ,
21
+ "build" : " rollup -c build/rollup.config.js && uglifyjs dist/vue-router.js -cm --comments -o dist/vue-router.min.js" ,
22
22
"lint" : " eslint src examples" ,
23
23
"test" : " npm run lint && flow check && npm run test:unit && npm run test:e2e" ,
24
24
"test:unit" : " jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json" ,
25
25
"test:e2e" : " node test/e2e/runner.js" ,
26
- "release" : " bash release.sh"
26
+ "release" : " bash build/ release.sh"
27
27
},
28
28
"devDependencies" : {
29
29
"babel-core" : " ^6.11.4" ,
You can’t perform that action at this time.
0 commit comments