Skip to content

Instantly share code, notes, and snippets.

@denysdovhan
Created June 2, 2016 14:51
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 denysdovhan/4612b53295be9ca51ac8a50afbe9508c to your computer and use it in GitHub Desktop.
Save denysdovhan/4612b53295be9ca51ac8a50afbe9508c to your computer and use it in GitHub Desktop.
shell scripts
{
"scripts": {
"build": "./scripts/build",
"test": "./scripts/test"
}
}
#!/usr/bin/env sh
if [ $NODE_ENV == 'development' ]; then
WEBPACK_CONFIG='webpack.config.dev.js'
else
WEBPACK_CONFIG='webpack.config.prod.js'
fi;
webpack --config $WEBPACK_CONFIG --progress --colors
#!/usr/bin/env sh
MOCHA='./node_modules/mocha/bin/mocha'
"$MOCHA" \
$(find api -name '*-test.js') \
--compilers js:babel-core/register
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment