Skip to content

Commit

Permalink
feat: use async function (eggjs#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
popomore authored Nov 8, 2017
1 parent 8847fc2 commit 435005f
Show file tree
Hide file tree
Showing 175 changed files with 1,495 additions and 2,575 deletions.
14 changes: 5 additions & 9 deletions hackernews-async/.autod.conf.js → .autod.conf.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,17 @@ module.exports = {
plugin: 'autod-egg',
prefix: '^',
devprefix: '^',
registry: 'https://r.cnpmjs.org',
exclude: [
'test/fixtures',
],
dep: [
'egg',
'examples',
'docs',
'run',
],
devdep: [
'autod',
'autod-egg',
'eslint',
'eslint-config-egg',
'egg-bin',
],
keep: [
dep: [
'egg',
],
semver: [
],
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ run
*.log.*
cnode-api-async/*.yml
public
!static/app/public
8 changes: 3 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,20 @@ $ npm run dev

## List of examples

- [cnode-api-async](https://github.com/eggjs/examples/tree/master/cnode-api-async)
- [cnode-api](https://github.com/eggjs/examples/tree/master/cnode-api)
- [cookie-session](https://github.com/eggjs/examples/tree/master/cookie-session)
- [cookie](https://github.com/eggjs/examples/tree/master/cookie)
- [cookie-session](https://github.com/eggjs/examples/tree/master/cookie-session)
- [custom-env](https://github.com/eggjs/examples/tree/master/custom-env)
- [download](https://github.com/eggjs/examples/tree/master/download)
- [framework](https://github.com/eggjs/examples/tree/master/framework)
- [hackernews-async-ts](https://github.com/eggjs/examples/tree/master/hackernews-async-ts)
- [hackernews-async](https://github.com/eggjs/examples/tree/master/hackernews-async)
- [hackernews](https://github.com/eggjs/examples/tree/master/hackernews)
- [hackernews-async](https://github.com/eggjs/examples/tree/master/hackernews-async)
- [hackernews-async-ts](https://github.com/eggjs/examples/tree/master/hackernews-async-ts)
- [helloworld](https://github.com/eggjs/examples/tree/master/helloworld)
- [httpclient](https://github.com/eggjs/examples/tree/master/httpclient)
- [ipc](https://github.com/eggjs/examples/tree/master/ipc)
- [middleware](https://github.com/eggjs/examples/tree/master/middleware)
- [multipart](https://github.com/eggjs/examples/tree/master/multipart)
- [node_modules](https://github.com/eggjs/examples/tree/master/node_modules)
- [passport](https://github.com/eggjs/examples/tree/master/passport)
- [progressive](https://github.com/eggjs/examples/tree/master/progressive)
- [redefine-controller](https://github.com/eggjs/examples/tree/master/redefine-controller)
Expand Down
26 changes: 0 additions & 26 deletions cnode-api-async/.autod.conf.js

This file was deleted.

2 changes: 0 additions & 2 deletions cnode-api-async/.eslintignore

This file was deleted.

15 changes: 0 additions & 15 deletions cnode-api-async/.eslintrc

This file was deleted.

9 changes: 0 additions & 9 deletions cnode-api-async/.gitignore

This file was deleted.

34 changes: 1 addition & 33 deletions cnode-api-async/README.md
Original file line number Diff line number Diff line change
@@ -1,33 +1 @@
# cnode-api-async



## QuickStart

<!-- add docs here for user -->

see [egg docs][egg] for more detail.

### Development
```shell
$ npm install
$ npm run dev
$ open http://localhost:7001/news
```

### Deploy

Use `EGG_SERVER_ENV=prod` to enable prod mode

```shell
$ EGG_SERVER_ENV=prod npm start
```

### 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.


[egg]: https://eggjs.org
See [cnode-api](https://github.com/eggjs/examples/tree/master/cnode-api)
7 changes: 0 additions & 7 deletions cnode-api-async/app.js

This file was deleted.

65 changes: 0 additions & 65 deletions cnode-api-async/app/controller/topics.js

This file was deleted.

23 changes: 0 additions & 23 deletions cnode-api-async/app/middleware/error_handler.js

This file was deleted.

5 changes: 0 additions & 5 deletions cnode-api-async/app/router.js

This file was deleted.

73 changes: 0 additions & 73 deletions cnode-api-async/app/service/topics.js

This file was deleted.

12 changes: 0 additions & 12 deletions cnode-api-async/config/config.default.js

This file was deleted.

6 changes: 0 additions & 6 deletions cnode-api-async/config/plugin.js

This file was deleted.

8 changes: 0 additions & 8 deletions cnode-api-async/index.js

This file was deleted.

42 changes: 0 additions & 42 deletions cnode-api-async/package.json

This file was deleted.

Loading

0 comments on commit 435005f

Please sign in to comment.