Skip to content

Commit 362bb31

Browse files
committed
feat: add new package for full-build
1 parent 81cdd1e commit 362bb31

File tree

9 files changed

+561
-32
lines changed

9 files changed

+561
-32
lines changed

.github/workflows/nextui-publish.yml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: Publish NextUI Vue
2+
3+
on:
4+
push:
5+
tags:
6+
- "v*.*.*"
7+
8+
permissions:
9+
id-token: write
10+
contents: read
11+
12+
jobs:
13+
publish:
14+
runs-on: ubuntu-latest
15+
defaults:
16+
run:
17+
working-directory: "packages/nextui-vue"
18+
19+
steps:
20+
- name: Checkout
21+
uses: actions/checkout@v4
22+
with:
23+
fetch-depth: 0
24+
25+
- name: Setup pnpm
26+
uses: pnpm/action-setup@v4
27+
28+
- name: Setup nodejs
29+
uses: actions/setup-node@v4
30+
with:
31+
cache: "pnpm"
32+
node-version: "22"
33+
registry-url: "https://registry.npmjs.org"
34+
35+
- name: Install dependencies
36+
run: pnpm install
37+
38+
- name: Build
39+
run: pnpm run build
40+
41+
- name: Update npm
42+
run: npm install -g npm@latest
43+
44+
- name: Publish to npm
45+
run: pnpm publish --tag latest --no-git-checks

packages/nextui-vue/index.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
import "@vue-nextui/core";

packages/nextui-vue/package.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"name": "nextui-vue",
3+
"type": "module",
4+
"version": "0.0.15",
5+
"publishConfig": {
6+
"access": "public",
7+
"registry": "https://registry.npmjs.com/"
8+
},
9+
"author": {
10+
"name": "hotdog",
11+
"email": "hotdogc1017@gmail.com",
12+
"url": "https://github.com/hotdogc1017"
13+
},
14+
"license": "MIT",
15+
"repository": "https://github.com/nextui-vue/nextui-vue",
16+
"bugs": {
17+
"url": "https://github.com/hotdogc1017/nextui-vue/issues"
18+
},
19+
"files": [
20+
"dist"
21+
],
22+
"keywords": [
23+
"nextui",
24+
"vue",
25+
"ui",
26+
"ui framework",
27+
"tailwindcss"
28+
],
29+
"exports": {
30+
".": "./dist/index.js",
31+
"./styles": "./dist/index.css"
32+
},
33+
"types": "./dist/index.d.ts",
34+
"scripts": {
35+
"build": "pnpm -w build:cmp && pnpm build:only",
36+
"build:only": "vite build --minify",
37+
"dev": "vite build -w",
38+
"bump": "pnpm build && bumpp --tag v --sign"
39+
},
40+
"devDependencies": {
41+
"@heroui/theme": "catalog:prod",
42+
"@tailwindcss/vite": "catalog:prod",
43+
"@vitejs/plugin-vue": "catalog:prod",
44+
"@vue-nextui/core": "workspace: *",
45+
"tailwindcss": "catalog:prod",
46+
"vite": "catalog:prod",
47+
"vite-plugin-dts": "^4.5.4"
48+
}
49+
}

packages/nextui-vue/src/heroui.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { heroui } from "@heroui/theme";
2+
3+
export default heroui();

packages/nextui-vue/src/index.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
@source "../node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}";
2+
@plugin "./heroui.ts";
3+
@custom-variant dark (&:is(.dark *));

packages/nextui-vue/src/index.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import "./index.css";
2+
3+
export * from "@vue-nextui/core";

packages/nextui-vue/tsconfig.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"compilerOptions": {
3+
"baseUrl": ".",
4+
"module": "ESNext",
5+
"moduleResolution": "bundler",
6+
// See https://www.typescriptlang.org/tsconfig/#allowSyntheticDefaultImports
7+
"allowSyntheticDefaultImports": true
8+
},
9+
"include": ["./src/**/*"]
10+
}

packages/nextui-vue/vite.config.ts

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
import { defineConfig } from "vite";
2+
import vue from "@vitejs/plugin-vue";
3+
import tailwindcss from "@tailwindcss/vite";
4+
import dts from "vite-plugin-dts";
5+
6+
export default defineConfig({
7+
plugins: [vue(), tailwindcss(), dts({ include: ["src/index.ts"] })],
8+
build: {
9+
lib: {
10+
entry: "src/index.ts",
11+
fileName: "index",
12+
formats: ["es"],
13+
},
14+
rollupOptions: {
15+
external: ["vue"],
16+
},
17+
},
18+
});

0 commit comments

Comments
 (0)