Skip to content

Commit

Permalink
tweak projects
Browse files Browse the repository at this point in the history
  • Loading branch information
xudafeng committed Aug 11, 2017
1 parent 4ec4aa8 commit 0fd07e0
Show file tree
Hide file tree
Showing 8 changed files with 43 additions and 82 deletions.
2 changes: 1 addition & 1 deletion .jshintignore
Expand Up @@ -3,4 +3,4 @@ node_modules/
coverage/
build/
assets/
dist/
dist/
8 changes: 5 additions & 3 deletions .travis.yml
@@ -1,6 +1,8 @@
language: node_js
sudo: false
node_js:
- "4.1.2"
script: make travis
after_script: "npm install coveralls@2 && cat ./coverage/lcov.info | coveralls"
- 7
script:
- make travis
after_script:
- npm install coveralls@2 && cat ./coverage/lcov.info | coveralls
34 changes: 18 additions & 16 deletions LICENSE
@@ -1,20 +1,22 @@
The MIT License (MIT)
MIT LICENSE

Copyright (c) 2015 xdf
Copyright (c) 2017 Alibaba Group Holding Limited and other contributors.

Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in
the Software without restriction, including without limitation the rights to
use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of
the Software, and to permit persons to whom the Software is furnished to do so,
subject to the following conditions:
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS
FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR
COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
17 changes: 7 additions & 10 deletions README.md
Expand Up @@ -8,10 +8,10 @@

[npm-image]: https://img.shields.io/npm/v/command-line-test.svg?style=flat-square
[npm-url]: https://npmjs.org/package/command-line-test
[travis-image]: https://img.shields.io/travis/xudafeng/command-line-test.svg?style=flat-square
[travis-url]: https://travis-ci.org/xudafeng/command-line-test
[coveralls-image]: https://img.shields.io/coveralls/xudafeng/command-line-test.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/xudafeng/command-line-test?branch=master
[travis-image]: https://img.shields.io/travis/macacajs/command-line-test.svg?style=flat-square
[travis-url]: https://travis-ci.org/macacajs/command-line-test
[coveralls-image]: https://img.shields.io/coveralls/macacajs/command-line-test.svg?style=flat-square
[coveralls-url]: https://coveralls.io/r/macacajs/command-line-test?branch=master
[node-image]: https://img.shields.io/badge/node.js-%3E=_4-green.svg?style=flat-square
[node-url]: http://nodejs.org/download/
[download-image]: https://img.shields.io/npm/dm/command-line-test.svg?style=flat-square
Expand All @@ -21,15 +21,15 @@
## Installment

```shell
``` bash
$ npm i command-line-test --save-dev
```

## Usage

`fork`, `spawn`, `exec`, `execFile` supported.

```javascript
``` javascript
const CliTest = require('command-line-test');

describe('test', function() {
Expand Down Expand Up @@ -76,13 +76,10 @@ describe('test', function() {

- [macacajs/macaca-cli](//github.com/macacajs/macaca-cli/)
- [macacajs/app-inspector](//github.com/macacajs/app-inspector/)
- [xudafeng/startserver](//github.com/xudafeng/startserver/)
- [xudafeng/detect-port](//github.com/xudafeng/detect-port/)
- [macacajs/detect-port](//github.com/node-modules/detect-port/)
- [reliablejs/reliable-master](//github.com/reliablejs/reliable-master/)
- [reliablejs/reliable-macaca-slave](//github.com/reliablejs/reliable-macaca-slave)

## License

The MIT License (MIT)

Copyright (c) 2015 xdf
13 changes: 0 additions & 13 deletions index.js
@@ -1,16 +1,3 @@
/* ================================================================
* command-line-test by xdf(xudafeng[at]126.com)
*
* first created at : Sun Sep 25 2016 21:13:42 GMT+0800 (CST)
*
* ================================================================
* Copyright xdf
*
* Licensed under the MIT License
* You may not use this file except in compliance with the License.
*
* ================================================================ */

'use strict';

module.exports = require('./lib/command-line-test');
13 changes: 0 additions & 13 deletions lib/command-line-test.js
@@ -1,16 +1,3 @@
/* ================================================================
* command-line-test by xdf(xudafeng[at]126.com)
*
* first created at : Sun Sep 25 2016 21:13:42 GMT+0800 (CST)
*
* ================================================================
* Copyright xdf
*
* Licensed under the MIT License
* You may not use this file except in compliance with the License.
*
* ================================================================ */

'use strict';

const childProcess = require('child_process');
Expand Down
25 changes: 12 additions & 13 deletions package.json
@@ -1,22 +1,24 @@
{
"name": "command-line-test",
"version": "1.0.9",
"version": "1.0.10",
"description": "command-line test tool for Node.js",
"keywords": ["test", "unittest"],
"keywords": [
"test",
"unittest"
],
"main": "index.js",
"repository": {
"type": "git",
"url": "git://github.com/xudafeng/command-line-test.git"
},
"dependencies": {
"url": "git://github.com/macacajs/command-line-test.git"
},
"dependencies": {},
"devDependencies": {
"co-mocha": "*",
"mocha": "*",
"should": "*",
"istanbul": "^0.4.5",
"jshint": "*",
"istanbul": "*",
"pre-commit": "1.1.1"
"mocha": "*",
"pre-commit": "*",
"should": "*"
},
"scripts": {
"test": "make test",
Expand All @@ -25,9 +27,6 @@
"pre-commit": [
"jshint"
],
"homepage": "https://github.com/xudafeng/command-line-test",
"author": "xudafeng",
"email": "xudafeng@126.com",
"blog": "http://xdf.me",
"homepage": "https://github.com/macacajs/command-line-test",
"license": "MIT"
}
13 changes: 0 additions & 13 deletions test/command-line-test.test.js
@@ -1,16 +1,3 @@
/* ================================================================
* command-line-test by xdf(xudafeng[at]126.com)
*
* first created at : Sun Sep 25 2016 21:13:42 GMT+0800 (CST)
*
* ================================================================
* Copyright xdf
*
* Licensed under the MIT License
* You may not use this file except in compliance with the License.
*
* ================================================================ */

'use strict';

var CliTest = require('..');
Expand Down

0 comments on commit 0fd07e0

Please sign in to comment.