egg-boilerplate-simple
Advanced tools
Comparing version 1.2.2 to 1.2.3
'use strict'; | ||
module.exports = app => ( | ||
module.exports = app => { | ||
/** | ||
@@ -68,2 +68,4 @@ * HackerNews Api Service | ||
} | ||
); | ||
return HackerNews; | ||
}; |
@@ -29,6 +29,6 @@ { | ||
"dev": "egg-bin dev", | ||
"test": "npm run lint && npm run test-local", | ||
"test": "npm run lint -- --fix && npm run test-local", | ||
"test-local": "egg-bin test -r intelli-espower-loader", | ||
"cov": "egg-bin cov -r intelli-espower-loader", | ||
"lint": "eslint --ext js . --fix", | ||
"lint": "eslint .", | ||
"ci": "npm run lint && npm run cov", | ||
@@ -35,0 +35,0 @@ "autod": "autod" |
@@ -29,5 +29,5 @@ 'use strict'; | ||
.get('/news/item/1') | ||
.expect('news detail #1') | ||
.expect(/\/news\/item\/1/) // just a example, use regex to test part of dom string, but should be strong characteristic | ||
.expect(200); | ||
}); | ||
}); |
1.2.3 / 2016-09-27 | ||
================== | ||
* style: arrow-body-style (#13) | ||
* feat: don't fix eslint at ci (#12) | ||
* test: fix not pass test case (#11) | ||
* feat: add installation (#10) | ||
1.2.2 / 2016-09-02 | ||
@@ -3,0 +11,0 @@ ================== |
{ | ||
"name": "egg-boilerplate-simple", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"description": "boilerplate for egg quickstart", | ||
@@ -8,3 +8,3 @@ "scripts": { | ||
"ci": "npm run test", | ||
"test": "npm run lint", | ||
"test": "npm run lint -- --fix", | ||
"lint": "eslint bin lib test index.js boilerplate" | ||
@@ -11,0 +11,0 @@ }, |
# egg-boilerplate-simple | ||
Boilerplate for egg quickstart. See [egg-init](https://github.com/eggjs/egg-init). | ||
Boilerplate for egg quickstart. | ||
@@ -23,2 +23,17 @@ [![NPM version][npm-image]][npm-url] | ||
[download-image]: https://img.shields.io/npm/dm/egg-boilerplate-simple.svg?style=flat-square | ||
[download-url]: https://npmjs.org/package/egg-boilerplate-simple | ||
[download-url]: https://npmjs.org/package/egg-boilerplate-simple | ||
## Installation | ||
**Don't `npm install` this directly** | ||
```shell | ||
$ npm install -g egg-init | ||
$ egg-init --type simple showcase | ||
$ cd showcase | ||
$ npm install | ||
$ npm run dev | ||
$ open http://localhost:7001 | ||
``` | ||
See [egg-init](https://github.com/eggjs/egg-init) for more detail. |
22805
476
39