Skip to content

Commit de7ff32

Browse files
committed
refactor(core)!: The core package is now used for headless components
1 parent b00a1c9 commit de7ff32

File tree

4 files changed

+29
-7
lines changed

4 files changed

+29
-7
lines changed

.github/workflows/core-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Publish Core
33
on:
44
push:
55
tags:
6-
- "v*.*.*"
6+
- "@vue-nextui/core@*.*.*"
77

88
permissions:
99
id-token: write

packages/core/README-zh_CN.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NextUI Vue Core
2+
这是一个以HeroUI为设计目标的无头Vue3组件。
3+
4+
## 功能
5+
此包聚合了所有NextUI Vue组件,以便于通过单个命名空间导出使用所有组件。它不包含`@heroui/theme`,因此具有高度的灵活性和可定制性。
6+
7+
### 集成`@heroui/theme`
8+
通过此包和`@heroui/theme`的集成来获得基于Vue3的HeroUI效果。
9+
10+
### 自定义主题
11+
假设你想要自定义HeroUI主题,你可以轻松将你的主题和此包集成,而不用担心耦合问题。

packages/core/README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# NextUI Vue Core
2+
This is a headless Vue3 component designed with HeroUI in mind.
3+
4+
## Features
5+
This package aggregates all NextUI Vue components, allowing for easy use through a single namespace export. It does not include `@heroui/theme`, allowing for high flexibility and customizability.
6+
7+
### Integrating `@heroui/theme`
8+
Get the Vue3-based HeroUI effect by integrating this package with `@heroui/theme`.
9+
10+
### Custom Themes
11+
If you want a custom HeroUI theme, you can easily integrate your theme with this package without worrying about coupling issues.

packages/core/package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
{
2-
"name": "nextui-vue",
2+
"name": "@vue-nextui/core",
33
"type": "module",
44
"version": "0.0.15",
55
"publishConfig": {
6-
"access": "public"
6+
"access": "public",
7+
"registry": "https://registry.npmjs.com/"
78
},
89
"author": {
910
"name": "hotdog",
@@ -25,13 +26,12 @@
2526
"ui framework",
2627
"tailwindcss"
2728
],
28-
"exports": {
29-
".": "./src/index.ts"
30-
},
29+
"exports": "./dist/index.js",
30+
"types": "./dist/index.d.ts",
3131
"scripts": {
3232
"build": "pnpm -w build:cmp && tsdown --dts --minify",
3333
"dev": "tsdown -w",
34-
"bump": "pnpm build && bumpp --tag v --sign"
34+
"bump": "pnpm build && bumpp --tag @vue-nextui/core@ --sign"
3535
},
3636
"devDependencies": {
3737
"unplugin-vue": "catalog:prod",

0 commit comments

Comments
 (0)