Created
November 8, 2016 00:13
-
-
Save deoxxa/12ce81bea6e207aff3bbfd3aa239f2fe to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
set -e | |
echo "--- Clearing old build contents" | |
rm -rf build/* | |
echo "--- Getting yarn image" | |
docker pull kkarczmarczyk/node-yarn:6.7-slim | |
docker run -v $(pwd):/app kkarczmarczyk/node-yarn:6.7-slim bash -c ' | |
cd /app && | |
echo "--- Installing dependencies" && | |
yarn && | |
echo "--- Linting CSS" && | |
yarn run lint:csscomb && | |
echo "--- Linting JS" && | |
yarn run lint:eslint && | |
echo "--- Building bundle" && | |
API_URL=__REPLACE_API_URL__ yarn run build | |
' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment