From 1c07142bcea8a6b281b5e2983c65a925c7bb7207 Mon Sep 17 00:00:00 2001 From: Amir Raminfar Date: Fri, 10 Mar 2023 14:09:57 -0800 Subject: [PATCH] Adds workspace --- docs/.vitepress/config.ts | 19 ++- docs/package.json | 7 + pnpm-lock.yaml | 280 +++++++++++++++++++------------------- pnpm-workspace.yaml | 2 + 4 files changed, 170 insertions(+), 138 deletions(-) create mode 100644 docs/package.json create mode 100644 pnpm-workspace.yaml diff --git a/docs/.vitepress/config.ts b/docs/.vitepress/config.ts index cfe27ada..279a35f4 100644 --- a/docs/.vitepress/config.ts +++ b/docs/.vitepress/config.ts @@ -1,5 +1,9 @@ +import { createRequire } from "module"; import { defineConfig } from "vitepress"; +const require = createRequire(import.meta.url); +const pkg = require("dozzle/package.json"); + export default defineConfig({ lang: "en-US", title: "Dozzle", @@ -28,7 +32,20 @@ export default defineConfig({ }, nav: [ { text: "Home", link: "/" }, - { text: "Guide", link: "/guide/what-is-dozzle" }, + { text: "Guide", link: "/guide/what-is-dozzle", activeMatch: "/guide/" }, + { + text: `v${pkg.version}`, + items: [ + { + text: "Releases", + link: "https://github.com/amir20/dozzle/releases", + }, + { + text: "New Issue", + link: "https://github.com/amir20/dozzle/issues/new/choose", + }, + ], + }, ], sidebar: [ { diff --git a/docs/package.json b/docs/package.json new file mode 100644 index 00000000..81e01901 --- /dev/null +++ b/docs/package.json @@ -0,0 +1,7 @@ +{ + "private": true, + "type": "module", + "devDependencies": { + "dozzle": "workspace:*" + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 1c95ddd3..b0cd5e03 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -1,144 +1,150 @@ lockfileVersion: 5.4 -specifiers: - '@iconify-json/carbon': ^1.1.16 - '@iconify-json/cil': ^1.1.4 - '@iconify-json/mdi': ^1.1.49 - '@iconify-json/mdi-light': ^1.1.6 - '@iconify-json/octicon': ^1.1.35 - '@intlify/unplugin-vue-i18n': ^0.9.1 - '@oruga-ui/oruga-next': ^0.5.10 - '@oruga-ui/theme-bulma': ^0.2.9 - '@pinia/testing': ^0.0.15 - '@types/d3-array': ^3.0.4 - '@types/d3-ease': ^3.0.0 - '@types/d3-scale': ^4.0.3 - '@types/d3-selection': ^3.0.4 - '@types/d3-shape': ^3.1.1 - '@types/d3-transition': ^3.0.3 - '@types/lodash.debounce': ^4.0.7 - '@types/node': ^18.14.6 - '@types/semver': ^7.3.13 - '@unocss/preset-typography': ^0.50.4 - '@unocss/reset': ^0.50.4 - '@unocss/transformer-directives': ^0.50.4 - '@vitejs/plugin-vue': 4.0.0 - '@vue/compiler-sfc': ^3.2.47 - '@vue/test-utils': ^2.3.0 - '@vueuse/core': ^9.13.0 - '@vueuse/integrations': ^9.13.0 - '@vueuse/router': ^9.13.0 - ansi-to-html: ^0.7.2 - bulma: ^0.9.4 - c8: ^7.13.0 - d3-array: ^3.2.2 - d3-ease: ^3.0.1 - d3-scale: ^4.0.2 - d3-selection: ^3.0.0 - d3-shape: ^3.2.0 - d3-transition: ^3.0.1 - date-fns: ^2.29.3 - eventsourcemock: ^2.0.0 - fuse.js: ^6.6.2 - husky: ^8.0.3 - jest-serializer-vue: ^3.0.0 - jsdom: ^21.1.0 - lint-staged: ^13.1.2 - lodash.debounce: ^4.0.8 - npm-run-all: ^4.1.5 - pinia: ^2.0.33 - prettier: ^2.8.4 - release-it: ^15.7.0 - sass: ^1.58.3 - semver: ^7.3.8 - splitpanes: ^3.1.5 - ts-node: ^10.9.1 - typescript: ^4.9.5 - unocss: ^0.50.4 - unplugin-auto-import: ^0.15.1 - unplugin-icons: ^0.15.3 - unplugin-vue-components: ^0.24.1 - vite: 4.1.4 - vite-plugin-pages: ^0.28.0 - vite-plugin-vue-layouts: ^0.8.0 - vitepress: 1.0.0-alpha.51 - vitest: ^0.29.2 - vue: ^3.2.47 - vue-i18n: ^9.2.2 - vue-router: ^4.1.6 - vue-tsc: ^1.2.0 +importers: -dependencies: - '@iconify-json/carbon': 1.1.16 - '@iconify-json/cil': 1.1.4 - '@iconify-json/mdi': 1.1.49 - '@iconify-json/mdi-light': 1.1.6 - '@iconify-json/octicon': 1.1.35 - '@intlify/unplugin-vue-i18n': 0.9.1_vue-i18n@9.2.2 - '@oruga-ui/oruga-next': 0.5.10_vue@3.2.47 - '@oruga-ui/theme-bulma': 0.2.9 - '@vueuse/core': 9.13.0_vue@3.2.47 - '@vueuse/integrations': 9.13.0_fuse.js@6.6.2+vue@3.2.47 - '@vueuse/router': 9.13.0_lavcef455lp3wtm2mcdrwhgymm - ansi-to-html: 0.7.2 - bulma: 0.9.4 - d3-array: 3.2.2 - d3-ease: 3.0.1 - d3-scale: 4.0.2 - d3-selection: 3.0.0 - d3-shape: 3.2.0 - d3-transition: 3.0.1_d3-selection@3.0.0 - date-fns: 2.29.3 - fuse.js: 6.6.2 - lodash.debounce: 4.0.8 - pinia: 2.0.33_hmuptsblhheur2tugfgucj7gc4 - semver: 7.3.8 - splitpanes: 3.1.5 - vue: 3.2.47 - vue-i18n: 9.2.2_vue@3.2.47 - vue-router: 4.1.6_vue@3.2.47 + .: + specifiers: + '@iconify-json/carbon': ^1.1.16 + '@iconify-json/cil': ^1.1.4 + '@iconify-json/mdi': ^1.1.49 + '@iconify-json/mdi-light': ^1.1.6 + '@iconify-json/octicon': ^1.1.35 + '@intlify/unplugin-vue-i18n': ^0.9.1 + '@oruga-ui/oruga-next': ^0.5.10 + '@oruga-ui/theme-bulma': ^0.2.9 + '@pinia/testing': ^0.0.15 + '@types/d3-array': ^3.0.4 + '@types/d3-ease': ^3.0.0 + '@types/d3-scale': ^4.0.3 + '@types/d3-selection': ^3.0.4 + '@types/d3-shape': ^3.1.1 + '@types/d3-transition': ^3.0.3 + '@types/lodash.debounce': ^4.0.7 + '@types/node': ^18.14.6 + '@types/semver': ^7.3.13 + '@unocss/preset-typography': ^0.50.4 + '@unocss/reset': ^0.50.4 + '@unocss/transformer-directives': ^0.50.4 + '@vitejs/plugin-vue': 4.0.0 + '@vue/compiler-sfc': ^3.2.47 + '@vue/test-utils': ^2.3.0 + '@vueuse/core': ^9.13.0 + '@vueuse/integrations': ^9.13.0 + '@vueuse/router': ^9.13.0 + ansi-to-html: ^0.7.2 + bulma: ^0.9.4 + c8: ^7.13.0 + d3-array: ^3.2.2 + d3-ease: ^3.0.1 + d3-scale: ^4.0.2 + d3-selection: ^3.0.0 + d3-shape: ^3.2.0 + d3-transition: ^3.0.1 + date-fns: ^2.29.3 + eventsourcemock: ^2.0.0 + fuse.js: ^6.6.2 + husky: ^8.0.3 + jest-serializer-vue: ^3.0.0 + jsdom: ^21.1.0 + lint-staged: ^13.1.2 + lodash.debounce: ^4.0.8 + npm-run-all: ^4.1.5 + pinia: ^2.0.33 + prettier: ^2.8.4 + release-it: ^15.7.0 + sass: ^1.58.3 + semver: ^7.3.8 + splitpanes: ^3.1.5 + ts-node: ^10.9.1 + typescript: ^4.9.5 + unocss: ^0.50.4 + unplugin-auto-import: ^0.15.1 + unplugin-icons: ^0.15.3 + unplugin-vue-components: ^0.24.1 + vite: 4.1.4 + vite-plugin-pages: ^0.28.0 + vite-plugin-vue-layouts: ^0.8.0 + vitepress: 1.0.0-alpha.51 + vitest: ^0.29.2 + vue: ^3.2.47 + vue-i18n: ^9.2.2 + vue-router: ^4.1.6 + vue-tsc: ^1.2.0 + dependencies: + '@iconify-json/carbon': 1.1.16 + '@iconify-json/cil': 1.1.4 + '@iconify-json/mdi': 1.1.49 + '@iconify-json/mdi-light': 1.1.6 + '@iconify-json/octicon': 1.1.35 + '@intlify/unplugin-vue-i18n': 0.9.1_vue-i18n@9.2.2 + '@oruga-ui/oruga-next': 0.5.10_vue@3.2.47 + '@oruga-ui/theme-bulma': 0.2.9 + '@vueuse/core': 9.13.0_vue@3.2.47 + '@vueuse/integrations': 9.13.0_fuse.js@6.6.2+vue@3.2.47 + '@vueuse/router': 9.13.0_lavcef455lp3wtm2mcdrwhgymm + ansi-to-html: 0.7.2 + bulma: 0.9.4 + d3-array: 3.2.2 + d3-ease: 3.0.1 + d3-scale: 4.0.2 + d3-selection: 3.0.0 + d3-shape: 3.2.0 + d3-transition: 3.0.1_d3-selection@3.0.0 + date-fns: 2.29.3 + fuse.js: 6.6.2 + lodash.debounce: 4.0.8 + pinia: 2.0.33_hmuptsblhheur2tugfgucj7gc4 + semver: 7.3.8 + splitpanes: 3.1.5 + vue: 3.2.47 + vue-i18n: 9.2.2_vue@3.2.47 + vue-router: 4.1.6_vue@3.2.47 + optionalDependencies: + '@unocss/preset-typography': 0.50.4 + '@unocss/reset': 0.50.4 + '@unocss/transformer-directives': 0.50.4 + unocss: 0.50.4_vite@4.1.4 + vitepress: 1.0.0-alpha.51_tbu6ibuzbmq2zng52hwcifltki + devDependencies: + '@pinia/testing': 0.0.15_pinia@2.0.33+vue@3.2.47 + '@types/d3-array': 3.0.4 + '@types/d3-ease': 3.0.0 + '@types/d3-scale': 4.0.3 + '@types/d3-selection': 3.0.4 + '@types/d3-shape': 3.1.1 + '@types/d3-transition': 3.0.3 + '@types/lodash.debounce': 4.0.7 + '@types/node': 18.14.6 + '@types/semver': 7.3.13 + '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47 + '@vue/compiler-sfc': 3.2.47 + '@vue/test-utils': 2.3.0_vue@3.2.47 + c8: 7.13.0 + eventsourcemock: 2.0.0 + husky: 8.0.3 + jest-serializer-vue: 3.1.0 + jsdom: 21.1.0 + lint-staged: 13.1.2 + npm-run-all: 4.1.5 + prettier: 2.8.4 + release-it: 15.7.0 + sass: 1.58.3 + ts-node: 10.9.1_alpjt73dvgv6kni625hu7f2l4m + typescript: 4.9.5 + unplugin-auto-import: 0.15.1_@vueuse+core@9.13.0 + unplugin-icons: 0.15.3_@vue+compiler-sfc@3.2.47 + unplugin-vue-components: 0.24.1_vue@3.2.47 + vite: 4.1.4_tbu6ibuzbmq2zng52hwcifltki + vite-plugin-pages: 0.28.0_7qibpnl744oravj7yuajw4vysm + vite-plugin-vue-layouts: 0.8.0_s7i5cn7xswa4rctkzerr3e4clm + vitest: 0.29.2_jsdom@21.1.0+sass@1.58.3 + vue-tsc: 1.2.0_typescript@4.9.5 -optionalDependencies: - '@unocss/preset-typography': 0.50.4 - '@unocss/reset': 0.50.4 - '@unocss/transformer-directives': 0.50.4 - unocss: 0.50.4_vite@4.1.4 - vitepress: 1.0.0-alpha.51_tbu6ibuzbmq2zng52hwcifltki - -devDependencies: - '@pinia/testing': 0.0.15_pinia@2.0.33+vue@3.2.47 - '@types/d3-array': 3.0.4 - '@types/d3-ease': 3.0.0 - '@types/d3-scale': 4.0.3 - '@types/d3-selection': 3.0.4 - '@types/d3-shape': 3.1.1 - '@types/d3-transition': 3.0.3 - '@types/lodash.debounce': 4.0.7 - '@types/node': 18.14.6 - '@types/semver': 7.3.13 - '@vitejs/plugin-vue': 4.0.0_vite@4.1.4+vue@3.2.47 - '@vue/compiler-sfc': 3.2.47 - '@vue/test-utils': 2.3.0_vue@3.2.47 - c8: 7.13.0 - eventsourcemock: 2.0.0 - husky: 8.0.3 - jest-serializer-vue: 3.1.0 - jsdom: 21.1.0 - lint-staged: 13.1.2 - npm-run-all: 4.1.5 - prettier: 2.8.4 - release-it: 15.7.0 - sass: 1.58.3 - ts-node: 10.9.1_alpjt73dvgv6kni625hu7f2l4m - typescript: 4.9.5 - unplugin-auto-import: 0.15.1_@vueuse+core@9.13.0 - unplugin-icons: 0.15.3_@vue+compiler-sfc@3.2.47 - unplugin-vue-components: 0.24.1_vue@3.2.47 - vite: 4.1.4_tbu6ibuzbmq2zng52hwcifltki - vite-plugin-pages: 0.28.0_7qibpnl744oravj7yuajw4vysm - vite-plugin-vue-layouts: 0.8.0_s7i5cn7xswa4rctkzerr3e4clm - vitest: 0.29.2_jsdom@21.1.0+sass@1.58.3 - vue-tsc: 1.2.0_typescript@4.9.5 + docs: + specifiers: + dozzle: workspace:* + devDependencies: + dozzle: link:.. packages: diff --git a/pnpm-workspace.yaml b/pnpm-workspace.yaml new file mode 100644 index 00000000..28756fae --- /dev/null +++ b/pnpm-workspace.yaml @@ -0,0 +1,2 @@ +packages: + - docs