forked from staugaard/ember-resource
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathMakefile
41 lines (28 loc) · 892 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
DIST_JS = dist/ember-resource.js
BROCCOLI = ./node_modules/broccoli-cli/bin/broccoli
JSHINT = ./node_modules/jshint/bin/jshint
MOCHA-CHROME = ./node_modules/.bin/mocha-chrome
dist: $(DIST_JS) $(JSHINT)
@$(JSHINT) $<
ci: dist test
$(DIST_JS): jshint $(BROCCOLI)
@rm -rf dist
$(BROCCOLI) build dist
@echo "\n Build successful!\n"
jshint: $(JSHINT)
@$(JSHINT) src/*.js src/vendor/*.js spec/javascripts/*Spec.js
test: test-ember-current test-ember-next
test-ember-current: jshint $(MOCHA-CHROME)
$(MOCHA-CHROME) spec/runner.html
test-ember-next: jshint $(MOCHA-CHROME)
$(MOCHA-CHROME) spec/runner-next.html
$(BROCCOLI): npm_install
$(JSHINT): npm_install
$(MOCHA-CHROME): npm_install
npm_install:
npm install > /dev/null
clean:
rm -rf ./dist
clobber: clean
rm -rf ./node_modules ./tmp
.PHONY: dist ci jshint test test-ember-09 test-ember-1 npm_install clean clobber