Still refactoring, better _frontend and _public structuring

This commit is contained in:
2022-08-18 18:11:51 +02:00
parent 92cee16cc8
commit 227619e5eb
24 changed files with 1006 additions and 1398 deletions
+15 -15
View File
@@ -1,23 +1,23 @@
STYLES_SOURCES = $(wildcard src/styles/*.scss)
SCRIPTS_SOURCES = $(wildcard src/*.js)
# https://pnpm.io/ is better at storing packages than npm, if you still want to use npm just run "make NPM=npm <target>"
NPM = pnpm
#
# Build Frontend
#
.PHONY: all
all: scripts styles
all: setup build
.PHONY: styles
styles: $(STYLES_SOURCES)
npm run build:styles
.PHONY: setup
setup:
$(NPM) install
.PHONY: scripts
scripts: $(SCRIPTS_SOURCES)
npm run build:scripts
.PHONY: build
build:
mkdir -p out/
$(NPM) run build
.PHONY: clean
clean:
rm -rf dist/
.PHONY: debug
debug:
@echo "STYLES_SOURCES = $(STYLES_SOURCES)"
@echo "SCRIPTS_SOURCES = $(SCRIPTS_SOURCES)"
rm -rf out/