ui: remove browserify
This commit is contained in:
29
Makefile
29
Makefile
@ -6,11 +6,6 @@ SCRIPT_DEST := $(SCRIPT_SRC:src/%=$(DIST_DIR)/%)
|
||||
|
||||
default: build
|
||||
|
||||
clean:
|
||||
git clean -fXd -e !src/config.json
|
||||
|
||||
install: node_modules copy_lib copy_samples
|
||||
|
||||
build: $(DIST_DIR)/index.html $(DIST_DIR)/styles/index.css $(SCRIPT_DEST)
|
||||
|
||||
watch:
|
||||
@ -21,23 +16,6 @@ watch:
|
||||
sleep 0.5; \
|
||||
done
|
||||
|
||||
serve:
|
||||
node server
|
||||
|
||||
# npm
|
||||
node_modules:
|
||||
npm install
|
||||
|
||||
# vendor lib
|
||||
copy_lib:
|
||||
@node copy_lib.js
|
||||
|
||||
# samples
|
||||
copy_samples: src/config.json
|
||||
|
||||
src/config.json:
|
||||
@cp -n src/config.sample.json src/config.json
|
||||
|
||||
# pug
|
||||
$(DIST_DIR)/index.html: src/index.pug src/config.json $(wildcard src/*.pug src/*/*.pug)
|
||||
@echo pug: $< ➜ $@
|
||||
@ -76,11 +54,6 @@ buildstaging: build
|
||||
buildprod: build
|
||||
$(MAKE) $(DIST_DIR)/index.prod.html
|
||||
|
||||
deploy: pull install build
|
||||
|
||||
pull:
|
||||
git pull
|
||||
|
||||
sync: buildstaging
|
||||
rsync -rv www/* staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/ --exclude=www/index.html --exclude=www/index.prod.html --exclude=www/index.staging.html
|
||||
rsync --no-R --no-implied-dirs www/index.staging.html staging-app@ssh-staging-app.happy-dev.fr:~/staging-app.happy-dev.fr/index.html
|
||||
@ -91,4 +64,4 @@ syncprod: buildprod
|
||||
rsync --no-R --no-implied-dirs www/index.prod.html alpha@ssh-alpha.happy-dev.fr:~/www/index.html
|
||||
rsync -v www/.htaccess alpha@ssh-alpha.happy-dev.fr:~/www/
|
||||
|
||||
.PHONY: default install copy_lib copy_samples build watch serve clean sync syncprod buildstaging buildprod pull deploy
|
||||
.PHONY: default build watch sync syncprod buildstaging buildprod
|
||||
Reference in New Issue
Block a user