-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
49 lines (35 loc) · 911 Bytes
/
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
.PHONY: all build node_modules_prod
all: build
build: node_modules
dist: node_modules_prod
npm run build && npm run build-non-min
version:
./node_modules/.bin/json -E 'this.version="$(v)"' -f package.json -I
./node_modules/.bin/json -E 'this.version="$(v)"' -f bower.json -I
# if package.json changes, install
node_modules: package.json
npm install
./node_modules/bower/bin/bower install
(cd ./lib/lfpackages && make build)
touch $@
node_modules_prod:
npm install --production
./node_modules/bower/bin/bower install --production --force-latest
(cd ./lib/lfpackages && make build)
test: build
npm test
clean:
rm -rf node_modules lib dist
package: dist
run: server
server: build
npm start
lint: build
./node_modules/jshint/bin/jshint src
env=dev
deploy: dist
./node_modules/.bin/lfcdn -e $(env)
env=dev
build=1
deploy_build: dist
./node_modules/.bin/lfcdn -e $(env) --build=$(build)