Minify video js fix makefile

This commit is contained in:
Thomas Forgione 2020-10-04 21:48:37 +02:00
parent ed780b3127
commit e409d04461
2 changed files with 7 additions and 56440 deletions

View File

@ -12,43 +12,24 @@ endif
BUILD_DIR=js BUILD_DIR=js
all: client-dev all: dev
release: client-release
client-dev: client/src/** dev: src/**
@mkdir -p $(BUILD_DIR) @mkdir -p $(BUILD_DIR)
$(ELM) make src/Main.elm --output $(BUILD_DIR)/main.js $(ELM) make src/Main.elm --output $(BUILD_DIR)/main.js
client-release: client/src/** release: src/**
@mkdir -p $(BUILD_DIR) @mkdir -p $(BUILD_DIR)
@$(ELM) make src/Main.elm --optimize --output $(BUILD_DIR)/main.tmp.js @$(ELM) make src/Main.elm --optimize --output $(BUILD_DIR)/main.tmp.js
@$(UGLIFYJS) ../$(BUILD_DIR)/main.tmp.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle > $(BUILD_DIR)/main.min.js @$(UGLIFYJS) $(BUILD_DIR)/main.tmp.js --compress 'pure_funcs="F2,F3,F4,F5,F6,F7,F8,F9,A2,A3,A4,A5,A6,A7,A8,A9",pure_getters,keep_fargs=false,unsafe_comps,unsafe' | uglifyjs --mangle > $(BUILD_DIR)/main.min.js
client-watch: watch:
@mkdir -p $(BUILD_DIR) @mkdir -p $(BUILD_DIR)
@$(ELMLIVE) src/Main.elm -p 7000 -d . -- --output $(BUILD_DIR)/main.js @$(ELMLIVE) src/Main.elm -p 7000 -d . -- --output $(BUILD_DIR)/main.js
setup-watch: clean:
@/bin/echo -e "\033[32;1m Watching\033[0m setup"
@cp client/src/Log.elm.debug client/src/Log.elm
@mkdir -p $(BUILD_DIR)
@cd client && $(ELMLIVE) src/Setup.elm -p 7000 -d ../$(BUILD_DIR)/ -- --output ../$(BUILD_DIR)/setup.js
server-dev:
@cd server && cargo +nightly build
server-release:
@cd server && cargo +nightly build --release
clean-client:
@/bin/echo -e "\033[32;1m Cleaning\033[0m client" @/bin/echo -e "\033[32;1m Cleaning\033[0m client"
@rm -rf $(BUILD_DIR) @rm -rf $(BUILD_DIR)
@/bin/echo -e "\033[32;1m Cleaned\033[0m client" @/bin/echo -e "\033[32;1m Cleaned\033[0m client"
clean-server:
@/bin/echo -e "\033[32;1m Cleaning\033[0m server"
@cd server && cargo clean
@/bin/echo -e "\033[32;1m Cleaned\033[0m server"
clean: clean-client clean-server

56416
js/vd.js

File diff suppressed because one or more lines are too long