egg-boilerplate-empty
Advanced tools
Comparing version 2.1.0 to 2.2.0
@@ -5,3 +5,2 @@ { | ||
"description": "{{description}}", | ||
"private": true, | ||
"dependencies": { | ||
@@ -13,23 +12,20 @@ }, | ||
"egg-ci": "^1.5.0", | ||
"egg-mock": "^3.2.0", | ||
"eslint": "^3.18.0", | ||
"eslint-config-egg": "^3.2.0", | ||
"supertest": "^3.0.0", | ||
"webstorm-disable-index": "^1.1.2" | ||
}, | ||
"engines": { | ||
"node": ">=6.0.0" | ||
"node": ">=4.0.0" | ||
}, | ||
"scripts": { | ||
"start": "node index.js", | ||
"dev": "egg-bin dev", | ||
"autod": "autod", | ||
"lint": "eslint .", | ||
"test": "npm run lint -- --fix && npm run test-local", | ||
"test-local": "egg-bin test", | ||
"cov": "egg-bin cov", | ||
"lint": "eslint .", | ||
"ci": "npm run lint && npm run cov", | ||
"autod": "autod" | ||
"pkgfiles": "egg-bin pkgfiles" | ||
}, | ||
"ci": { | ||
"version": "6, 7" | ||
"version": "4, 6, 7" | ||
}, | ||
@@ -36,0 +32,0 @@ "repository": { |
@@ -8,3 +8,2 @@ 'use strict'; | ||
'test', | ||
'benchmark', | ||
], | ||
@@ -19,3 +18,2 @@ dep: [ | ||
'eslint-config-egg', | ||
'supertest', | ||
'webstorm-disable-index', | ||
@@ -25,4 +23,3 @@ ], | ||
'./test/fixtures', | ||
'./dist', | ||
], | ||
}; |
@@ -5,29 +5,26 @@ # {{name}} | ||
## QuickStart | ||
[![NPM version][npm-image]][npm-url] | ||
[![build status][travis-image]][travis-url] | ||
[![Test coverage][codecov-image]][codecov-url] | ||
[![David deps][david-image]][david-url] | ||
[![Known Vulnerabilities][snyk-image]][snyk-url] | ||
[![NPM download][download-image]][download-url] | ||
<!-- add docs here for user --> | ||
[npm-image]: https://img.shields.io/npm/v/{{name}}.svg?style=flat-square | ||
[npm-url]: https://npmjs.org/package/{{name}} | ||
[travis-image]: https://img.shields.io/travis/{{org}}/{{name}}.svg?style=flat-square | ||
[travis-url]: https://travis-ci.org/{{org}}/{{name}} | ||
[codecov-image]: https://codecov.io/gh/{{org}}/{{name}}/branch/master/graph/badge.svg | ||
[codecov-url]: https://codecov.io/gh/{{org}}/{{name}} | ||
[david-image]: https://img.shields.io/david/{{org}}/{{name}}.svg?style=flat-square | ||
[david-url]: https://david-dm.org/{{org}}/{{name}} | ||
[snyk-image]: https://snyk.io/test/npm/{{name}}/badge.svg?style=flat-square | ||
[snyk-url]: https://snyk.io/test/npm/{{name}} | ||
[download-image]: https://img.shields.io/npm/dm/{{name}}.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/{{name}} | ||
see [egg docs][egg] for more detail. | ||
## Usage | ||
### Development | ||
```bash | ||
$ npm install | ||
$ npm run dev | ||
npm i {{name}} --save | ||
``` | ||
### Unit Test | ||
- [mocha], [thunk-mocha], [power-assert], [istanbul] is build-in to [egg-bin], so you can just use it. | ||
- [power-assert] is very powerful. | ||
- see [egg unit test docs](https://eggjs.org/core/unittest) for more detail. | ||
### npm scripts | ||
- Use `npm run lint` to check code style. | ||
- Use `npm test` to run unit test. | ||
- Use `npm run autod` to auto detect dependencies upgrade, see [autod](https://www.npmjs.com/package/autod) for more detail. | ||
[mocha]: http://mochajs.org | ||
[thunk-mocha]: https://npmjs.com/thunk-mocha | ||
[power-assert]: https://github.com/power-assert-js/power-assert | ||
[istanbul]: https://github.com/gotwarlost/istanbul | ||
[egg-bin]: https://github.com/eggjs/egg-bin |
'use strict'; | ||
const assert = require('assert'); | ||
const mock = require('egg-mock'); | ||
describe('test/index.test.js', () => { | ||
let app; | ||
before(() => { | ||
app = require('../index'); | ||
}); | ||
afterEach(mock.restore); | ||
it('should work', () => { | ||
assert(app === 'hi, developer'); | ||
}); | ||
it('should work', () => {}); | ||
}); |
2.2.0 / 2017-03-25 | ||
================== | ||
* feat: improve for normal module (#8) | ||
2.1.0 / 2017-03-21 | ||
@@ -3,0 +8,0 @@ ================== |
{ | ||
"name": "egg-boilerplate-empty", | ||
"version": "2.1.0", | ||
"version": "2.2.0", | ||
"description": "only init basic stuff, such as eslint / test / ci ... ", | ||
@@ -5,0 +5,0 @@ "scripts": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
9014
20
39