This repository was archived by the owner on Oct 24, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 5 files changed +56
-14
lines changed Expand file tree Collapse file tree 5 files changed +56
-14
lines changed Original file line number Diff line number Diff line change 1
1
node_modules
2
- coverage
3
- npm-debug.log
2
+ npm-debug.log
3
+ .nyc_output
Original file line number Diff line number Diff line change 1
1
language : node_js
2
2
node_js :
3
- - " 0.11"
4
- - " 0.10"
3
+ - " node"
4
+ - " iojs"
5
+ - " 4"
5
6
6
- after_script : NODE_ENV=test istanbul cover ./node_modules/mocha/bin/_mocha --report lcovonly -- -R spec && cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js && rm -rf ./coverage
7
+ install : make clean build
8
+ script : make test
9
+ after_success : make coverage
Original file line number Diff line number Diff line change
1
+ PATH := node_modules/.bin:$(PATH )
2
+ SHELL := /bin/bash
3
+
4
+ SRC = $(wildcard src/* .js)
5
+ LIB = $(SRC:src/%.js=lib/%.js )
6
+ TST = $(wildcard test/* .js) $(wildcard test/** /* .js)
7
+ NPM = @npm install --local > /dev/null && touch node_modules
8
+
9
+ v ?= patch
10
+
11
+ node_modules : package.json
12
+ $(NPM )
13
+ node_modules/% :
14
+ $(NPM )
15
+
16
+ test : node_modules
17
+ @mocha $(TST )
18
+
19
+ .nyc_output : node_modules
20
+ @nyc $(MAKE ) test
21
+
22
+ coverage : .nyc_output
23
+ @nyc report --reporter=text-lcov | coveralls
24
+
25
+ dev : node_modules
26
+ @nodemon -q -x " (clear; nyc $( MAKE) test && nyc report) || true"
27
+
28
+ release : clean node_modules test
29
+ @npm version $(v )
30
+ @npm publish
31
+ @git push --follow-tags
32
+
33
+ clean :
34
+ @rm -rf $$(cat .gitignore )
35
+
36
+ .PHONY : test coverage dev release clean
Original file line number Diff line number Diff line change 42
42
43
43
[ ![ Build Status] ( http://img.shields.io/travis/mstade/funkis.svg?style=flat-square )] ( https://travis-ci.org/mstade/funkis )
44
44
[ ![ Coverage Status] ( http://img.shields.io/coveralls/mstade/funkis.svg?style=flat-square )] ( https://coveralls.io/r/mstade/funkis?branch=master )
45
+
46
+ ---
47
+
48
+ [ LICENSE] ( LICENSE )
Original file line number Diff line number Diff line change 3
3
"version" : " 0.2.0" ,
4
4
"description" : " Functional programming in JavaScript." ,
5
5
"main" : " index.js" ,
6
- "scripts" : {
7
- "test" : " istanbul test ./node_modules/mocha/bin/_mocha --report html -- -R spec"
8
- },
9
- "author" : " Marcus Stade" ,
6
+ "author" :
" Marcus Stade <[email protected] > (http://madebystade.se)" ,
10
7
"license" : " MIT" ,
11
8
"devDependencies" : {
12
- "coveralls" : " ~ 2.8.0" ,
13
- "expect.js" : " ^ 0.3.1" ,
14
- "istanbul " : " ~0.2.4 " ,
15
- "mocha" : " ~ 1.17.1" ,
9
+ "coveralls" : " 2.8.0" ,
10
+ "expect.js" : " 0.3.1" ,
11
+ "gitbook-cli " : " 0.3.6 " ,
12
+ "mocha" : " 1.17.1" ,
16
13
"mocha-lcov-reporter" : " 0.0.1" ,
17
- "must" : " git://github.com/mstade/js-must#throw-error-instance"
14
+ "must" : " git://github.com/mstade/js-must#throw-error-instance" ,
15
+ "nodemon" : " 1.7.1" ,
16
+ "nyc" : " 3.2.2"
18
17
},
19
18
"repository" : {
20
19
"type" : " git" ,
You can’t perform that action at this time.
0 commit comments