Created
September 28, 2019 15:53
-
-
Save lfmunoz/35902b1fc79511173d8c787b303af49a to your computer and use it in GitHub Desktop.
Frontend Makefile
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
### 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