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 +6 -0
- package/dist/cli.js +0 -0
- package/package.json +3 -3
- package/.turbo/turbo-build.log +0 -17
- package/.turbo/turbo-check.log +0 -4
- package/.turbo/turbo-lint.log +0 -4
- package/.turbo/turbo-test.log +0 -65
package/CHANGELOG.md
CHANGED
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.
|
|
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"
|
package/.turbo/turbo-build.log
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
> create-skweb@1.1.0 prebuild
|
|
4
|
-
> tsc --outDir dist --rootDir src
|
|
5
|
-
|
|
6
|
-
⠙[1G[0K
|
|
7
|
-
> create-skweb@1.1.0 build
|
|
8
|
-
> rollup -c rollup.config.mjs
|
|
9
|
-
|
|
10
|
-
⠙[1G[0K[36m
|
|
11
|
-
[1msrc/index.ts[22m → [1mdist/index.js, dist/index.cjs[22m...[39m
|
|
12
|
-
[32mcreated [1mdist/index.js, dist/index.cjs[22m in [1m445ms[22m[39m
|
|
13
|
-
[36m
|
|
14
|
-
[1msrc/cli.ts[22m → [1mdist/cli.js[22m...[39m
|
|
15
|
-
[1m[33m(!) 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`.[39m[22m
|
|
16
|
-
[32mcreated [1mdist/cli.js[22m in [1m281ms[22m[39m
|
|
17
|
-
⠙[1G[0K
|
package/.turbo/turbo-check.log
DELETED
package/.turbo/turbo-lint.log
DELETED
package/.turbo/turbo-test.log
DELETED
|
@@ -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
|
-
|