Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit ab9a479

Browse files
committed
chore(package): add prepare and release scripts
Add `standard-version` devDependency
1 parent 65e28a7 commit ab9a479

File tree

2 files changed

+276
-19
lines changed

2 files changed

+276
-19
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,8 @@
3333
"test": "npm run e2e",
3434
"build": "cross-env NODE_ENV=production rollup -c rollup.config.js",
3535
"watch": "npm run build -- -w",
36-
"bump": "npm run build && npm --no-git-tag-version version patch && npm publish"
36+
"prepare": "npm run test",
37+
"release": "standard-version && git push --follow-tags && npm publish"
3738
},
3839
"peerDependencies": {
3940
"@nuxtjs/axios": "^4.3.0"
@@ -98,7 +99,8 @@
9899
"rollup-watch": "^4.3.1",
99100
"serve-static": "^1.12.6",
100101
"sinon": "^3.3.0",
101-
"sinon-chai": "^2.13.0"
102+
"sinon-chai": "^2.13.0",
103+
"standard-version": "^4.2.0"
102104
},
103105
"lint-staged": {
104106
"[!template].js": [

0 commit comments

Comments
 (0)