create-egg 4.1.0-beta.33 → 4.1.0-beta.34
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/templates/tegg/README.md +2 -4
- package/dist/templates/tegg/config/config.local.ts +3 -3
- package/dist/templates/tegg/config/config.prod.ts +3 -3
- package/dist/templates/tegg/config/config.unittest.ts +3 -3
- package/dist/templates/tegg/config/plugin.ts +4 -8
- package/dist/templates/tegg/package.json +3 -5
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# tegg app
|
|
2
2
|
|
|
3
|
-
[Hacker News](https://news.ycombinator.com/) showcase using [tegg](https://
|
|
3
|
+
[Hacker News](https://news.ycombinator.com/) showcase using [tegg HTTPController](https://eggjs.org/basics/controller)
|
|
4
4
|
|
|
5
5
|
## QuickStart
|
|
6
6
|
|
|
@@ -12,12 +12,10 @@ npm run dev
|
|
|
12
12
|
open http://localhost:7001/
|
|
13
13
|
```
|
|
14
14
|
|
|
15
|
-
Don't tsc compile at development mode, if you had run `tsc` then you need to `npm run clean` before `npm run dev`.
|
|
16
|
-
|
|
17
15
|
### Deploy
|
|
18
16
|
|
|
19
17
|
```bash
|
|
20
|
-
npm run
|
|
18
|
+
npm run build
|
|
21
19
|
npm start
|
|
22
20
|
```
|
|
23
21
|
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import
|
|
1
|
+
import tracerPlugin from '@eggjs/tracer';
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
tracer
|
|
5
|
-
|
|
6
|
-
package: '@eggjs/tracer',
|
|
7
|
-
},
|
|
3
|
+
export default {
|
|
4
|
+
// enable tracer plugin
|
|
5
|
+
...tracerPlugin(),
|
|
8
6
|
};
|
|
9
|
-
|
|
10
|
-
export default plugin;
|
|
@@ -3,12 +3,10 @@
|
|
|
3
3
|
"description": "Hello Egg.js",
|
|
4
4
|
"private": true,
|
|
5
5
|
"type": "module",
|
|
6
|
-
"egg": {
|
|
7
|
-
"typescript": true
|
|
8
|
-
},
|
|
9
6
|
"scripts": {
|
|
10
7
|
"start": "eggctl start --daemon --title=egg-server-{{name}}",
|
|
11
8
|
"stop": "eggctl stop --title=egg-server-{{name}}",
|
|
9
|
+
"predev": "npm run clean",
|
|
12
10
|
"dev": "egg-bin dev",
|
|
13
11
|
"test:local": "cross-env NODE_OPTIONS=\"--import @oxc-node/core/register\" vitest run",
|
|
14
12
|
"pretest": "npm run clean && npm run lint -- --fix",
|
|
@@ -18,9 +16,9 @@
|
|
|
18
16
|
"postci": "npm run prepublishOnly && npm start && sleep 10 && npm stop && npm run clean",
|
|
19
17
|
"lint": "oxlint --type-aware",
|
|
20
18
|
"typecheck": "tsc --noEmit",
|
|
21
|
-
"
|
|
19
|
+
"build": "tsc",
|
|
22
20
|
"clean": "tsc -b --clean",
|
|
23
|
-
"prepublishOnly": "npm run clean && npm run
|
|
21
|
+
"prepublishOnly": "npm run clean && npm run build"
|
|
24
22
|
},
|
|
25
23
|
"dependencies": {
|
|
26
24
|
"@eggjs/scripts": "beta",
|