create-lve 0.4.3 → 0.4.5

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.
Files changed (3) hide show
  1. package/config.js +1 -1
  2. package/index.js +1 -11
  3. package/package.json +1 -1
package/config.js CHANGED
@@ -70,7 +70,7 @@ const FRAMEWORK_CONFIG = {
70
70
  const CSS_STRATEGIES = {
71
71
  unocss: {
72
72
  pluginImport: "import UnoCSS from 'unocss/vite'\n",
73
- pluginCode: 'UnoCSS(), ',
73
+ pluginCode: 'UnoCSS({ hmrTopLevelAwait: true }), ',
74
74
  entryImport: "import '@unocss/reset/tailwind.css'\nimport 'virtual:uno.css'\n",
75
75
  async setup(ctx) {
76
76
  const unoConfig = `
package/index.js CHANGED
@@ -97,8 +97,6 @@ async function main() {
97
97
  }
98
98
 
99
99
  try {
100
- s.start('Creating project')
101
-
102
100
  if (project.shouldOverwrite) await fs.emptyDir(ctx.targetDir)
103
101
  await fs.ensureDir(ctx.targetDir)
104
102
  await fs.copy(ctx.templateDir, ctx.targetDir)
@@ -107,15 +105,7 @@ async function main() {
107
105
 
108
106
  s.start('Installing dependencies')
109
107
  await installDependencies(ctx)
110
-
111
- console.log(pc.gray(`◇ Scaffolded ${ctx.name} with Vite application`))
112
- console.log(
113
- pc.gray(
114
- `• Node ${process.version.slice(1)} ${ctx.pkgManager} ${execSync(ctx.pkgManager + ' -V')
115
- .toString()
116
- .trim()}`,
117
- ),
118
- )
108
+ s.stop()
119
109
  console.log(pc.green(`→ Next: cd ${ctx.name} && ${ctx.devCmd.replace(' ', ' run ')}`))
120
110
  } catch (err) {
121
111
  s.stop(pc.red('Failed'))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-lve",
3
- "version": "0.4.3",
3
+ "version": "0.4.5",
4
4
  "bin": {
5
5
  "create-lve": "index.js"
6
6
  },