Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
--- /dev/null
+all: dev-setup build-js-production
+
+dev-setup: clean-dev npm-init
+
+npm-init:
+ npm install
+
+npm-update:
+ npm update
+
+build-js:
+ npm run dev
+
+build-js-production:
+ npm run build
+
+watch-js:
+ npm run watch
+
+clean-dev:
+ rm -rf node_modules
+
### Building front-end code 🏗
-We move more and more towards using Vue.js in the frontend, starting with Settings. For building the code on changes, use these terminal commands in the `settings` subfolder:
+We move more and more towards using Vue.js in the frontend, starting with Settings. For building the code on changes, use these terminal commands in the root folder:
``` bash
# install dependencies
# build for production with minification
make build-js-production
-
-# clean output files
-make clean
```
**When making changes, also commit the compiled files!**
+++ /dev/null
-all: dev-setup build-js-production
-
-dev-setup: clean clean-dev npm-init
-
-npm-init:
- npm install
-
-npm-update:
- npm update
-
-build-js:
- npm run dev
-
-build-js-production:
- npm run build
-
-watch-js:
- npm run watch
-
-clean:
- rm -f js/vue-*.js
- rm -f js/vue-*.js.map
-
-clean-dev:
- rm -rf node_modules
-