@alstar/create 0.0.0-beta.2 → 0.0.0-beta.4
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 +1 -9
- 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 +5 -3
- package/tsconfig.json +4 -0
package/main.js
CHANGED
|
@@ -9,7 +9,6 @@ import {
|
|
|
9
9
|
isCancel,
|
|
10
10
|
cancel,
|
|
11
11
|
} from '@clack/prompts'
|
|
12
|
-
import { execSync } from 'node:child_process'
|
|
13
12
|
import path from 'node:path'
|
|
14
13
|
import fs from 'node:fs/promises'
|
|
15
14
|
|
|
@@ -70,16 +69,9 @@ if (!(await directoryExists(fullpath))) {
|
|
|
70
69
|
|
|
71
70
|
s.stop(`Created project in ${path.join(projectDir, projectName)}`)
|
|
72
71
|
|
|
73
|
-
const s2 = spinner()
|
|
74
|
-
|
|
75
|
-
s2.start('Installing dependencies')
|
|
76
|
-
|
|
77
|
-
execSync(`cd ${fullpath} && pnpm install`)
|
|
78
|
-
|
|
79
|
-
s2.stop('Installed dependencies')
|
|
80
|
-
|
|
81
72
|
log.info(`Next step:
|
|
82
73
|
cd ${path.join(projectDir, projectName)}
|
|
74
|
+
pnpm install
|
|
83
75
|
pnpm dev`)
|
|
84
76
|
|
|
85
77
|
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.4",
|
|
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
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Welcome from "../components/Welcome/Welcome";
|
|
1
|
+
import { defineEntry } from '@alstar/studio'
|
|
3
2
|
|
|
4
|
-
|
|
3
|
+
import SiteLayout from '../components/SiteLayout.ts'
|
|
4
|
+
import Welcome from '../components/Welcome/Welcome.ts'
|
|
5
|
+
|
|
6
|
+
export default defineEntry(() => SiteLayout(Welcome()))
|
package/tsconfig.json
ADDED