Skip to content

Commit 43f6c73

Browse files
authored
refactor: upgrade tegg deps (#120)
1 parent 93f1b74 commit 43f6c73

File tree

15 files changed

+61
-158
lines changed

15 files changed

+61
-158
lines changed

.autod.conf.js

Lines changed: 0 additions & 23 deletions
This file was deleted.

.eslintignore

Lines changed: 0 additions & 10 deletions
This file was deleted.

.eslintrc

Lines changed: 0 additions & 6 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: CI
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
7+
pull_request:
8+
branches: [ master ]
9+
10+
workflow_dispatch: {}
11+
12+
jobs:
13+
Job:
14+
name: Node.js
15+
uses: artusjs/github-actions/.github/workflows/node-test.yml@master
16+
with:
17+
os: 'ubuntu-latest'
18+
version: '14, 16, 18'

.travis.yml

Lines changed: 0 additions & 21 deletions
This file was deleted.

assets-with-roadhog/.autod.conf.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

assets-with-roadhog/package.json

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -16,17 +16,14 @@
1616
"react": "^16.2.0"
1717
},
1818
"devDependencies": {
19-
"autod": "^3.0.1",
20-
"autod-egg": "^1.0.0",
2119
"babel-plugin-dva-hmr": "^0.4.0",
2220
"babel-plugin-import": "^1.1.0",
2321
"egg-bin": "^4.3.7",
2422
"egg-mock": "^3.15.0",
2523
"eslint": "^4.18.2",
2624
"eslint-config-egg": "^7.0.0",
2725
"redbox-react": "^1.5.0",
28-
"roadhog": "^2.3.0",
29-
"webstorm-disable-index": "^1.2.0"
26+
"roadhog": "^2.3.0"
3027
},
3128
"engines": {
3229
"node": ">=8.9.0"
@@ -40,8 +37,7 @@
4037
"test": "egg-bin test",
4138
"cov": "egg-bin cov",
4239
"lint": "eslint .",
43-
"ci": "npm run lint && npm run cov",
44-
"autod": "autod"
40+
"ci": "npm run lint && npm run cov"
4541
},
4642
"ci": {
4743
"version": "8"

bin/autod.js

Lines changed: 0 additions & 20 deletions
This file was deleted.

hello-tegg/.eslintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
typings/

hello-tegg/.eslintrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
{
2+
"root": true,
23
"extends": "eslint-config-egg/typescript"
34
}

hello-tegg/.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,5 @@ config/**/*.js
1717
app/**/*.map
1818
test/**/*.map
1919
config/**/*.map
20+
*.d.ts
21+
*.tsbuildinfo

hello-tegg/app/controller/HelloController.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ import {
99
Inject,
1010
} from '@eggjs/tegg';
1111
import { EggLogger } from 'egg';
12-
import { traceMethod } from '../middleware/trace_method';
13-
import { HelloService } from '../biz/HelloService';
12+
import { traceMethod } from 'app/middleware/trace_method';
13+
import { HelloService } from 'app/biz/HelloService';
1414

1515
@HTTPController()
1616
@Middleware(traceMethod)

hello-tegg/package.json

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,42 @@
11
{
22
"name": "hello-tegg",
3-
"version": "1.0.0",
4-
"description": "",
5-
"main": "index.js",
3+
"private": true,
4+
"description": "tegg application example",
65
"scripts": {
76
"start": "egg-scripts start",
8-
"dev": "egg-bin dev -r egg-ts-helper/register",
9-
"debug": "egg-bin debug -r egg-ts-helper/register",
10-
"test-local": "egg-bin test -r egg-ts-helper/register",
7+
"stop": "egg-scripts stop",
8+
"dev": "ets && egg-bin dev",
9+
"debug": "ets && egg-bin debug",
10+
"test-local": "ets && egg-bin test",
1111
"test": "npm run lint -- --fix && npm run test-local",
12-
"cov": "egg-bin cov -r egg-ts-helper/register",
12+
"cov": "ets && egg-bin cov",
1313
"tsc": "tsc -p tsconfig.json",
1414
"ci": "npm run lint && npm run cov && npm run tsc",
15-
"autod": "autod",
1615
"lint": "eslint .",
1716
"clean": "tsc -b --clean"
1817
},
1918
"egg": {
2019
"typescript": true
2120
},
22-
"author": "",
23-
"license": "ISC",
21+
"license": "MIT",
2422
"dependencies": {
25-
"@eggjs/tegg": "^0.1.1",
26-
"@eggjs/tegg-config": "^0.1.0",
27-
"@eggjs/tegg-controller-plugin": "^0.1.1",
28-
"@eggjs/tegg-eventbus-plugin": "^0.1.1",
29-
"@eggjs/tegg-plugin": "^0.1.1",
30-
"egg": "^2.29.4"
23+
"@eggjs/tegg": "^1.6.4",
24+
"@eggjs/tegg-config": "^1.3.3",
25+
"@eggjs/tegg-controller-plugin": "^1.7.5",
26+
"@eggjs/tegg-eventbus-plugin": "^1.5.5",
27+
"@eggjs/tegg-plugin": "^1.5.5",
28+
"egg": "^3.9.1",
29+
"egg-scripts": "^2.17.0"
3130
},
3231
"devDependencies": {
33-
"@eggjs/tsconfig": "^1.0.0",
34-
"@types/mocha": "^8.2.3",
35-
"@types/node": "^16.4.0",
36-
"egg-bin": "^4.16.4",
37-
"egg-mock": "^3.26.0",
38-
"egg-ts-helper": "^1.25.9",
39-
"eslint": "^7.31.0",
40-
"eslint-config-egg": "^9.0.0",
41-
"typescript": "^4.3.5"
42-
}
32+
"@eggjs/tsconfig": "^1.2.0",
33+
"@types/mocha": "^10.0.1",
34+
"@types/node": "^16.18.10",
35+
"egg-bin": "^5.10.0",
36+
"egg-mock": "^5.4.0",
37+
"eslint": "^8.30.0",
38+
"eslint-config-egg": "^12.1.0",
39+
"typescript": "^4.9.4"
40+
},
41+
"repository": "[email protected]:eggjs/examples.git"
4342
}

hello-tegg/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
{
2-
"extends": "@eggjs/tsconfig"
2+
"extends": "@eggjs/tsconfig",
3+
"compilerOptions": {
4+
"baseUrl": "./"
5+
}
36
}

package.json

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,18 @@
77
"egg"
88
],
99
"devDependencies": {
10-
"autod": "^2.7.1",
11-
"autod-egg": "^1.0.0",
1210
"chalk": "^1.1.3",
13-
"eslint": "^5.6.1",
14-
"eslint-config-egg": "^7.1.0",
15-
"npminstall": "3",
16-
"semver": "^5.3.0",
1711
"common-bin": "^2.7.1",
18-
"globby": "^6.1.0"
12+
"globby": "^6.1.0",
13+
"npminstall": "^6.6.2",
14+
"runscript": "^1.5.3",
15+
"semver": "^5.3.0"
1916
},
2017
"scripts": {
21-
"lint": "eslint .",
18+
"lint": "echo 'ignore'",
2219
"test": "./example.js test",
2320
"test-cn": "./example.js test -c",
2421
"ci": "npm run lint && npm test",
25-
"autod": "./example.js autod",
2622
"list": "./example.js list"
2723
},
2824
"homepage": "https://github.com/eggjs/examples",
@@ -34,14 +30,7 @@
3430
"url": "https://github.com/eggjs/egg/issues"
3531
},
3632
"engines": {
37-
"node": ">= 8.0.0"
38-
},
39-
"ci": {
40-
"version": "8",
41-
"license": {
42-
"year": 2017
43-
},
44-
"afterScript": false
33+
"node": ">= 14.17.0"
4534
},
4635
"license": "MIT",
4736
"private": true

0 commit comments

Comments
 (0)