nsgm-cli 2.1.44 → 2.1.45
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/generation/README.md +17 -17
- package/generation/package.json +1 -1
- package/lib/index.js +0 -0
- package/lib/tsconfig.build.tsbuildinfo +1 -1
- package/next.config.js +1 -1
- package/package.json +37 -35
- package/scripts/performance-check.sh +0 -0
- package/scripts/shutdown.sh +0 -0
- package/scripts/startup.sh +0 -0
package/next.config.js
CHANGED
|
@@ -82,7 +82,7 @@ module.exports = (phase, defaultConfig, options) => {
|
|
|
82
82
|
],
|
|
83
83
|
// Bundle 优化配置
|
|
84
84
|
experimental: {
|
|
85
|
-
optimizeCss: true, // 启用 CSS
|
|
85
|
+
// optimizeCss: true, // 启用 CSS 优化(需要 critters 依赖,已禁用以避免兼容性问题)
|
|
86
86
|
esmExternals: true, // 支持 ESM 外部依赖
|
|
87
87
|
},
|
|
88
88
|
compiler: {
|
package/package.json
CHANGED
|
@@ -1,8 +1,43 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "nsgm-cli",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.45",
|
|
4
|
+
"packageManager": "npm@11.9.0",
|
|
4
5
|
"description": "A CLI tool to run Next/Style-components and Graphql/Mysql fullstack project",
|
|
5
6
|
"main": "index.js",
|
|
7
|
+
"scripts": {
|
|
8
|
+
"help": "node ./lib/index.js",
|
|
9
|
+
"dev": "npm run tsbuild && node ./lib/index.js dev",
|
|
10
|
+
"tsbuild": "rimraf lib && tsc --build tsconfig.build.json",
|
|
11
|
+
"build": "node ./lib/index.js build",
|
|
12
|
+
"analyze": "cross-env ANALYZE=true npm run build",
|
|
13
|
+
"tsv": "node ./lib/index.js version",
|
|
14
|
+
"start": "node ./lib/index.js start",
|
|
15
|
+
"export": "node ./lib/index.js export",
|
|
16
|
+
"init": "node ./lib/index.js init",
|
|
17
|
+
"upgrade": "node ./lib/index.js upgrade",
|
|
18
|
+
"create": "node ./lib/index.js create",
|
|
19
|
+
"delete": "node ./lib/index.js delete",
|
|
20
|
+
"deletedb": "node ./lib/index.js deletedb",
|
|
21
|
+
"clean": "rimraf .next && rimraf build && rimraf webapp && rimraf lib",
|
|
22
|
+
"lint": "eslint \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\" --fix",
|
|
23
|
+
"lint:check": "eslint \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\"",
|
|
24
|
+
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\"",
|
|
25
|
+
"check-deps": "npm outdated",
|
|
26
|
+
"update-deps": "npm update",
|
|
27
|
+
"audit-fix": "npm audit fix",
|
|
28
|
+
"prepublishOnly": "npm run lint:check",
|
|
29
|
+
"preversion": "npm run lint:check",
|
|
30
|
+
"version": "npm run format && git add -A src",
|
|
31
|
+
"postversion": "git push && git push --tags",
|
|
32
|
+
"release": "npm run clean && npm run lint && npm run format && npm run tsbuild && npm run build",
|
|
33
|
+
"test": "jest",
|
|
34
|
+
"test:coverage": "jest --coverage",
|
|
35
|
+
"test:watch": "jest --watch",
|
|
36
|
+
"performance": "./scripts/performance-check.sh",
|
|
37
|
+
"generate-password": "node scripts/generate-password-hash.js",
|
|
38
|
+
"vercel-build": "npm run tsbuild && npm run build",
|
|
39
|
+
"vercel-dev": "npm run tsbuild && npm run dev"
|
|
40
|
+
},
|
|
6
41
|
"repository": {
|
|
7
42
|
"type": "git",
|
|
8
43
|
"url": "git+https://github.com/erishen/nsgm.git"
|
|
@@ -131,38 +166,5 @@
|
|
|
131
166
|
"prettier": "3.6.2",
|
|
132
167
|
"typescript": "5.8.3",
|
|
133
168
|
"webpack-bundle-analyzer": "4.10.2"
|
|
134
|
-
},
|
|
135
|
-
"scripts": {
|
|
136
|
-
"help": "node ./lib/index.js",
|
|
137
|
-
"dev": "pnpm run tsbuild && node ./lib/index.js dev",
|
|
138
|
-
"tsbuild": "rimraf lib && tsc --build tsconfig.build.json",
|
|
139
|
-
"build": "node ./lib/index.js build",
|
|
140
|
-
"analyze": "cross-env ANALYZE=true pnpm run build",
|
|
141
|
-
"tsv": "node ./lib/index.js version",
|
|
142
|
-
"start": "node ./lib/index.js start",
|
|
143
|
-
"export": "node ./lib/index.js export",
|
|
144
|
-
"init": "node ./lib/index.js init",
|
|
145
|
-
"upgrade": "node ./lib/index.js upgrade",
|
|
146
|
-
"create": "node ./lib/index.js create",
|
|
147
|
-
"delete": "node ./lib/index.js delete",
|
|
148
|
-
"deletedb": "node ./lib/index.js deletedb",
|
|
149
|
-
"clean": "rimraf .next && rimraf build && rimraf webapp && rimraf lib",
|
|
150
|
-
"lint": "eslint \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\" --fix",
|
|
151
|
-
"lint:check": "eslint \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\"",
|
|
152
|
-
"format": "prettier --write \"src/**/*.{ts,tsx}\" \"client/**/*.{ts,tsx}\" \"pages/**/*.{ts,tsx}\"",
|
|
153
|
-
"check-deps": "pnpm outdated",
|
|
154
|
-
"update-deps": "pnpm update",
|
|
155
|
-
"audit-fix": "pnpm audit fix",
|
|
156
|
-
"preversion": "pnpm run lint:check",
|
|
157
|
-
"version": "pnpm run format && git add -A src",
|
|
158
|
-
"postversion": "git push && git push --tags",
|
|
159
|
-
"release": "pnpm run clean && pnpm run lint && pnpm run format && pnpm run tsbuild && pnpm run build",
|
|
160
|
-
"test": "jest",
|
|
161
|
-
"test:coverage": "jest --coverage",
|
|
162
|
-
"test:watch": "jest --watch",
|
|
163
|
-
"performance": "./scripts/performance-check.sh",
|
|
164
|
-
"generate-password": "node scripts/generate-password-hash.js",
|
|
165
|
-
"vercel-build": "pnpm run tsbuild && pnpm run build",
|
|
166
|
-
"vercel-dev": "pnpm run tsbuild && pnpm run dev"
|
|
167
169
|
}
|
|
168
|
-
}
|
|
170
|
+
}
|
|
File without changes
|
package/scripts/shutdown.sh
CHANGED
|
File without changes
|
package/scripts/startup.sh
CHANGED
|
File without changes
|