@alstar/create 0.0.0-beta.3 → 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 +0 -9
- package/package.json +1 -1
- package/template/pages/index.ts +5 -3
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,14 +69,6 @@ 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)}
|
|
83
74
|
pnpm install
|
package/package.json
CHANGED
package/template/pages/index.ts
CHANGED
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import Welcome from "../components/Welcome/Welcome.ts";
|
|
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()))
|