scss + makefile

This commit is contained in:
2022-09-23 13:22:14 +03:00
parent d7bdf27e10
commit 083c09f6a5
9 changed files with 5631 additions and 191 deletions

View File

@@ -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