Still refactoring, better _frontend and _public structuring
This commit is contained in:
+15
-15
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user