create-ui0 0.1.6 → 0.1.7

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/dist/index.js CHANGED
@@ -228,12 +228,13 @@ const run = async () => {
228
228
  const nuxtConfigPath = path.join(target, 'nuxt.config.ts');
229
229
  const withIcons = features.includes('icon');
230
230
  const configSrc = readFileSync(nuxtConfigPath, 'utf8')
231
- .replace('/* FEATURE_VITE_IMPORT */', withIcons ? "import { fileURLToPath } from 'node:url'\n\nimport ViteUi0Icon from '@ui0/icon/vite'\n" : '')
231
+ .replace('/* FEATURE_VITE_IMPORT */', withIcons ? "import ViteUi0Icon from '@ui0/icon/vite'\n" : '')
232
232
  .replace('/* FEATURE_VITE_PLUGINS */',
233
- // absolute on purpose: nuxt's vite root is the app/ dir, relative
234
- // dirs would resolve against it. dir is the scan root - an svg at
235
- // <dir>/icons/bookmark.svg is addressed 'assets/icons/bookmark'
236
- withIcons ? "ViteUi0Icon({ dir: fileURLToPath(new URL('./assets', import.meta.url)) })" : '')
233
+ // dir is the scan root - an svg at <dir>/icons/bookmark.svg is
234
+ // addressed 'assets/icons/bookmark'. Relative dirs resolve against
235
+ // the vite root, walking up to the project root when missing (nuxt
236
+ // roots vite at app/)
237
+ withIcons ? "ViteUi0Icon({ dir: './assets' })" : '')
237
238
  .replace('/* FEATURE_CSS */',
238
239
  // the placeholder trails the array's first entry - lead with a comma
239
240
  picked.length ? `,\n ${picked.flatMap((f) => f.cssLines ?? []).join(',\n ')}` : '');
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-ui0",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Scaffold a ui0 (Vue + @ui0) app - npm create ui0",
5
5
  "type": "module",
6
6
  "bin": {
@@ -1,8 +1,5 @@
1
1
  <template>
2
- <div
3
- data-0="{%kebab%}"
4
- :class="$styles.{%camel%}"
5
- >
2
+ <div :class="$styles.{%camel%}">
6
3
  <slot />
7
4
  </div>
8
5
  </template>
@@ -10,7 +10,7 @@
10
10
  },
11
11
  "dependencies": {
12
12
  "@ui0/core": "^0.1.5",
13
- "@ui0/nuxt": "^0.1.2",
13
+ "@ui0/nuxt": "^0.1.3",
14
14
  "@ui0/theme": "^0.1.5",
15
15
  "nuxt": "^4.6.4",
16
16
  "vue": "^3.5.45"