Modernise & make fun #3
4 changed files with 4 additions and 4 deletions
|
|
@ -10,7 +10,7 @@
|
|||
},
|
||||
"scripts": {
|
||||
"build": "npx webpack --mode production",
|
||||
"start": "concurrently --kill-others-on-fail \"webpack --mode development -w\" \"nodemon --legacy-watch dist/main.js\"",
|
||||
"dev": "concurrently --kill-others-on-fail \"webpack --mode development -w\" \"nodemon --legacy-watch dist/main.js\"",
|
||||
"try-build": "npm run build && cd dist && node main.js && cd -"
|
||||
},
|
||||
"dependencies": {
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
"main": "index.js",
|
||||
"scripts": {
|
||||
"build": "npx webpack --mode production",
|
||||
"start": "npx webpack-dev-server --mode development",
|
||||
"dev": "npx webpack-dev-server --mode development",
|
||||
"try-build": "npm run build && cd dist && python3 -m http.server 8080"
|
||||
},
|
||||
"browserslist": [
|
||||
|
|
|
|||
|
|
@ -18,6 +18,6 @@
|
|||
"build": "cd shared && npm run build && cd ../frontend && npm run build && cd ../backend && npm run build",
|
||||
"lint": "eslint ./**/src/**/*.{js,ts,json} --fix && prettier --write ./**/src/**/*.{js,ts,json}",
|
||||
"init": "cd shared && npm install && cd ../frontend && npm install && cd ../backend && npm install",
|
||||
"start": "concurrently --kill-others-on-fail \"cd shared && npm start\" \"cd backend && npm start\" \"cd frontend && npm start\""
|
||||
"dev": "concurrently --kill-others-on-fail \"cd shared && npm dev\" \"cd backend && npm dev\" \"cd frontend && npm dev\""
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -9,7 +9,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"build": "npx webpack --mode production",
|
||||
"start": "npx webpack --mode development --watch",
|
||||
"dev": "npx webpack --mode development --watch",
|
||||
"try-build-before": "npx webpack --mode production"
|
||||
},
|
||||
"devDependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue