scss + makefile
This commit is contained in:
17
Makefile
17
Makefile
@@ -44,14 +44,23 @@ WHITE='\033[1;37m'
|
||||
.title:
|
||||
$(info $(APP_NAME) v$(VERSION))
|
||||
|
||||
.PHONY: fbuild
|
||||
fbuild: ## Build frontend
|
||||
.PHONY: install
|
||||
install: ## Install all deps
|
||||
npm install
|
||||
$(info Building Browser MQTT library)
|
||||
cd node_modules/mqtt
|
||||
npm install
|
||||
webpack ./mqtt.js --output-library mqtt
|
||||
cd ../..
|
||||
npm run build-dev
|
||||
|
||||
.PHONY: build
|
||||
build: ## Build frontend (default: env=dev)
|
||||
ifeq ($(env), prod)
|
||||
$(info Building frontend for production)
|
||||
npm run build:prod
|
||||
else
|
||||
$(info Building frontend for development)
|
||||
npm run build:dev
|
||||
endif
|
||||
|
||||
# Public targets
|
||||
.PHONY: test
|
||||
|
Reference in New Issue
Block a user