Skip to content

Commit

Permalink
Converted from Makefile to npm scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
neogeek committed May 19, 2017
1 parent a7531fd commit a7b9e2a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 25 deletions.
3 changes: 3 additions & 0 deletions .eslintignore
@@ -0,0 +1,3 @@
coverage/

test/fixtures/
1 change: 1 addition & 0 deletions .npmignore
Expand Up @@ -2,6 +2,7 @@ coverage/
test/

.bithoundrc
.eslintignore
.eslintrc

.travis.yml
Expand Down
1 change: 1 addition & 0 deletions .travis.yml
Expand Up @@ -7,5 +7,6 @@ node_js:
before_install:
- if [[ `npm -v` != 3* ]]; then npm i -g npm@3; fi
after_success:
- npm run coverage
- bash <(curl -s https://codecov.io/bash)
sudo: false
24 changes: 0 additions & 24 deletions Makefile

This file was deleted.

8 changes: 7 additions & 1 deletion package.json
Expand Up @@ -28,7 +28,13 @@
"mocha": "^3.3.0"
},
"scripts": {
"test": "make lint && make coverage"
"test": "npm run lint && mocha test/specs/ && npm run test:flags && npm run test:markdown",
"test:flags": "bin/doxdox 'lib/**/*.js' --description Description --title Title --package test/fixtures/ --ignore 'lib/**/*.js' | diff test/fixtures/flags.md -",
"test:markdown": "bin/doxdox 'lib/**/*.js' -p package.json -l markdown | diff DOCUMENTATION.md -",
"lint": "eslint .",
"coverage": "istanbul cover _mocha test/specs/ && codecov",
"fixtures": "bin/doxdox lib/doxdox.js --output test/fixtures/doxdox.md --package test/fixtures/",
"docs": "bin/doxdox 'lib/**/*.js' -p package.json -l markdown -o DOCUMENTATION.md"
},
"keywords": [
"documentation",
Expand Down

0 comments on commit a7b9e2a

Please sign in to comment.