Skip to content

Commit

Permalink
Update ddry and mocha version, add binary
Browse files Browse the repository at this point in the history
  • Loading branch information
vassiliy committed May 15, 2017
1 parent 9b309df commit b525695
Show file tree
Hide file tree
Showing 15 changed files with 70 additions and 38 deletions.
6 changes: 3 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,13 @@ coveralls:
mocha:
./node_modules/.bin/mocha \
--no-exit \
spec/main.js \
./node_modules/ddry/ddry.js \
--check-leaks

tap:
node_modules/.bin/tap spec/main.js
node_modules/.bin/tap ./node_modules/ddry/ddry.js

tape:
tape spec/main.js | node_modules/.bin/tap-spec
tape ./node_modules/ddry/ddry.js | node_modules/.bin/tap-spec

test: tape tap
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

Optional dependency wrapper mounting Mocha JS as **ddry** test harness.

Includes [ddry](https://www.npmjs.com/package/ddry) v0.0.15 and [Mocha](https://www.npmjs.com/package/mocha) v3.2.0.
Includes [ddry](https://www.npmjs.com/package/ddry) v0.1.19 and [Mocha](https://www.npmjs.com/package/mocha) v3.4.1.

Version reflects Mocha version, so your `package.json` remains clean yet informative, and **ddry** core remains accessible via

Expand Down
7 changes: 7 additions & 0 deletions bin/ddry-mocha
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash
set -e
if [ "$NPM_ROOT" = "" ]; then \
export NPM_ROOT=node_modules; \
fi
. $NPM_ROOT/.bin/ddry "$@"
$NPM_ROOT/.bin/mocha $DDRY_CLI
8 changes: 8 additions & 0 deletions ddry.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"spec": "spec",
"title": "ddry and Mocha dependencies presence",
"code": "usecase",
"moduleTitles": {
"dependencies": "ddry-mocha dependencies"
}
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,20 @@
},
"files": [
"LICENSE",
"README.md"
"README.md",
"bin/"
],
"bin": "bin/ddry-mocha",
"keywords": [
"mocha"
],
"author": "Vassiliy Pimkin <vassiliy.pimkin@gmail.com>",
"license": "MIT",
"dependencies": {
"ddry": "0.0.15",
"mocha": "^3.2.0"
"ddry": "0.1.19",
"mocha": "^3.4.1"
},
"devDependencies": {
"ddry-mocha-tape": "0.0.15"
"ddry-mocha-tape": "0.1.19"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
11 changes: 0 additions & 11 deletions source/spec/main.coffee

This file was deleted.

4 changes: 4 additions & 0 deletions source/usecase/dependencies.coffee
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
###
# ddry-mocha dependencies
###

'use strict'

module.exports =
Expand Down
12 changes: 12 additions & 0 deletions spec/dependencies/ddry.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions spec/dependencies/format.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions spec/dependencies/mocha.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 0 additions & 19 deletions spec/main.js

This file was deleted.

5 changes: 5 additions & 0 deletions usecase/dependencies.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b525695

Please sign in to comment.