node and yarn install
This commit is contained in:
parent
05ffe450e0
commit
d9be4d7198
7
.gitignore
vendored
7
.gitignore
vendored
@ -4,3 +4,10 @@
|
|||||||
|
|
||||||
# Uncomment to ignore Database datas
|
# Uncomment to ignore Database datas
|
||||||
data
|
data
|
||||||
|
|
||||||
|
# yarn
|
||||||
|
/app/.yarncache
|
||||||
|
|
||||||
|
|
||||||
|
# phpstorm
|
||||||
|
.idea
|
||||||
|
@ -18,5 +18,9 @@
|
|||||||
"dev": "encore dev",
|
"dev": "encore dev",
|
||||||
"watch": "encore dev --watch",
|
"watch": "encore dev --watch",
|
||||||
"build": "encore production --progress"
|
"build": "encore production --progress"
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"sass": "^1.55.0",
|
||||||
|
"sass-loader": "^13.0.2"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
4350
app/yarn.lock
Normal file
4350
app/yarn.lock
Normal file
File diff suppressed because it is too large
Load Diff
22
docker-node.sh
Executable file
22
docker-node.sh
Executable file
@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Ce script permet de lancer node dans un conteneur docker séparé,
|
||||||
|
# afin de disposer des outils comme yarn (paquet npm)
|
||||||
|
|
||||||
|
# exécute toujours dans le répertoire `php`
|
||||||
|
cd $(dirname $0)
|
||||||
|
|
||||||
|
# la commande exécutée dans le conteneur
|
||||||
|
if [ $# -eq 0 ]; then
|
||||||
|
cmd=bash
|
||||||
|
else
|
||||||
|
cmd="${@}"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# le conteneur node monte le dossier de l'application
|
||||||
|
docker run --rm -it \
|
||||||
|
--user "$(id -u):$(id -g)" \
|
||||||
|
--volume "${PWD}/app:/app" \
|
||||||
|
--workdir "/app" \
|
||||||
|
--env "YARN_CACHE_FOLDER=/app/.yarncache" \
|
||||||
|
node:14 ${cmd}
|
Loading…
Reference in New Issue
Block a user