v0.3.0 — Vue 3 + Svelte 5 support
Pre-release
Pre-release
What's new
Added
- Vue 3 support — Nuxt 3 and Vue + Vite both supported. Detector recognizes Nuxt by the
nuxtdependency and walkspages/,components/,layouts/,app.vue. Globals CSS is located at the
Nuxt-conventionalassets/css/main.css(or fall-throughs). - Svelte 5 support — SvelteKit and Svelte + Vite both supported. Detector recognizes SvelteKit by
@sveltejs/kitand walkssrc/routes/,src/lib/,src/components/. Globals CSS is located at
src/app.css/src/app.postcss. - Runtime + framework abstraction.
detect-stack.mjsnow reports:runtime:'react' | 'vue' | 'svelte'framework:'next' | 'nuxt' | 'sveltekit' | 'vite'classAttr:'className'(React) or'class'(Vue/Svelte)fileExtensions:['.tsx', '.jsx']/['.vue']/['.svelte']
- New reference:
references/frameworks/vue.md—class=vs:class=array/object syntax,<script setup>boundaries, Nuxt conventions, auto-imports. - New reference:
references/frameworks/svelte.md—class=vsclass:foo={bool}directives, SvelteKit+layout.svelte/+page.svelteconventions, scoped<style>blocks.
Changed
SKILL.mdStep 1 now announces detected runtime, framework, Tailwind flavor, and accent in one line.SKILL.mdStep 2 PLAN usesuiFiles[]from the detector (right roots + extensions per runtime).SKILL.mdStep 5 APPLY references the framework guide and re-states framework-specific skip lists.references/tailwind-modernization.md— added a framework-agnostic note clarifying that all examples are JSX but class strings work identically inclass=for Vue/Svelte.scripts/detect-brand.mjs— brand-color CSS search now includes Nuxt'sassets/css/main.cssand SvelteKit'ssrc/app.css.package.json— addedvue,nuxt,svelte,sveltekitto keywords.
新增
- Vue 3 支持 —— Nuxt 3 和 Vue + Vite 都支持。检测器通过
nuxt依赖识别 Nuxt,扫描pages/、components/、layouts/、app.vue。全局 CSS 定位在assets/css/main.css。 - Svelte 5 支持 —— SvelteKit 和 Svelte + Vite 都支持。检测器通过
@sveltejs/kit识别 SvelteKit,扫描src/routes/、src/lib/、src/components/。全局 CSS 定位在src/app.css。 - runtime + framework 抽象。
detect-stack.mjs输出runtime(react|vue|svelte)、framework(next|nuxt|sveltekit|vite)、classAttr(className/class)、fileExtensions。 - 新增参考文档:
references/frameworks/vue.md、references/frameworks/svelte.md。
改动
SKILL.mdStep 1 一行播报 runtime + framework + Tailwind flavor + accent。SKILL.mdStep 2/5 按 runtime 使用对应的根目录和扩展名。references/tailwind-modernization.md加入框架无关说明。package.jsonkeywords 加入vue、nuxt、svelte、sveltekit。