vue-vine/vue-vine
Fork: 62 Star: 1278 (更新于 2025-01-19 04:00:44)
license: MIT
Language: TypeScript .
Another style of writing Vue components.
最后发布版本: v0.1.14 ( 2024-07-17 14:08:11)
Vue Vine
Another style of writing Vue components.
- NPM version:
- VSCode extension:
- Check more details in Vue Vine docs:
Why this ?
There are many discussions in community that hopes for a solution that supports writing multiple Vue components in a single file. That's why Vue Vine
was born.
Vue Vine
was designed to provide more flexibility of managing Vue components. It is a parallel style to SFC.
Take a quick view:
Try the demo
Use interactive commands(create-vue-vine
) to create your first project. Look here: Project starter template
Or you can try it online: Vue Vine Playground
Relavant packages
Category | Package | Version | Description |
---|---|---|---|
@vue-vine/compiler | Compiler | ||
@vue-vine/language-server | Language Server | ||
@vue-vine/language-service | Language Service | ||
@vue-vine/vite-plugin | Vite Plugin | ||
@vue-vine/eslint-parser | ESLint Parser | ||
@vue-vine/eslint-plugin | ESLint Plugin | ||
@vue-vine/eslint-config | ESLint Config | ||
@vue-vine/nuxt | Nuxt Module | ||
vue-vine-tsc | TypeScript CLI checker | ||
create-vue-vine | Project starter CLI |
Install
# If you didn't install `@antfu/ni` yet, I highly recommend you to install it.
ni -D vue-vine
Use the plugin in vite.config.ts
:
import { VineVitePlugin } from 'vue-vine/vite'
export default defineConfig({
plugins: [
// ...Other plugins
VineVitePlugin()
],
})
Then add macro's type definition in tsconfig.json
:
{
"compilerOptions": {
"types": ["vue-vine/macros"]
}
}
For ESLint, install our custom ESLint config:
ni -D @vue-vine/eslint-config
You need to load the config into your flat configs.
import antfu from '@antfu/eslint-config'
// `VueVine()` returns a ESLint flat config
import VueVine from '@vue-vine/eslint-config'
export default antfu(
{
// First option is not Linter.FlatConfig,
// it's a setting for antfu's config itself
},
...VueVine(),
)
Finally, install the VSCode extension, search Vue Vine
in the marketplace.
最近版本更新:(数据更新于 2024-10-09 09:59:40)
2024-07-17 14:08:11 v0.1.14
2024-07-12 14:56:00 v0.1.11
2024-07-12 14:41:36 v0.1.10
2024-07-12 04:44:24 v0.1.9
2024-07-11 01:46:26 v0.1.8
2024-07-10 20:35:21 v0.1.7
2024-07-08 18:40:54 v0.1.6
2024-07-08 01:20:32 v0.1.5
2024-07-05 16:02:17 v0.1.4
2024-05-20 19:37:29 v0.1.3
vue-vine/vue-vine同语言 TypeScript最近更新仓库
2025-01-18 21:38:50 chenfan0/fideo-live-record
2025-01-18 15:06:58 RSSNext/Follow
2025-01-18 13:15:01 labring/FastGPT
2025-01-18 04:09:49 bluesky-social/social-app
2025-01-17 20:54:16 lobehub/lobe-chat
2025-01-17 11:06:01 TBXark/ChatGPT-Telegram-Workers