create-egg 4.1.0-beta.34 → 4.1.0-beta.35
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/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/{src-BgL2uwim.js → src-C5hWB9Dq.js} +1 -1
- package/dist/templates/egg3-simple-ts/test/app/controller/home.test.ts +1 -0
- package/dist/templates/egg3-simple-ts/test/app/service/Test.test.ts +1 -0
- package/dist/templates/egg3-simple-ts/tsconfig.json +1 -1
- package/dist/templates/egg3-tegg/app/module/bar/controller/home.ts +1 -1
- package/dist/templates/egg3-tegg/app/module/bar/controller/user.ts +1 -1
- package/dist/templates/egg3-tegg/app/module/foo/service/HelloService.ts +1 -1
- package/dist/templates/egg3-tegg/package.json +1 -1
- package/dist/templates/egg3-tegg/test/app/module/foo/service/HelloService.test.ts +1 -2
- package/dist/templates/egg3-tegg/tsconfig.json +2 -3
- package/dist/templates/simple-ts/package.json +1 -1
- package/dist/templates/simple-ts/test/app/controller/home.test.ts +1 -2
- package/dist/templates/simple-ts/test/app/service/Test.test.ts +1 -2
- package/dist/templates/simple-ts/tsconfig.json +1 -2
- package/dist/templates/tegg/app/module/bar/controller/home.ts +1 -1
- package/dist/templates/tegg/app/module/bar/controller/user.ts +1 -0
- package/dist/templates/tegg/app/module/foo/service/HelloService.ts +1 -1
- package/dist/templates/tegg/package.json +2 -2
- package/dist/templates/tegg/test/app/module/bar/controller/home.test.ts +1 -1
- package/dist/templates/tegg/test/app/module/bar/controller/user.test.ts +1 -1
- package/dist/templates/tegg/test/app/module/foo/service/HelloService.test.skip.ts +1 -1
- package/dist/templates/tegg/tsconfig.json +1 -2
- package/package.json +3 -3
package/dist/cli.js
CHANGED
package/dist/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import fs from "node:fs";
|
|
2
2
|
import path from "node:path";
|
|
3
|
+
import * as prompts from "@clack/prompts";
|
|
3
4
|
import spawn from "cross-spawn";
|
|
4
5
|
import mri from "mri";
|
|
5
|
-
import * as prompts from "@clack/prompts";
|
|
6
6
|
import colors from "picocolors";
|
|
7
7
|
|
|
8
8
|
//#region src/index.ts
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Inject, HTTPController, HTTPMethod, HTTPMethodEnum, HTTPQuery } from '@eggjs/tegg';
|
|
2
1
|
import { HelloService } from '@/module/foo';
|
|
2
|
+
import { Inject, HTTPController, HTTPMethod, HTTPMethodEnum, HTTPQuery } from '@eggjs/tegg';
|
|
3
3
|
|
|
4
4
|
@HTTPController({
|
|
5
5
|
path: '/bar',
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { strict as assert } from 'node:assert';
|
|
2
2
|
|
|
3
|
-
import { app } from 'egg-mock/bootstrap';
|
|
4
|
-
|
|
5
3
|
import { HelloService } from '@/module/foo/service/HelloService';
|
|
4
|
+
import { app } from 'egg-mock/bootstrap';
|
|
6
5
|
|
|
7
6
|
describe('test/app/module/foo/service/HelloService.test.ts', () => {
|
|
8
7
|
it('should hello() work', async () => {
|
|
@@ -29,11 +29,11 @@
|
|
|
29
29
|
"@eggjs/bin": "beta",
|
|
30
30
|
"@eggjs/mock": "beta",
|
|
31
31
|
"@eggjs/tsconfig": "beta",
|
|
32
|
-
"@oxc-node/core": "^0.0.
|
|
32
|
+
"@oxc-node/core": "^0.0.35",
|
|
33
33
|
"@types/node": "24",
|
|
34
34
|
"cross-env": "10",
|
|
35
35
|
"oxlint": "1",
|
|
36
|
-
"oxlint-tsgolint": "^0.
|
|
36
|
+
"oxlint-tsgolint": "^0.8.0",
|
|
37
37
|
"typescript": "5",
|
|
38
38
|
"vitest": "4",
|
|
39
39
|
"@vitest/coverage-v8": "4"
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { test, expect } from 'vitest';
|
|
2
1
|
import { app } from '@eggjs/mock/bootstrap';
|
|
2
|
+
import { test, expect } from 'vitest';
|
|
3
3
|
|
|
4
4
|
test('should GET /bar/user status 200', async () => {
|
|
5
5
|
const res = await app.httpRequest().get('/bar/user').query({ userId: '20170901' });
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-egg",
|
|
3
|
-
"version": "4.1.0-beta.
|
|
3
|
+
"version": "4.1.0-beta.35",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -9,14 +9,14 @@
|
|
|
9
9
|
"devDependencies": {
|
|
10
10
|
"@types/cross-spawn": "^6.0.6",
|
|
11
11
|
"execa": "^9.6.0",
|
|
12
|
-
"tsdown": "0.
|
|
12
|
+
"tsdown": "^0.17.0"
|
|
13
13
|
},
|
|
14
14
|
"engines": {
|
|
15
15
|
"node": ">=20.19.0"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
|
18
18
|
"type": "git",
|
|
19
|
-
"url": "git://github.com/eggjs/egg.git",
|
|
19
|
+
"url": "git+https://github.com/eggjs/egg.git",
|
|
20
20
|
"directory": "tools/create-egg"
|
|
21
21
|
},
|
|
22
22
|
"bugs": {
|