Skip to content

Instantly share code, notes, and snippets.

@xuyuji9000
Created November 28, 2017 11:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save xuyuji9000/a136757459eb5c3e313a0d5b8db0e94b to your computer and use it in GitHub Desktop.
Save xuyuji9000/a136757459eb5c3e313a0d5b8db0e94b to your computer and use it in GitHub Desktop.
This is the template for project automation.
#!/bin/sh
White='\033[1;36m'
NC='\033[0m' # No Color
case "$1" in
"test" )
docker run --rm -it -v "$PWD":/app -w /app node:carbon-alpine /bin/sh -c "npm run test";;
* )
echo "${White}test${NC}: run node test in docker"
esac
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment