Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 37 lines (23 sloc) 0.603 kb
2fea568a »
2012-03-13 first commit
1
2 #---- Tools
3
4 TAP := ./node_modules/.bin/tap
5
6
7 #---- Files
8
9 JSSTYLE_FILES := $(shell find lib test tools -name *.js)
10
11
12
13 #---- Targets
14
15 .PHONY: all
16 all:
17
18 .PHONY: cutarelease
19 cutarelease:
20 [[ ! -d tmp ]] # No 'tmp/' allowed: https://github.com/isaacs/npm/issues/2144
21 ./tools/cutarelease.py -p ansidiff -f package.json
22
23 .PHONY: test
24 test: $(TAP)
25 TAP=1 $(TAP) test/*.test.js
26
27 .PHONY: check-jsstyle
28 check-jsstyle: $(JSSTYLE_FILES)
29 ./tools/jsstyle -f ./tools/jsstyle.conf $(JSSTYLE_FILES)
30
31 .PHONY: check
32 check: check-jsstyle
33 @echo "Check ok."
34
35 .PHONY: prepush
36 prepush: check test
37 @echo "Okay to push."
Something went wrong with that request. Please try again.