Makefile to root folder
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
bc120bc5d7
commit
be542d3f53
|
@ -1,6 +1,6 @@
|
||||||
all: dev-setup build-js-production
|
all: dev-setup build-js-production
|
||||||
|
|
||||||
dev-setup: clean clean-dev npm-init
|
dev-setup: clean-dev npm-init
|
||||||
|
|
||||||
npm-init:
|
npm-init:
|
||||||
npm install
|
npm install
|
||||||
|
@ -17,10 +17,6 @@ build-js-production:
|
||||||
watch-js:
|
watch-js:
|
||||||
npm run watch
|
npm run watch
|
||||||
|
|
||||||
clean:
|
|
||||||
rm -f js/vue-*.js
|
|
||||||
rm -f js/vue-*.js.map
|
|
||||||
|
|
||||||
clean-dev:
|
clean-dev:
|
||||||
rm -rf node_modules
|
rm -rf node_modules
|
||||||
|
|
|
@ -61,7 +61,7 @@ Otherwise, git checkouts can be handled the same as release archives, by using t
|
||||||
|
|
||||||
### Building front-end code 🏗
|
### 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
|
``` bash
|
||||||
# install dependencies
|
# install dependencies
|
||||||
|
@ -75,9 +75,6 @@ make watch-js
|
||||||
|
|
||||||
# build for production with minification
|
# build for production with minification
|
||||||
make build-js-production
|
make build-js-production
|
||||||
|
|
||||||
# clean output files
|
|
||||||
make clean
|
|
||||||
```
|
```
|
||||||
|
|
||||||
**When making changes, also commit the compiled files!**
|
**When making changes, also commit the compiled files!**
|
||||||
|
|
Loading…
Reference in New Issue