create-egg 4.1.0-beta.32 → 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.
@@ -1,6 +1,6 @@
1
1
  # tegg app
2
2
 
3
- [Hacker News](https://news.ycombinator.com/) showcase using [tegg](https://github.com/eggjs/tegg)
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 tsc
18
+ npm run build
21
19
  npm start
22
20
  ```
23
21
 
@@ -1,5 +1,5 @@
1
- import type { PartialEggConfig } from 'egg';
1
+ import { defineConfig } from 'egg';
2
2
 
3
- export default {
3
+ export default defineConfig({
4
4
  // add your config here
5
- } as PartialEggConfig;
5
+ });
@@ -1,5 +1,5 @@
1
- import type { PartialEggConfig } from 'egg';
1
+ import { defineConfig } from 'egg';
2
2
 
3
- export default {
3
+ export default defineConfig({
4
4
  // add your config here
5
- } as PartialEggConfig;
5
+ });
@@ -1,5 +1,5 @@
1
- import type { PartialEggConfig } from 'egg';
1
+ import { defineConfig } from 'egg';
2
2
 
3
- export default {
3
+ export default defineConfig({
4
4
  // add your config here
5
- } as PartialEggConfig;
5
+ });
@@ -1,10 +1,6 @@
1
- import type { EggPlugin } from 'egg';
1
+ import tracerPlugin from '@eggjs/tracer';
2
2
 
3
- const plugin: EggPlugin = {
4
- tracer: {
5
- enable: true,
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
- "tsc": "tsc",
19
+ "build": "tsc",
22
20
  "clean": "tsc -b --clean",
23
- "prepublishOnly": "npm run clean && npm run tsc"
21
+ "prepublishOnly": "npm run clean && npm run build"
24
22
  },
25
23
  "dependencies": {
26
24
  "@eggjs/scripts": "beta",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-egg",
3
- "version": "4.1.0-beta.32",
3
+ "version": "4.1.0-beta.34",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -9,7 +9,7 @@
9
9
  "devDependencies": {
10
10
  "@types/cross-spawn": "^6.0.6",
11
11
  "execa": "^9.6.0",
12
- "tsdown": "0.15.10"
12
+ "tsdown": "0.15.11"
13
13
  },
14
14
  "engines": {
15
15
  "node": ">=20.19.0"