Fixed bug for run

This commit is contained in:
Damien Broqua 2022-02-17 09:45:58 +01:00
parent 7b18c601c2
commit b1aaeaaef8
3 changed files with 4 additions and 3 deletions

1
.gitignore vendored
View File

@ -122,3 +122,4 @@ dist
yarn.lock yarn.lock
public/css public/css
public/css public/css
docker-compose.yml

View File

@ -10,7 +10,7 @@ services:
command: > command: >
bash -c " bash -c "
yarn install && yarn install &&
yarn run" yarn run:all"
volumes: volumes:
- ./:/home/node/app - ./:/home/node/app
- /home/node/node_modules - /home/node/node_modules

View File

@ -4,7 +4,7 @@
"description": "Simple application to manage your CD/Vinyl collection", "description": "Simple application to manage your CD/Vinyl collection",
"scripts": { "scripts": {
"start": "node ./dist/bin/www", "start": "node ./dist/bin/www",
"run": "npm-run-all build sass start", "run:all": "npm-run-all build sass start",
"watch": "nodemon -e js,scss", "watch": "nodemon -e js,scss",
"sass": "npx sass sass/index.scss public/css/main.css -s compressed", "sass": "npx sass sass/index.scss public/css/main.css -s compressed",
"prebuild": "rimraf dist", "prebuild": "rimraf dist",
@ -64,7 +64,7 @@
"vue": "^3.2.31" "vue": "^3.2.31"
}, },
"nodemonConfig": { "nodemonConfig": {
"exec": "yarn run", "exec": "yarn run:all",
"watch": [ "watch": [
"src/*", "src/*",
"sass/*" "sass/*"