Skip to content

Commit 6cf21a9

Browse files
committed
chore: add version scripts
1 parent 04f0400 commit 6cf21a9

File tree

2 files changed

+17
-2
lines changed

2 files changed

+17
-2
lines changed

package-lock.json

Lines changed: 9 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"start": "run-s start:client",
77
"start:client": "parcel src/index.html --open",
88
"start:embed": "parcel src/embed.html --open",
9-
"build": "run-s clean build:client build:server build:sw",
9+
"build": "cross-env NODE_ENV=production run-s clean build:client build:server build:sw",
1010
"build:client": "parcel build src/index.html src/embed.js --dist-dir dist/client",
1111
"postbuild:client": "mkdir -p dist/client/public && cp _redirects dist/client/_redirects && cp public/favicon.ico dist/client/favicon.ico && cp public/icon.png dist/client/public/icon.png && cp -r .well-known dist/client/.well-known",
1212
"build:server": "cp -r src/lambda/ dist/server",
@@ -19,7 +19,12 @@
1919
"ci:changelog": "node scripts/changelog.js",
2020
"test": "jest",
2121
"test:watch": "jest --watch",
22-
"prettier": "prettier . --write"
22+
"prettier": "prettier . --write",
23+
"bump:patch": "npm version patch -m 'release: cut the %s release'",
24+
"bump:minor": "npm version minor -m 'release: cut the %s release'",
25+
"bump:major": "npm version major -m 'release: cut the %s release'",
26+
"preversion": "npm run test",
27+
"postversion": "git push && git push --tags && git checkout master && git merge develop --ff && git push && git checkout -"
2328
},
2429
"dependencies": {
2530
"@testing-library/dom": "^7.11.0",
@@ -48,6 +53,7 @@
4853
"babel-eslint": "^10.1.0",
4954
"conventional-changelog": "^3.1.21",
5055
"conventional-changelog-config-spec": "^2.1.0",
56+
"cross-env": "^7.0.2",
5157
"eslint": "^7.1.0",
5258
"eslint-config-prettier": "^6.11.0",
5359
"eslint-plugin-prettier": "^3.1.3",

0 commit comments

Comments
 (0)