Skip to content
Snippets Groups Projects
Commit 6fa229ff authored by Daniel's avatar Daniel
Browse files

Add NPM scripts

parent 508683e5
Branches
No related merge requests found
cp data/env.conf.example data/env.conf
node app &
NODE_PID=$!
cd TugasBesar2_2017
if cat /proc/version | grep -q Microsoft; then
cmd.exe '/c' 'gradlew.bat farmRun'
else
./gradlew farmRun
fi
# Terminate server after Gradle ends.
kill -2 ${NODE_PID}
......@@ -21,5 +21,11 @@
"eslint-plugin-node": "^5.2.1",
"eslint-plugin-promise": "^3.6.0",
"eslint-plugin-standard": "^3.0.1"
},
"scripts": {
"env:gen": "bash misc/scripts/env-gen",
"prepare": "bash misc/scripts/env-gen",
"start": "bash misc/scripts/start"
}
}
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment