Skip to content

Instantly share code, notes, and snippets.

@satchinjoshi
Created September 11, 2017 06:51
Show Gist options
  • Select an option

  • Save satchinjoshi/a5dfdd16c62654d46c0c61d83f26f577 to your computer and use it in GitHub Desktop.

Select an option

Save satchinjoshi/a5dfdd16c62654d46c0c61d83f26f577 to your computer and use it in GitHub Desktop.
npm-wercker.yml
build:
box: satchinjoshi/node-alpine:8-alpine
steps:
- script:
name: set yarn cache
code: yarn config set cache-folder $WERCKER_CACHE_DIR/yarn
- script:
name: install packages
code: yarn
- script:
name: build assets
code: npm run prod
- script:
name: remove unwanted dir
code: |
rm -rf public/pre
rm -rf node_modules
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment