Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style(custom-env): update to 2.x #53

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cnode-api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@
"description": "",
"private": true,
"dependencies": {
"egg": "^1.10.1",
"egg": "^2.2.0",
"egg-validate": "^1.0.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"engines": {
"node": ">=8.9.0"
Expand Down
6 changes: 3 additions & 3 deletions cookie-session/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "cookie-session-example",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
6 changes: 3 additions & 3 deletions cookie/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "cookie-example",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
2 changes: 1 addition & 1 deletion custom-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Egg will load different config file in different env, in this example we create `config.default.js`, `config.sit.js` and `config.prod.js`.

Egg will load `config.sit.js` when lanched by `EGG_SERVER_ENV=sit npm run dev`. You can get see the response
Egg will load `config.sit.js` when launched by `EGG_SERVER_ENV=sit npm run dev`. You can get see the response

```bash
$ curl http://127.0.0.1:7001
Expand Down
3 changes: 2 additions & 1 deletion custom-env/app/router.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
'use strict';

module.exports = app => {
app.router.get('/', app.controller.home.getEnv);
const { router, controller } = app;
router.get('/', controller.home.getEnv);
};
6 changes: 3 additions & 3 deletions custom-env/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "custom environment",
"private": true,
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"engines": {
"node": ">=8.9.0"
Expand Down
6 changes: 3 additions & 3 deletions download/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "download",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1",
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0",
"supertest": "^3.0.0"
},
"scripts": {
Expand Down
7 changes: 4 additions & 3 deletions framework/app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,12 @@
"name": "framework-example",
"version": "1.0.0",
"dependencies": {
"yadan": "../yadan"
"egg": "^2.2.0",
"yadan": "^2.0.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
6 changes: 3 additions & 3 deletions framework/yadan/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@
"name": "yadan",
"version": "1.0.0",
"dependencies": {
"egg": "^1.10.1",
"egg": "^2.2.0",
"egg-view-nunjucks": "^2.1.4"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"engines": {
"node": ">=8.9.0"
Expand Down
7 changes: 1 addition & 6 deletions hackernews-async-ts/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,7 @@
"description": "hackernews showcase using async/await for egg",
"private": true,
"dependencies": {
"egg": "^2.0.0",
"egg-view-nunjucks": "^2.1.4",
"moment": "^2.19.4",
"source-map-support": "^0.5.0",
"tslib": "^1.8.1",
"typescript": "^2.6.2"
"egg": "^2.2.0"
},
"devDependencies": {
"@types/cheerio": "^0.22.1",
Expand Down
8 changes: 4 additions & 4 deletions hackernews/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
"description": "hackernews showcase using async/await for egg",
"private": true,
"dependencies": {
"egg": "^2.0.0",
"egg": "^2.2.0",
"egg-view-nunjucks": "^2.1.4",
"moment": "^2.19.2"
"moment": "^2.20.1"
},
"devDependencies": {
"autod": "^3.0.1",
"autod-egg": "^1.0.0",
"cheerio": "^1.0.0-rc.2",
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1",
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0",
"eslint": "^4.12.0",
"eslint-config-egg": "^5.1.1"
},
Expand Down
6 changes: 3 additions & 3 deletions helloworld/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "helloworld",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
4 changes: 2 additions & 2 deletions httpclient/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "httpclient-example",
"dependencies": {
"egg": "^1.10.1",
"egg": "^2.2.0",
"formstream": "^1.1.0"
},
"devDependencies": {
"egg-bin": "^4.3.5"
"egg-bin": "^4.3.7"
},
"scripts": {
"start": "egg-bin dev",
Expand Down
4 changes: 2 additions & 2 deletions ipc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
"description": "egg ipc example",
"private": true,
"dependencies": {
"egg": "^1.10.1",
"egg": "^2.2.0",
"mz-modules": "^2.0.0"
},
"devDependencies": {
"egg-bin": "^4.3.5"
"egg-bin": "^4.3.7"
},
"engines": {
"node": ">=8.9.0"
Expand Down
6 changes: 3 additions & 3 deletions middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "middleware-example",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
6 changes: 3 additions & 3 deletions multipart/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@
"name": "multipart-example",
"dependencies": {
"await-stream-ready": "^1.0.1",
"egg": "^1.10.1",
"egg": "^2.2.0",
"egg-view-nunjucks": "^2.1.4",
"mz": "^2.7.0",
"stream-to-array": "^2.3.0",
"stream-wormhole": "^1.0.3"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1",
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0",
"mz-modules": "^2.0.0"
},
"scripts": {
Expand Down
6 changes: 3 additions & 3 deletions passport/package.json
Original file line number Diff line number Diff line change
@@ -1,15 +1,15 @@
{
"name": "passport",
"dependencies": {
"egg": "^1.10.1",
"egg-passport": "^1.0.0",
"egg": "^2.2.0",
"egg-passport": "^2.0.1",
"egg-passport-bitbucket": "^1.0.0",
"egg-passport-github": "^1.0.0",
"egg-passport-twitter": "^1.0.0",
"egg-passport-weibo": "^1.0.0"
},
"devDependencies": {
"egg-bin": "^4.3.5"
"egg-bin": "^4.3.7"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
6 changes: 3 additions & 3 deletions progressive/step1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"egg": "^2.0.0"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
6 changes: 3 additions & 3 deletions progressive/step2/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,11 @@
"version": "1.0.0",
"private": true,
"dependencies": {
"egg": "^2.0.0"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
7 changes: 5 additions & 2 deletions progressive/step3/egg-ua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
},
"devDependencies": {
"egg": "^2.0.0",
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
"test": "egg-bin test",
"cov": "egg-bin cov"
},
"dependencies": {
"egg": "^2.2.0"
}
}
7 changes: 5 additions & 2 deletions progressive/step4/egg-ua/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,15 @@
},
"devDependencies": {
"egg": "^1.0.0",
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
"test": "egg-bin test",
"cov": "egg-bin cov"
},
"dependencies": {
"egg": "^2.2.0"
}
}
6 changes: 3 additions & 3 deletions redefine-controller/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "redefine-controller",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"test": "egg-bin test",
Expand Down
6 changes: 3 additions & 3 deletions schedule/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "schedule-example",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
11 changes: 5 additions & 6 deletions sequelize-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
"description": "The egg example project that uses egg-sequelize plugin.",
"private": true,
"dependencies": {
"egg": "^1.4.0",
"egg-sequelize": "^3.0.1",
"pg": "^6.2.4",
"pg-hstore": "^2.3.2"
"co": "^4.6.0",
"egg": "^2.2.0",
"egg-sequelize": "^3.1.0"
},
"devDependencies": {
"egg-bin": "^3.4.2",
"egg-mock": "^3.7.2",
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0",
"lodash": "^4.17.4"
},
"engines": {
Expand Down
6 changes: 3 additions & 3 deletions static/package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "static-example",
"dependencies": {
"egg": "^1.10.1"
"egg": "^2.2.0"
},
"devDependencies": {
"egg-bin": "^4.3.5",
"egg-mock": "^3.13.1"
"egg-bin": "^4.3.7",
"egg-mock": "^3.14.0"
},
"scripts": {
"dev": "egg-bin dev",
Expand Down
Loading