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]$ ]]
88then
99 echo " Releasing $VERSION ..."
1010 npm test
11- npm run build
11+ VERSION= $VERSION npm run build
1212
1313 # commit
1414 git add -A
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ const flow = require('rollup-plugin-flow')
33const cjs = require ( 'rollup-plugin-commonjs' )
44const node = require ( 'rollup-plugin-node-resolve' )
55const replace = require ( 'rollup-plugin-replace' )
6+ const version = process . env . VERSION || require ( '../package.json' ) . version
67
78module . exports = {
89 entry : 'src/index.js' ,
@@ -17,5 +18,11 @@ module.exports = {
1718 node ( ) ,
1819 cjs ( ) ,
1920 buble ( )
20- ]
21+ ] ,
22+ banner :
23+ `/**
24+ * vue-router v${ version }
25+ * (c) ${ new Date ( ) . getFullYear ( ) } Evan You
26+ * @license MIT
27+ */`
2128}
Original file line number Diff line number Diff line change 1717 ],
1818 "scripts" : {
1919 "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" ,
2222 "lint" : " eslint src examples" ,
2323 "test" : " npm run lint && flow check && npm run test:unit && npm run test:e2e" ,
2424 "test:unit" : " jasmine JASMINE_CONFIG_PATH=test/unit/jasmine.json" ,
2525 "test:e2e" : " node test/e2e/runner.js" ,
26- "release" : " bash release.sh"
26+ "release" : " bash build/ release.sh"
2727 },
2828 "devDependencies" : {
2929 "babel-core" : " ^6.11.4" ,
You can’t perform that action at this time.
0 commit comments