create-skweb 1.1.0 → 1.1.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # create-skweb
2
2
 
3
+ ## 1.1.1
4
+
5
+ ### Patch Changes
6
+
7
+ - 修复 create-skweb bin 脚本缺少可执行权限的问题,确保 npx create-skweb 能正常运行
8
+
3
9
  ## 1.1.0
4
10
 
5
11
  ### Minor Changes
package/dist/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-skweb",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "Create a new SKWeb project with TypeScript, CJS, or MJS support",
5
5
  "type": "module",
6
6
  "main": "dist/index.cjs",
@@ -13,8 +13,8 @@
13
13
  "clean": "rm -rf dist",
14
14
  "clean:temp": "rm -rf .rollup.cache",
15
15
  "prebuild": "tsc --outDir dist --rootDir src",
16
- "build": "rollup -c rollup.config.mjs",
17
- "build:dev": "rollup -c rollup.config.mjs --environment NODE_ENV:development",
16
+ "build": "rollup -c rollup.config.mjs && chmod +x dist/cli.js",
17
+ "build:dev": "rollup -c rollup.config.mjs --environment NODE_ENV:development && chmod +x dist/cli.js",
18
18
  "lint": "eslint --fix --ext .ts src",
19
19
  "check": "tsc --noEmit",
20
20
  "test": "mocha test/**/*.mjs"
@@ -1,17 +0,0 @@
1
-
2
- 
3
- > create-skweb@1.1.0 prebuild
4
- > tsc --outDir dist --rootDir src
5
-
6
- ⠙
7
- > create-skweb@1.1.0 build
8
- > rollup -c rollup.config.mjs
9
-
10
- ⠙
11
- src/index.ts → dist/index.js, dist/index.cjs...
12
- created dist/index.js, dist/index.cjs in 445ms
13
- 
14
- src/cli.ts → dist/cli.js...
15
- (!) Plugin replace: @rollup/plugin-replace: 'preventAssignment' currently defaults to false. It is recommended to set this option to `true`, as the next major version will default this option to `true`.
16
- created dist/cli.js in 281ms
17
- ⠙
@@ -1,4 +0,0 @@
1
-
2
- > create-skweb@1.0.0 check
3
- > tsc --noEmit
4
-
@@ -1,4 +0,0 @@
1
-
2
- > create-skweb@1.0.0 lint
3
- > eslint --fix --ext .ts src
4
-
@@ -1,65 +0,0 @@
1
-
2
- > create-skweb@1.0.0 test
3
- > mocha test/**/*.mjs
4
-
5
-
6
-
7
- create-skweb
8
- createProject()
9
- ✔ should create TypeScript project from template
10
- ✔ should create MJS project from template
11
- ✔ should create CJS project from template
12
- ✔ should reject non-empty destination directory
13
- ✔ should include winston in all templates
14
- ✔ should include @dotenvx/dotenvx in all templates
15
- ✔ should include pm2 ecosystem in all templates
16
- ✔ should replace {{name}} placeholder in package.json
17
- printBanner()
18
-
19
- ╔════════════════════════════════════════════════════════════════════╗
20
- ║ Create SKWeb Project ║
21
- ╚════════════════════════════════════════════════════════════════════╝
22
-
23
- ✔ should not throw
24
- printSuccess()
25
-
26
- ╔════════════════════════════════════════════════════════════════════╗
27
- ║ 项目创建成功! ║
28
- ╚════════════════════════════════════════════════════════════════════╝
29
-
30
- 项目名称: my-app
31
- 项目路径: /tmp/my-app
32
-
33
- 接下来可以执行:
34
-
35
- cd my-app
36
-
37
- # 开发模式运行
38
- npm run start:dev
39
-
40
- # 生产模式运行 (需要先构建)
41
- npm run build
42
- npm run start
43
-
44
- # 查看日志
45
- npm run logs
46
-
47
- # 停止服务
48
- npm run stop
49
-
50
- # 重启服务
51
- npm run restart
52
-
53
- 项目特性:
54
- ✅ TypeScript/MJS/CJS 支持
55
- ✅ @dotenvx/dotenvx 环境变量管理
56
- ✅ PM2 进程管理
57
- ✅ SKWeb Express 集成
58
- ✅ ESLint 代码检查
59
- ✅ Mocha 测试框架
60
-
61
- ✔ should not throw
62
-
63
-
64
- 10 passing (62ms)
65
-