Skip to content

Instantly share code, notes, and snippets.

@deoxxa
Created November 8, 2016 00:13
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 deoxxa/12ce81bea6e207aff3bbfd3aa239f2fe to your computer and use it in GitHub Desktop.
Save deoxxa/12ce81bea6e207aff3bbfd3aa239f2fe to your computer and use it in GitHub Desktop.
#!/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