From 1a9a840ceff82ac2db5c413e939717632759a80d Mon Sep 17 00:00:00 2001 From: userquin Date: Wed, 10 Sep 2025 17:01:11 +0200 Subject: [PATCH 1/3] chore(0,paper): simplify build --- packages/0/build/tsdown.browser.config.ts | 26 -------- packages/0/build/tsdown.bundler.config.ts | 28 --------- packages/0/package.json | 44 +++----------- packages/0/tsdown.config.mts | 53 ++++++++++++++++ packages/paper/build/tsdown.browser.config.ts | 31 ---------- packages/paper/build/tsdown.bundler.config.ts | 32 ---------- packages/paper/package.json | 15 ++--- packages/paper/tsdown.config.mts | 60 +++++++++++++++++++ 8 files changed, 127 insertions(+), 162 deletions(-) delete mode 100644 packages/0/build/tsdown.browser.config.ts delete mode 100644 packages/0/build/tsdown.bundler.config.ts create mode 100644 packages/0/tsdown.config.mts delete mode 100644 packages/paper/build/tsdown.browser.config.ts delete mode 100644 packages/paper/build/tsdown.bundler.config.ts create mode 100644 packages/paper/tsdown.config.mts diff --git a/packages/0/build/tsdown.browser.config.ts b/packages/0/build/tsdown.browser.config.ts deleted file mode 100644 index e9d2acae..00000000 --- a/packages/0/build/tsdown.browser.config.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { defineConfig } from 'tsdown/config' -import { fileURLToPath } from 'node:url' -import Vue from 'unplugin-vue/rolldown' -import pkg from '../package.json' with { type: 'json' } - -export default defineConfig({ - plugins: [ - Vue({ isProduction: true }), - ], - dts: false, - define: { - __DEV__: 'false', - __VITE_LOGGER_ENABLED__: 'false', - __VUE_OPTIONS_API__: 'true', - __VUE_PROD_DEVTOOLS__: 'false', - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', - __VERSION__: JSON.stringify(pkg.version), - }, - entry: ['./src/index.ts'], - name: 'vuetify/v0', - alias: { - '@': fileURLToPath(new URL('../src', import.meta.url)), - '#v0': fileURLToPath(new URL('../../0/src', import.meta.url)), - }, - outDir: './dist/browser', -}) diff --git a/packages/0/build/tsdown.bundler.config.ts b/packages/0/build/tsdown.bundler.config.ts deleted file mode 100644 index fe364730..00000000 --- a/packages/0/build/tsdown.bundler.config.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { defineConfig } from 'tsdown/config' -import { fileURLToPath } from 'node:url' -import pkg from '../package.json' with { type: 'json' } - -import Vue from 'unplugin-vue/rolldown' - -export default defineConfig({ - plugins: [ - Vue({ isProduction: true }), - ], - dts: { - vue: true, - }, - define: { - __DEV__: 'process.env.NODE_ENV !== \'production\'', - __VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED', - __VUE_OPTIONS_API__: 'true', - __VUE_PROD_DEVTOOLS__: 'false', - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', - __VERSION__: JSON.stringify(pkg.version), - }, - entry: ['./src/*/index.ts', './src/index.ts'], - name: 'vuetify/v0', - alias: { - '@': fileURLToPath(new URL('../src', import.meta.url)), - '#v0': fileURLToPath(new URL('../../0/src', import.meta.url)), - }, -}) diff --git a/packages/0/package.json b/packages/0/package.json index a5bd6007..fb5eb9e6 100644 --- a/packages/0/package.json +++ b/packages/0/package.json @@ -16,9 +16,7 @@ "directory": "packages/0" }, "scripts": { - "build": "pnpm build:bundler && pnpm build:browser", - "build:bundler": "tsdown --config build/tsdown.bundler.config.ts", - "build:browser": "tsdown --config build/tsdown.browser.config.ts", + "build": "tsdown", "typecheck": "vue-tsc --noEmit --incremental" }, "exports": { @@ -97,42 +95,18 @@ }, "publishConfig": { "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./browser": { "types": "./dist/index.d.ts", "import": "./dist/browser/index.js" }, - "./components": { - "types": "./dist/components/index.d.ts", - "import": "./dist/components/index.js" - }, - "./composables": { - "types": "./dist/composables/index.d.ts", - "import": "./dist/composables/index.js" - }, - "./factories": { - "types": "./dist/factories/index.d.ts", - "import": "./dist/factories/index.js" - }, - "./transformers": { - "types": "./dist/transformers/index.d.ts", - "import": "./dist/transformers/index.js" - }, - "./constants": { - "types": "./dist/constants/index.d.ts", - "import": "./dist/constants/index.js" - }, - "./types": { - "types": "./dist/types/index.d.ts", - "import": "./dist/types/index.js" - }, - "./utilities": { - "types": "./dist/utilities/index.d.ts", - "import": "./dist/utilities/index.js" - } + "./components": "./dist/components/index.js", + "./composables": "./dist/composables/index.js", + "./factories": "./dist/factories/index.js", + "./transformers": "./dist/transformers/index.js", + "./constants": "./dist/constants/index.js", + "./types": "./dist/types/index.js", + "./utilities": "./dist/utilities/index.js" } }, "peerDependencies": { diff --git a/packages/0/tsdown.config.mts b/packages/0/tsdown.config.mts new file mode 100644 index 00000000..27893a64 --- /dev/null +++ b/packages/0/tsdown.config.mts @@ -0,0 +1,53 @@ +import { defineConfig } from 'tsdown/config' +import { fileURLToPath } from 'node:url' +import pkg from '../package.json' with { type: 'json' } + +import Vue from 'unplugin-vue/rolldown' + +const at = fileURLToPath(new URL('../src', import.meta.url)) +const v0 = fileURLToPath(new URL('../../0/src', import.meta.url)) +const __VERSION__ = JSON.stringify(pkg.version) + +export default defineConfig([{ + plugins: [ + Vue({ isProduction: true }), + ], + platform: 'browser', + dts: false, + define: { + __DEV__: 'false', + __VITE_LOGGER_ENABLED__: 'false', + __VUE_OPTIONS_API__: 'true', + __VUE_PROD_DEVTOOLS__: 'false', + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', + __VERSION__, + }, + entry: ['./src/index.ts'], + name: 'vuetify/v0', + alias: { + '@': at, + '#v0': v0, + }, + outDir: './dist/browser', +}, { + plugins: [ + Vue({ isProduction: true }), + ], + dts: { + vue: true, + }, + define: { + __DEV__: 'process.env.NODE_ENV !== \'production\'', + __VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED', + __VUE_OPTIONS_API__: 'true', + __VUE_PROD_DEVTOOLS__: 'false', + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', + __VERSION__, + }, + entry: ['./src/*/index.ts', './src/index.ts'], + name: 'vuetify/v0', + alias: { + '@': at, + '#v0': v0, + }, +}]) diff --git a/packages/paper/build/tsdown.browser.config.ts b/packages/paper/build/tsdown.browser.config.ts deleted file mode 100644 index 2e557e4c..00000000 --- a/packages/paper/build/tsdown.browser.config.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { defineConfig } from 'tsdown/config' -import { fileURLToPath } from 'node:url' -import sass from 'rollup-plugin-sass' -import pkg from '../package.json' with { type: 'json' } - -import Vue from 'unplugin-vue/rolldown' - -export default defineConfig({ - plugins: [ - Vue({ isProduction: true }), - sass({ - api: 'modern', - output: 'dist/index.css', - }), - ], - dts: false, - define: { - __DEV__: 'false', - __VITE_LOGGER_ENABLED__: 'false', - __VUE_OPTIONS_API__: 'true', - __VUE_PROD_DEVTOOLS__: 'false', - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', - __VERSION__: JSON.stringify(pkg.version), - }, - name: 'vuetify/paper', - alias: { - '#v0': fileURLToPath(new URL('../../0/src', import.meta.url)), - '#paper': fileURLToPath(new URL('../src', import.meta.url)), - }, - outDir: './dist/browser', -}) diff --git a/packages/paper/build/tsdown.bundler.config.ts b/packages/paper/build/tsdown.bundler.config.ts deleted file mode 100644 index e71f6f0e..00000000 --- a/packages/paper/build/tsdown.bundler.config.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { defineConfig } from 'tsdown/config' -import { fileURLToPath } from 'node:url' -import sass from 'rollup-plugin-sass' -import pkg from '../package.json' with { type: 'json' } - -import Vue from 'unplugin-vue/rolldown' - -export default defineConfig({ - plugins: [ - Vue({ isProduction: true }), - sass({ - api: 'modern', - output: 'dist/index.css', - }), - ], - dts: { - vue: true, - }, - define: { - __DEV__: 'process.env.NODE_ENV !== \'production\'', - __VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED', - __VUE_OPTIONS_API__: 'true', - __VUE_PROD_DEVTOOLS__: 'false', - __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', - __VERSION__: JSON.stringify(pkg.version), - }, - name: 'vuetify/paper', - alias: { - '#v0': fileURLToPath(new URL('../../0/src', import.meta.url)), - '#paper': fileURLToPath(new URL('../src', import.meta.url)), - }, -}) diff --git a/packages/paper/package.json b/packages/paper/package.json index 2e4cea87..33df5b6b 100644 --- a/packages/paper/package.json +++ b/packages/paper/package.json @@ -3,9 +3,9 @@ "version": "0.0.2", "description": "Vuetify Paper", "license": "MIT", - "main": "./dist/index.mjs", - "module": "./dist/index.mjs", - "types": "./dist/index.d.mts", + "main": "./dist/index.js", + "module": "./dist/index.js", + "types": "./dist/index.d.ts", "type": "module", "files": [ "dist" @@ -16,9 +16,7 @@ "directory": "packages/paper" }, "scripts": { - "build": "pnpm build:bundler && pnpm build:browser", - "build:bundler": "tsdown --config build/tsdown.bundler.config.ts", - "build:browser": "tsdown --config build/tsdown.browser.config.ts", + "build": "tsdown", "typecheck": "vue-tsc --noEmit --incremental" }, "peerDependencies": { @@ -44,10 +42,7 @@ }, "publishConfig": { "exports": { - ".": { - "types": "./dist/index.d.ts", - "import": "./dist/index.js" - }, + ".": "./dist/index.js", "./browser": { "types": "./dist/index.d.ts", "import": "./dist/browser/index.js" diff --git a/packages/paper/tsdown.config.mts b/packages/paper/tsdown.config.mts new file mode 100644 index 00000000..34a45b97 --- /dev/null +++ b/packages/paper/tsdown.config.mts @@ -0,0 +1,60 @@ +import { defineConfig } from 'tsdown/config' +import { fileURLToPath } from 'node:url' +import sass from 'rollup-plugin-sass' +import pkg from '../package.json' with { type: 'json' } + +import Vue from 'unplugin-vue/rolldown' + +const v0 = fileURLToPath(new URL('../../0/src', import.meta.url)) +const paper = fileURLToPath(new URL('../src', import.meta.url)) +const __VERSION__ = JSON.stringify(pkg.version) + +export default defineConfig([{ + plugins: [ + Vue({ isProduction: true }), + sass({ + api: 'modern', + output: 'dist/index.css', + }), + ], + platform: 'browser', + dts: false, + define: { + __DEV__: 'false', + __VITE_LOGGER_ENABLED__: 'false', + __VUE_OPTIONS_API__: 'true', + __VUE_PROD_DEVTOOLS__: 'false', + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', + __VERSION__, + }, + name: 'vuetify/paper', + alias: { + '#v0': v0, + '#paper': paper, + }, + outDir: './dist/browser', +}, { + plugins: [ + Vue({ isProduction: true }), + sass({ + api: 'modern', + output: 'dist/index.css', + }), + ], + dts: { + vue: true, + }, + define: { + __DEV__: 'process.env.NODE_ENV !== \'production\'', + __VITE_LOGGER_ENABLED__: 'process.env.VITE_LOGGER_ENABLED', + __VUE_OPTIONS_API__: 'true', + __VUE_PROD_DEVTOOLS__: 'false', + __VUE_PROD_HYDRATION_MISMATCH_DETAILS__: 'false', + __VERSION__, + }, + name: 'vuetify/paper', + alias: { + '#v0': v0, + '#paper': paper, + }, +}]) From 3d6414bddabd7c13282853d194e1a588a26fed74 Mon Sep 17 00:00:00 2001 From: userquin Date: Wed, 10 Sep 2025 17:06:56 +0200 Subject: [PATCH 2/3] chore: update package.json import --- packages/0/tsdown.config.mts | 2 +- packages/paper/tsdown.config.mts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/0/tsdown.config.mts b/packages/0/tsdown.config.mts index 27893a64..69a36bb6 100644 --- a/packages/0/tsdown.config.mts +++ b/packages/0/tsdown.config.mts @@ -1,6 +1,6 @@ import { defineConfig } from 'tsdown/config' import { fileURLToPath } from 'node:url' -import pkg from '../package.json' with { type: 'json' } +import pkg from './package.json' with { type: 'json' } import Vue from 'unplugin-vue/rolldown' diff --git a/packages/paper/tsdown.config.mts b/packages/paper/tsdown.config.mts index 34a45b97..3553d3c6 100644 --- a/packages/paper/tsdown.config.mts +++ b/packages/paper/tsdown.config.mts @@ -1,7 +1,7 @@ import { defineConfig } from 'tsdown/config' import { fileURLToPath } from 'node:url' import sass from 'rollup-plugin-sass' -import pkg from '../package.json' with { type: 'json' } +import pkg from './package.json' with { type: 'json' } import Vue from 'unplugin-vue/rolldown' From 2430ed13dcc0143e448024cfab2fadb956b9b5fa Mon Sep 17 00:00:00 2001 From: userquin Date: Mon, 22 Sep 2025 18:55:29 +0200 Subject: [PATCH 3/3] chore: use css layout --- apps/docs/index.html | 63 +++++ apps/docs/package.json | 1 + apps/docs/src/App.vue | 10 +- apps/docs/src/components/app/AppBanner.vue | 5 +- apps/docs/src/components/app/AppBar.vue | 14 +- apps/docs/src/components/app/AppFooter.vue | 5 +- apps/docs/src/components/app/AppMain.vue | 8 +- apps/docs/src/components/app/AppNav.vue | 41 +++- apps/docs/src/main.ts | 10 + apps/docs/src/plugins/zero.ts | 4 +- apps/docs/uno.config.ts | 21 +- apps/docs/vite.config.ts | 14 ++ pnpm-lock.yaml | 256 ++++++++++++++++++++- pnpm-workspace.yaml | 1 + 14 files changed, 420 insertions(+), 33 deletions(-) diff --git a/apps/docs/index.html b/apps/docs/index.html index 1ae9fd2e..3d71734b 100644 --- a/apps/docs/index.html +++ b/apps/docs/index.html @@ -12,6 +12,69 @@ imagesizes="100vw" /> + +
diff --git a/apps/docs/package.json b/apps/docs/package.json index edf5ec1d..3a619fa8 100644 --- a/apps/docs/package.json +++ b/apps/docs/package.json @@ -15,6 +15,7 @@ "@shikijs/themes": "catalog:", "@types/markdown-it-attrs": "catalog:", "@unocss/reset": "catalog:", + "beasties": "catalog:", "markdown-it-attrs": "catalog:", "shiki": "catalog:", "unocss": "catalog:", diff --git a/apps/docs/src/App.vue b/apps/docs/src/App.vue index c0c26457..6264d3db 100644 --- a/apps/docs/src/App.vue +++ b/apps/docs/src/App.vue @@ -1,7 +1,15 @@ diff --git a/apps/docs/src/components/app/AppBar.vue b/apps/docs/src/components/app/AppBar.vue index 63387fb2..f6234d9e 100644 --- a/apps/docs/src/components/app/AppBar.vue +++ b/apps/docs/src/components/app/AppBar.vue @@ -35,12 +35,14 @@ width="128" > - + + +
diff --git a/apps/docs/src/components/app/AppFooter.vue b/apps/docs/src/components/app/AppFooter.vue index 52265780..b92846ef 100644 --- a/apps/docs/src/components/app/AppFooter.vue +++ b/apps/docs/src/components/app/AppFooter.vue @@ -13,8 +13,9 @@