forked from zendesk/ember-resource
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
41 lines (28 loc) · 898 Bytes
/
Copy pathMakefile
File metadata and controls
41 lines (28 loc) · 898 Bytes
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
PHANTOM_JS = ./node_modules/mocha-phantomjs/bin/mocha-phantomjs
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 $(PHANTOM_JS)
$(PHANTOM_JS) spec/runner.html
test-ember-next: jshint $(PHANTOM_JS)
$(PHANTOM_JS) spec/runner-next.html
$(BROCCOLI): npm_install
$(JSHINT): npm_install
$(PHANTOM_JS): 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