Rebuilt the network view in Svelte
This commit is contained in:
17
Makefile
17
Makefile
@@ -27,8 +27,7 @@ BETA_VERSION := $(VERSION)-rc$(shell ./scripts/next-rc)
|
||||
BETA_PKG_NAME := bbctrl-$(BETA_VERSION)
|
||||
|
||||
SUBPROJECTS := avr boot pwr jig
|
||||
WATCH := src/pug src/pug/templates src/stylus src/js src/resources Makefile
|
||||
WATCH += src/static
|
||||
WATCH := src/pug src/pug/templates src/stylus src/js src/resources src/svelte-components src/static Makefile
|
||||
|
||||
ifndef HOST
|
||||
HOST=onefinity
|
||||
@@ -100,6 +99,9 @@ node_modules: package.json
|
||||
$(TARGET_DIR)/%: src/resources/%
|
||||
install -D $< $@
|
||||
|
||||
src/svelte-components/dist/%:
|
||||
cd src/svelte-components && rm -rf dist && npm run build
|
||||
|
||||
$(TARGET_DIR)/index.html: build/templates.pug
|
||||
$(TARGET_DIR)/index.html: $(wildcard src/static/js/*)
|
||||
$(TARGET_DIR)/index.html: $(wildcard src/static/css/*)
|
||||
@@ -108,9 +110,16 @@ $(TARGET_DIR)/index.html: $(wildcard src/js/*)
|
||||
$(TARGET_DIR)/index.html: $(wildcard src/stylus/*)
|
||||
$(TARGET_DIR)/index.html: src/resources/config-template.json
|
||||
$(TARGET_DIR)/index.html: $(wildcard src/resources/onefinity*defaults.json)
|
||||
$(TARGET_DIR)/index.html: $(wildcard src/svelte-components/dist/*)
|
||||
|
||||
$(TARGET_DIR)/%.html: src/pug/%.pug node_modules
|
||||
@mkdir -p $(shell dirname $@)
|
||||
FORCE:
|
||||
|
||||
$(TARGET_DIR)/%.html: src/pug/%.pug node_modules FORCE
|
||||
cd src/svelte-components && rm -rf dist && npm run build
|
||||
@mkdir -p $(TARGET_DIR)/svelte-components
|
||||
cp src/svelte-components/dist/* $(TARGET_DIR)/svelte-components/
|
||||
|
||||
@mkdir -p $(TARGET_DIR)
|
||||
$(PUG) -O pug-opts.js -P $< -o $(TARGET_DIR) || (rm -f $@; exit 1)
|
||||
|
||||
pylint:
|
||||
|
||||
Reference in New Issue
Block a user