Skip to content

Commit

Permalink
grunt を使わずに、シンプルに npm だけで動くようにする
Browse files Browse the repository at this point in the history
  • Loading branch information
twada committed Nov 21, 2014
1 parent 91c13d4 commit 14dd175
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 112 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
node_modules
npm-debug.log
node_modules
2 changes: 0 additions & 2 deletions .travis.yml
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
53 changes: 0 additions & 53 deletions Gruntfile.js

This file was deleted.

26 changes: 13 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,6 @@
$ git clone https://github.com/tddbc/javascript-mocha.git
```

* 次に、[Grunt](http://gruntjs.com/)をインストールしてください。

```sh
$ npm install -g grunt-cli
```

* 次に、依存関係をダウンロードしてください。

```sh
Expand All @@ -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
Expand Down
4 changes: 0 additions & 4 deletions espower_loader_helper.js

This file was deleted.

79 changes: 40 additions & 39 deletions package.json
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"
}
}

0 comments on commit 14dd175

Please sign in to comment.