0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-30 20:33:54 -05:00

refactor: unify dev script

This commit is contained in:
Gao Sun 2021-07-26 22:04:32 +08:00
parent 720d944c5d
commit 13b516dccb
No known key found for this signature in database
GPG key ID: 0F0EFA2E36639F31
3 changed files with 5 additions and 4 deletions

View file

@ -4,7 +4,8 @@
"scripts": {
"lerna": "lerna",
"bootstrap": "lerna bootstrap",
"prepare": "husky install && lerna run --stream prepack"
"prepare": "husky install && lerna run --stream prepack",
"dev": "lerna run --stream prepack && lerna run --parallel dev"
},
"devDependencies": {
"@commitlint/cli": "^13.1.0",

View file

@ -10,7 +10,7 @@
"precommit": "lint-staged",
"build": "rm -rf build/ && tsc",
"lint": "eslint --format pretty --ext .ts src",
"dev": "rm -rf build/ && tsc-watch --onSuccess \"node ./build/index.js\""
"dev": "rm -rf build/ && tsc-watch --preserveWatchOutput --onSuccess \"node ./build/index.js\""
},
"dependencies": {
"@logto/essentials": "^1.1.0-rc.1",

View file

@ -7,8 +7,8 @@
"precommit": "lint-staged",
"dev:tsc": "tsc -b -w --preserveWatchOutput",
"dev:razzle": "razzle start",
"start": "PORT=5000 concurrently -c \"blue,cyan\" \"yarn:dev:tsc\" -k \"yarn:dev:razzle\"",
"start:prod": "NODE_ENV=production node build/server.js",
"dev": "PORT=5000 concurrently -c \"blue,cyan\" \"yarn:dev:tsc\" -k \"yarn:dev:razzle\"",
"start": "NODE_ENV=production node build/server.js",
"build": "tsc -b && razzle build --noninteractive",
"lint": "eslint --format pretty --ext .ts --ext .tsx src",
"stylelint": "stylelint \"src/**/*.scss\"",