-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
49 lines (35 loc) · 1.07 KB
/
Copy pathMakefile
File metadata and controls
49 lines (35 loc) · 1.07 KB
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
GIT = git
NPM = npm
GRUNT = ./node_modules/.bin/grunt
BOWER = ./node_modules/.bin/bower
all: test-once compile docs
compile: compile-theme
# ----------------------------------------------------------------------- #
# cp dist/theme*
# ----------------------------------------------------------------------- #
compile-theme:
mkdir -p dist
NODE_PATH=./node_modules $(GRUNT) compile-theme
bootstrap: clean
mkdir -p dist
$(NPM) link --prefix=./node_modules
NODE_PATH=./node_modules $(GRUNT) sed:bootstrap
$(BOWER) install
jshint:
NODE_PATH=./node_modules $(GRUNT) jshint
test:
NODE_PATH=./node_modules $(GRUNT) test --force --pattern=$(pattern)
test-once:
NODE_PATH=./node_modules $(GRUNT) test_once --force --pattern=$(pattern)
test-dev:
NODE_PATH=./node_modules $(GRUNT) test_dev --force --pattern=$(pattern)
test-ci:
NODE_PATH=./node_modules $(GRUNT) test_ci
clean:
mkdir -p dist
rm -rf dist
rm -rf node_modules
rm -rf bower_components
clean-all: clean
if test -f $(BOWER); then $(BOWER) cache clean; fi
.PHONY: compile bootstrap jshint test test-ci docs clean