Skip to content

Commit

Permalink
Run different commands on start in different environments
Browse files Browse the repository at this point in the history
  • Loading branch information
cutiful committed Mar 29, 2020
1 parent 71f2c7d commit 49a905f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 4 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
"@rollup/plugin-replace": "^2.3.1",
"local-web-server": "^4.0.0",
"npm-run-all": "^4.1.5",
"per-env": "^1.0.2",
"rollup": "^2.1.0",
"rollup-plugin-babel": "^4.4.0",
"rollup-plugin-terser": "^5.3.0",
"rollup-plugin-workbox-inject": "^1.0.1"
},
"scripts": {
"start": "npm-run-all --parallel serve watch",
"start": "per-env",
"start:development": "npm-run-all --parallel serve watch",
"start:production": "npm-run-all build serve",
"watch": "rollup -c -w",
"build": "rollup -c",
"serve": "ws -d public --blacklist '/.(.*)'",
Expand Down
7 changes: 7 additions & 0 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 49a905f

Please sign in to comment.