-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
55 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
node_modules | ||
npm-debug.log | ||
node_modules |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
language: node_js | ||
node_js: | ||
- '0.10' | ||
before_script: | ||
- npm install -g grunt-cli |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,12 +16,6 @@ | |
$ git clone https://github.com/tddbc/javascript-mocha.git | ||
``` | ||
|
||
* 次に、[Grunt](http://gruntjs.com/)をインストールしてください。 | ||
|
||
```sh | ||
$ npm install -g grunt-cli | ||
``` | ||
|
||
* 次に、依存関係をダウンロードしてください。 | ||
|
||
```sh | ||
|
@@ -31,21 +25,27 @@ $ npm install | |
* 最後に、下記の様に表示されるか、確認してください。 | ||
|
||
```sh | ||
$ grunt test | ||
Running "mochacli:all" (mochacli) task | ||
$ npm test | ||
|
||
> [email protected] test /path/to/projects/javascript-mocha | ||
> npm run lint && mocha --require intelli-espower-loader | ||
|
||
|
||
> [email protected] lint /path/to/projects/javascript-mocha | ||
> jshint lib test | ||
|
||
|
||
|
||
Sample | ||
.status | ||
✓ は、trueであるべき | ||
✓ は、trueであるべき | ||
#say() | ||
✓ は、'Hello TDDBC!'が返ってくるべき | ||
|
||
✓ は、'Hello TDDBC!'が返ってくるべき | ||
|
||
2 passing (8ms) | ||
|
||
2 passing (5ms) | ||
|
||
Done, without errors. | ||
$ | ||
``` | ||
|
||
## License | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,42 @@ | ||
{ | ||
"name": "javascript-mocha", | ||
"description": "skeleton for Node.js users.", | ||
"version": "0.1.0", | ||
"homepage": "https://github.com/tddbc/javascript-mocha", | ||
"author": { | ||
"name": "TDD BaseCamp and other contributors" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/tddbc/javascript-mocha.git" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tddbc/javascript-mocha/issues" | ||
}, | ||
"licenses": [ | ||
{ | ||
"type": "MIT", | ||
"url": "https://github.com/tddbc/javascript-mocha/blob/master/LICENSE-MIT" | ||
} | ||
], | ||
"main": "lib/sample.js", | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"scripts": { | ||
"test": "grunt test" | ||
}, | ||
"devDependencies": { | ||
"grunt": "~0.4.2", | ||
"grunt-contrib-jshint": "~0.10.0", | ||
"grunt-contrib-watch": "~0.6.1", | ||
"grunt-contrib-clean": "~0.5.0", | ||
"grunt-mocha-cli": "~1.8.0", | ||
"power-assert": "~0.7.2", | ||
"espower-loader": "~0.7.0" | ||
}, | ||
"keywords": [ | ||
"TDDBC" | ||
] | ||
"name": "javascript-mocha", | ||
"description": "skeleton for Node.js users.", | ||
"version": "0.1.0", | ||
"author": { | ||
"name": "TDD BaseCamp and other contributors" | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/tddbc/javascript-mocha/issues" | ||
}, | ||
"devDependencies": { | ||
"espower-loader": "^0.10.0", | ||
"intelli-espower-loader": "^0.5.0", | ||
"jshint": "^2.5.10", | ||
"mocha": "^2.0.1", | ||
"power-assert": "^0.10.0" | ||
}, | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"engines": { | ||
"node": ">= 0.10.0" | ||
}, | ||
"homepage": "https://github.com/tddbc/javascript-mocha", | ||
"keywords": [ | ||
"TDDBC" | ||
], | ||
"license": { | ||
"type": "MIT", | ||
"url": "https://github.com/tddbc/javascript-mocha/blob/master/LICENSE-MIT" | ||
}, | ||
"main": "lib/sample.js", | ||
"repository": { | ||
"type": "git", | ||
"url": "git://github.com/tddbc/javascript-mocha.git" | ||
}, | ||
"scripts": { | ||
"lint": "jshint lib test", | ||
"test": "npm run lint && mocha --require intelli-espower-loader", | ||
"watch": "mocha --require intelli-espower-loader --watch" | ||
} | ||
} |