Fix monorepo build
This commit is contained in:
parent
2d67b7d939
commit
fd80a299b6
14 changed files with 99 additions and 83 deletions
51
package.json
51
package.json
|
|
@ -1,43 +1,22 @@
|
|||
{
|
||||
"name": "root",
|
||||
"private": true,
|
||||
"workspaces": {
|
||||
"packages": [
|
||||
"frontend",
|
||||
"shared",
|
||||
"backend"
|
||||
],
|
||||
"nohoist": [
|
||||
"**"
|
||||
]
|
||||
},
|
||||
"scripts": {
|
||||
"build": "lerna run build-before && lerna run build",
|
||||
"initialize": "lerna link && lerna run initialize",
|
||||
"build": "yarn workspaces shared run build && yarn workspaces frontend run build && yarn workspaces backend run build",
|
||||
"lint": "eslint './**/src/**/*.{js,ts,json}' --fix",
|
||||
"start": "lerna run --parallel start",
|
||||
"try-build": "lerna run --parallel try-build-before && lerna run --parallel try-build"
|
||||
},
|
||||
"dependencies": {
|
||||
"decla.red-frontend": "file:frontend",
|
||||
"shared": "file:shared"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@types/cors": "^2.8.7",
|
||||
"@types/express": "^4.17.8",
|
||||
"@types/node": "^14.11.2",
|
||||
"@types/socket.io": "^2.1.11",
|
||||
"@types/socket.io-client": "^1.4.34",
|
||||
"@types/uuid": "^8.0.0",
|
||||
"@typescript-eslint/eslint-plugin": "^3.9.1",
|
||||
"@typescript-eslint/parser": "^3.9.1",
|
||||
"autoprefixer": "^9.8.5",
|
||||
"css-loader": "^3.5.2",
|
||||
"cssnano": "^4.1.10",
|
||||
"eslint": "^7.2.0",
|
||||
"eslint-config-prettier": "^6.11.0",
|
||||
"eslint-plugin-import": "^2.21.2",
|
||||
"eslint-plugin-json-format": "^2.0.1",
|
||||
"eslint-plugin-prettier": "^3.1.4",
|
||||
"eslint-plugin-unused-imports": "^0.1.3",
|
||||
"file-loader": "^6.1.0",
|
||||
"firebase": "^7.22.0",
|
||||
"gl-matrix": "^3.3.0",
|
||||
"lerna": "^3.22.1",
|
||||
"prettier": "^2.0.5",
|
||||
"sdf-2d": "^0.5.2",
|
||||
"socket.io-client": "^2.3.1",
|
||||
"typescript": "^4.0.3",
|
||||
"uuid": "^8.2.0"
|
||||
"frontend": "yarn workspace decla.red-frontend start",
|
||||
"shared": "yarn workspace shared start",
|
||||
"backend": "yarn workspace declared-server start",
|
||||
"start": "concurrently --kill-others-on-fail \"yarn frontend\" \"yarn shared\" \"yarn backend\""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue