Improve assets management

This commit is contained in:
Frédéric Guillot
2019-07-25 19:23:30 -07:00
parent d42dd07054
commit 8c396287ac
5 changed files with 40 additions and 47 deletions

View File

@@ -2,23 +2,10 @@ DOCKER_IMAGE := docker.io/kanboard/kanboard
DOCKER_TAG := master
VERSION := $(shell git rev-parse --short HEAD)
.PHONY: all clean static jshint archive test-sqlite test-mysql test-postgres test-browser \
.PHONY: archive test-sqlite test-mysql test-postgres test-browser \
integration-test-mysql integration-test-postgres integration-test-sqlite sql \
docker-image docker-manifest docker-run docker-sh
all: static
clean:
@ rm -rf ./node_modules
static: clean
@ npm install
@ ./node_modules/.bin/gulp vendor js css
@ ./node_modules/.bin/jshint assets/js/{core,components,polyfills}
jshint:
@ ./node_modules/.bin/jshint assets/js/{core,components,polyfills}
archive:
@ echo "Build archive: version=$(VERSION)"
@ git archive --format=zip --prefix=kanboard/ $(VERSION) -o kanboard-$(VERSION).zip