Skip to content

Commit a7b9e2a

Browse files
committed
Converted from Makefile to npm scripts.
1 parent a7531fd commit a7b9e2a

File tree

5 files changed

+12
-25
lines changed

5 files changed

+12
-25
lines changed

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
coverage/
2+
3+
test/fixtures/

.npmignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ coverage/
22
test/
33

44
.bithoundrc
5+
.eslintignore
56
.eslintrc
67

78
.travis.yml

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,5 +7,6 @@ node_js:
77
before_install:
88
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
99
after_success:
10+
- npm run coverage
1011
- bash <(curl -s https://codecov.io/bash)
1112
sudo: false

Makefile

Lines changed: 0 additions & 24 deletions
This file was deleted.

package.json

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
"mocha": "^3.3.0"
2929
},
3030
"scripts": {
31-
"test": "make lint && make coverage"
31+
"test": "npm run lint && mocha test/specs/ && npm run test:flags && npm run test:markdown",
32+
"test:flags": "bin/doxdox 'lib/**/*.js' --description Description --title Title --package test/fixtures/ --ignore 'lib/**/*.js' | diff test/fixtures/flags.md -",
33+
"test:markdown": "bin/doxdox 'lib/**/*.js' -p package.json -l markdown | diff DOCUMENTATION.md -",
34+
"lint": "eslint .",
35+
"coverage": "istanbul cover _mocha test/specs/ && codecov",
36+
"fixtures": "bin/doxdox lib/doxdox.js --output test/fixtures/doxdox.md --package test/fixtures/",
37+
"docs": "bin/doxdox 'lib/**/*.js' -p package.json -l markdown -o DOCUMENTATION.md"
3238
},
3339
"keywords": [
3440
"documentation",

0 commit comments

Comments
 (0)