Makefile 1014 Bytes
Newer Older
1
.PHONY: all test test-e2e clean package
2

3
all: bundle jspm-css ffos-manifest public-files index-build build-completed-msg
4 5 6

build-completed-msg:
	echo -e "\n----- Build Completed -----\n"
7

MrMan's avatar
MrMan committed
8 9
bundle:
	jspm bundle-sfx js/main dist/build.js
10

MrMan's avatar
MrMan committed
11
jspm-css: jspm-css-fontawesome jspm-css-pure
12

MrMan's avatar
MrMan committed
13 14 15
jspm-css-fontawesome:
	mkdir -p dist/jspm_packages/bower
	cp -r jspm_packages/bower/fontawesome* dist/jspm_packages/bower/
MrMan's avatar
MrMan committed
16
jspm-css-pure:
MrMan's avatar
MrMan committed
17
	mkdir -p dist/jspm_packages/bower
MrMan's avatar
MrMan committed
18
	cp -r jspm_packages/bower/pure* dist/jspm_packages/bower/
19

MrMan's avatar
MrMan committed
20 21 22 23 24 25
ffos-manifest:
	cp manifest.webapp dist/

index-build:
	cp index-build.html dist/index.html

26 27 28
public-files:
	cp -r public dist/

29 30 31
watch: clean watch-js-and-css

watch-js-and-css:
32 33 34 35 36 37
	find .  -not -path "./node_modules/*" \
		-not -path "./jspm_packages/*" \
		-type f \
		-name "*.js" -o -name "*.css" \
		| entr make

38 39 40 41
setup-dev:
	cd .git/hooks && \
		ln -s ../../pre-commit.sh pre-commit

42 43 44
test:
	npm test

45 46 47
test-e2e:
	npm run test-e2e

48 49 50 51
package:
	cd dist && \
	zip -r kindling.zip *

MrMan's avatar
MrMan committed
52 53
clean:
	rm -rf dist/*