-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathMakefile
More file actions
27 lines (21 loc) · 746 Bytes
/
Makefile
File metadata and controls
27 lines (21 loc) · 746 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.PHONY: dev build npm default lint
default: npm build
# install required dependencies
npm:
npm install
# build app bundle and watch for changes with no optimizations or minification.
dev:
./node_modules/webpack/bin/webpack.js --progress --colors --watch --config webpack/dev.js
# build production grade bundle
build:
./node_modules/webpack/bin/webpack.js --progress --colors -p --config webpack/prod.js
# check for js errors
lint:
./node_modules/eslint/bin/eslint.js --ext .js,.jsx adminator/static/js/src/ -c .eslintrc.json
clean:
rm -rf node_modules
rm -rf adminator/static/js/node_modules
rm adminator/static/dist/app.bundle.js
rm adminator/static/fonts/*
rm adminator/static/css/patternfly*
rm adminator/static/js/patternfly*