mirror of
https://github.com/sudoxnym/habitica-self-host.git
synced 2026-04-14 19:47:03 +00:00
feat(eb): update npm to v3 (#7711)
This commit is contained in:
parent
db2ed83a58
commit
430160ef0e
1 changed files with 11 additions and 4 deletions
|
|
@ -1,16 +1,23 @@
|
||||||
commands:
|
commands:
|
||||||
01_sym:
|
01_sym_node:
|
||||||
command: "ln -sf $(ls -td /opt/elasticbeanstalk/node-install/node-* | head -1)/bin/node /bin/node"
|
command: "ln -sf $(ls -td /opt/elasticbeanstalk/node-install/node-* | head -1)/bin/node /bin/node"
|
||||||
|
files:
|
||||||
|
"/opt/elasticbeanstalk/hooks/appdeploy/pre/41update_npm.sh" :
|
||||||
|
mode: "000775"
|
||||||
|
owner: root
|
||||||
|
group: users
|
||||||
|
content: |
|
||||||
|
$(ls -td /opt/elasticbeanstalk/node-install/node-* | head -1)/bin/npm install -g npm@3
|
||||||
container_commands:
|
container_commands:
|
||||||
01_makeBabel:
|
01_makeBabel:
|
||||||
command: "touch /tmp/.babel.json"
|
command: "touch /tmp/.babel.json"
|
||||||
02_ownBabel:
|
02_ownBabel:
|
||||||
command: "chmod a+rw /tmp/.babel.json"
|
command: "chmod a+rw /tmp/.babel.json"
|
||||||
03_installBower:
|
03_installBower:
|
||||||
command: "$NODE_HOME/bin/npm install -g bower"
|
command: "npm install -g bower"
|
||||||
04_installGulp:
|
04_installGulp:
|
||||||
command: "$NODE_HOME/bin/npm install -g gulp"
|
command: "npm install -g gulp"
|
||||||
05_runBower:
|
05_runBower:
|
||||||
command: "$NODE_HOME/lib/node_modules/bower/bin/bower --config.interactive=false --allow-root install -f"
|
command: "$NODE_HOME/lib/node_modules/bower/bin/bower --config.interactive=false --allow-root install -f"
|
||||||
06_runGulp:
|
06_runGulp:
|
||||||
command: "$NODE_HOME/lib/node_modules/gulp/bin/gulp.js build"
|
command: "$NODE_HOME/lib/node_modules/gulp/bin/gulp.js build"
|
||||||
Loading…
Reference in a new issue