create-lve 0.4.1 → 0.4.2
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/index.js +1 -9
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -98,7 +98,6 @@ async function main() {
|
|
|
98
98
|
|
|
99
99
|
try {
|
|
100
100
|
s.start('Creating project')
|
|
101
|
-
const startScaffold = Date.now()
|
|
102
101
|
|
|
103
102
|
if (project.shouldOverwrite) await fs.emptyDir(ctx.targetDir)
|
|
104
103
|
await fs.ensureDir(ctx.targetDir)
|
|
@@ -106,20 +105,13 @@ async function main() {
|
|
|
106
105
|
await cleanupTemplate(ctx)
|
|
107
106
|
await applyProjectTransform(ctx)
|
|
108
107
|
|
|
109
|
-
const costScaffold = ((Date.now() - startScaffold) / 1000).toFixed(1)
|
|
110
|
-
s.stop(pc.green(`Creating project in ${costScaffold}s`))
|
|
111
|
-
|
|
112
108
|
s.start('Installing dependencies')
|
|
113
|
-
const startInstall = Date.now()
|
|
114
109
|
await installDependencies(ctx, s)
|
|
115
110
|
|
|
116
|
-
const costInstall = ((Date.now() - startInstall) / 1000).toFixed(1)
|
|
117
|
-
s.stop(pc.green(`Dependencies installed in ${costInstall}s`))
|
|
118
|
-
|
|
119
111
|
console.log(pc.gray(`◇ Scaffolded ${ctx.name} with Vite application`))
|
|
120
112
|
console.log(
|
|
121
113
|
pc.gray(
|
|
122
|
-
`• Node ${process.version.slice(1)} ${ctx.pkgManager} ${execSync(ctx.pkgManager + ' -
|
|
114
|
+
`• Node ${process.version.slice(1)} ${ctx.pkgManager} ${execSync(ctx.pkgManager + ' -V')
|
|
123
115
|
.toString()
|
|
124
116
|
.trim()}`,
|
|
125
117
|
),
|