Skip to content

Instantly share code, notes, and snippets.

@lfmunoz
Created September 28, 2019 15:53
Show Gist options
  • Save lfmunoz/35902b1fc79511173d8c787b303af49a to your computer and use it in GitHub Desktop.
Save lfmunoz/35902b1fc79511173d8c787b303af49a to your computer and use it in GitHub Desktop.
Frontend Makefile
### Compiles and hot-reloads for development
run:
NODE_ENV="development" npm run serve
prod:
NODE_ENV="production" npm run serve
#NVM_DIR="${XDG_CONFIG_HOME/:-$HOME/.}nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
### Compiles and minifies for production
build:
npm install
npm run build
mkdir -p ../src/main/resources/static/
cp -R ./dist/* ../src/main/resources/static/
### Lints and fixes files
lint:
npm run lint
### Run your unit tests
test:
npm run test:unit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment