@alstar/create 0.0.0-beta.2 → 0.0.0-beta.3
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/main.js +6 -5
- package/package.json +2 -2
- package/template/components/SiteLayout.ts +1 -2
- package/template/components/Welcome/Welcome.css +1 -1
- package/template/components/Welcome/Welcome.ts +1 -1
- package/template/package.json +3 -4
- package/template/pages/index.ts +2 -2
- package/tsconfig.json +4 -0
package/main.js
CHANGED
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isCancel,
|
|
10
10
|
cancel,
|
|
11
11
|
} from '@clack/prompts'
|
|
12
|
-
import { execSync } from 'node:child_process'
|
|
12
|
+
// import { execSync } from 'node:child_process'
|
|
13
13
|
import path from 'node:path'
|
|
14
14
|
import fs from 'node:fs/promises'
|
|
15
15
|
|
|
@@ -70,16 +70,17 @@ if (!(await directoryExists(fullpath))) {
|
|
|
70
70
|
|
|
71
71
|
s.stop(`Created project in ${path.join(projectDir, projectName)}`)
|
|
72
72
|
|
|
73
|
-
const s2 = spinner()
|
|
73
|
+
// const s2 = spinner()
|
|
74
74
|
|
|
75
|
-
s2.start('Installing dependencies')
|
|
75
|
+
// s2.start('Installing dependencies')
|
|
76
76
|
|
|
77
|
-
execSync(`cd ${fullpath} && pnpm install`)
|
|
77
|
+
// execSync(`cd ${fullpath} && pnpm install`)
|
|
78
78
|
|
|
79
|
-
s2.stop('Installed dependencies')
|
|
79
|
+
// s2.stop('Installed dependencies')
|
|
80
80
|
|
|
81
81
|
log.info(`Next step:
|
|
82
82
|
cd ${path.join(projectDir, projectName)}
|
|
83
|
+
pnpm install
|
|
83
84
|
pnpm dev`)
|
|
84
85
|
|
|
85
86
|
outro(`Done!`)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alstar/create",
|
|
3
|
-
"version": "0.0.0-beta.
|
|
3
|
+
"version": "0.0.0-beta.3",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"bin": {
|
|
6
6
|
"create": "main.js"
|
|
@@ -12,6 +12,6 @@
|
|
|
12
12
|
"@clack/prompts": "^0.11.0"
|
|
13
13
|
},
|
|
14
14
|
"scripts": {
|
|
15
|
-
"dev": "node --watch main.js"
|
|
15
|
+
"cli:dev": "node --watch main.js"
|
|
16
16
|
}
|
|
17
17
|
}
|
package/template/package.json
CHANGED
|
@@ -2,15 +2,14 @@
|
|
|
2
2
|
"name": "alstar-app",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"scripts": {
|
|
5
|
-
"dev": "
|
|
6
|
-
"start": "
|
|
5
|
+
"dev": "pnpx tsx --watch index.ts",
|
|
6
|
+
"start": "pnpx tsx index.ts"
|
|
7
7
|
},
|
|
8
8
|
"devDependencies": {
|
|
9
9
|
"@types/node": "^24.1.0"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@alstar/studio": "latest",
|
|
13
|
-
"@alstar/refresher": "latest"
|
|
14
|
-
"hono": "^4.8.12"
|
|
13
|
+
"@alstar/refresher": "latest"
|
|
15
14
|
}
|
|
16
15
|
}
|
package/template/pages/index.ts
CHANGED
package/tsconfig.json
ADDED