Little README.md and automatical install of requirements on missing node_modules
This commit is contained in:
parent
61b47ac36a
commit
bb4c0ea1f2
3 changed files with 15 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -23,6 +23,7 @@ table_meta*
|
||||||
/*.csv
|
/*.csv
|
||||||
/*.pdf
|
/*.pdf
|
||||||
|
|
||||||
|
.bash_history
|
||||||
node_modules
|
node_modules
|
||||||
local
|
local
|
||||||
tmp
|
tmp
|
||||||
|
|
6
README.md
Normal file
6
README.md
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
# Alias for bash
|
||||||
|
|
||||||
|
---bash
|
||||||
|
alias srvnode='docker run --rm -it -v $(pwd):/app docker.ci/srv/node:latest'
|
||||||
|
---
|
||||||
|
|
|
@ -2,6 +2,13 @@
|
||||||
|
|
||||||
export IP=$( hostname -i )
|
export IP=$( hostname -i )
|
||||||
|
|
||||||
|
if [[ ! -d "node_modules" ]]; then
|
||||||
|
echo "node_modules does not exist."
|
||||||
|
if [[ -f "package.json" ]]; then
|
||||||
|
npm install
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
if [[ -z "$@" ]]
|
if [[ -z "$@" ]]
|
||||||
then
|
then
|
||||||
if [[ -f "package.json" ]]
|
if [[ -f "package.json" ]]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue