|
6 | 6 | "start": "run-s start:client",
|
7 | 7 | "start:client": "parcel src/index.html --open",
|
8 | 8 | "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", |
10 | 10 | "build:client": "parcel build src/index.html src/embed.js --dist-dir dist/client",
|
11 | 11 | "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",
|
12 | 12 | "build:server": "cp -r src/lambda/ dist/server",
|
|
19 | 19 | "ci:changelog": "node scripts/changelog.js",
|
20 | 20 | "test": "jest",
|
21 | 21 | "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 -" |
23 | 28 | },
|
24 | 29 | "dependencies": {
|
25 | 30 | "@testing-library/dom": "^7.11.0",
|
|
48 | 53 | "babel-eslint": "^10.1.0",
|
49 | 54 | "conventional-changelog": "^3.1.21",
|
50 | 55 | "conventional-changelog-config-spec": "^2.1.0",
|
| 56 | + "cross-env": "^7.0.2", |
51 | 57 | "eslint": "^7.1.0",
|
52 | 58 | "eslint-config-prettier": "^6.11.0",
|
53 | 59 | "eslint-plugin-prettier": "^3.1.3",
|
|
0 commit comments