Use Makefile for building.
This commit is contained in:
parent
caee9c0d59
commit
250b69398f
1 changed files with 26 additions and 0 deletions
26
Makefile
Normal file
26
Makefile
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
NODE_EXE := $(shell which node)
|
||||||
|
NPM_EXE := $(shell which npm)
|
||||||
|
|
||||||
|
BUILD_EXE := build.js
|
||||||
|
|
||||||
|
all: install build
|
||||||
|
|
||||||
|
install:
|
||||||
|
${NPM_EXE} ci
|
||||||
|
|
||||||
|
update:
|
||||||
|
${NPM_EXE} update --save
|
||||||
|
|
||||||
|
build:
|
||||||
|
${NODE_EXE} ${BUILD_EXE}
|
||||||
|
|
||||||
|
rebuild-css:
|
||||||
|
${NODE_EXE} ${BUILD_EXE} css
|
||||||
|
|
||||||
|
rebuild-html:
|
||||||
|
${NODE_EXE} ${BUILD_EXE} html
|
||||||
|
|
||||||
|
rebuild-js:
|
||||||
|
${NODE_EXE} ${BUILD_EXE} js
|
||||||
|
|
||||||
|
.PHONY: all install update build rebuild-css rebuild-html rebuild-js
|
Loading…
Add table
Add a link
Reference in a new issue