-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
68 lines (52 loc) · 1.42 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
default:
@echo ""
@echo "Available Targets:"
@echo ""
@echo " make start"
@echo " make compile"
@echo " make clean"
@echo " make test"
@echo ""
install: npm-install-packages jspm-install-packages
production: prepare-compile compile bundle-app minify-core-files
dev: prepare-compile gulp-compile minify-core-files
compile: prepare-compile
$(babel) src --out-dir lib
gulp-compile: prepare-compile
$(gulp) compile
gulp-compile-watch: prepare-compile
$(gulp) compile-watch
server:
node index.js
bundle-app:
$(jspm) bundle lib/app - app-decorators dist/lib/app.js \
--skip-source-maps \
--minify;
minify-core-files:
$(uglifyjs) ./node_modules/systemjs/dist/system.js \
./node_modules/app-decorators/bootstrap.js \
./node_modules/app-decorators/jspm.config.js \
./node_modules/app-decorators/runtime.js \
-o dist/runtime.js \
-c -m
npm-install-packages:
npm install
jspm-install-packages:
$(jspm) install
clean:
make clean-dist; rm -rf node_modules jspm_packages
clean-dist:
rm -rf dist lib;
prepare-compile: clean-dist
mkdir -p dist; \
cp index.html dist; \
cd dist; \
ln -sf ../jspm_packages jspm_packages; \
ln -sf ../node_modules node_modules; \
cd ..;
babel = ./node_modules/.bin/babel
gulp = ./node_modules/.bin/gulp
jspm = ./node_modules/.bin/jspm
uglifyjs = ./node_modules/.bin/uglifyjs
.PHONY: compile compile-watch live production bundle-app server prepare-compile;
MAKEFLAGS = -s