Skip to content
Snippets Groups Projects
Commit d60eb414 authored by Ciarán Ainsworth's avatar Ciarán Ainsworth
Browse files

Merge branch 'wvffle/peer-dependencies' into 'main'

Add external dependencies as peer dependencies

See merge request funkwhale/vui!7
parents fb48712d 0e51fb09
Branches
Tags
1 merge request!7Add external dependencies as peer dependencies
Pipeline #23919 passed
......@@ -4,6 +4,17 @@ The Funkwhale design component library is a collection of reusable UI components
Check out [the documentation](https://ui.funkwhale.audio) for information on how each component works and to see a live preview.
## Dependencies
This library depends on the following external packages:
- [`vue`](https://www.npmjs.com/package/vue)
- [`vue-router`](https://www.npmjs.com/package/vue-router)
- [`vue-i18n`](https://www.npmjs.com/package/vue-i18n)
- [`@vueuse/core`](https://www.npmjs.com/package/@vueuse/core)
You must install these packages for all components to work correctly.
## Contribute to development
This project welcomes contributions! To get started make sure you have the following:
......
......@@ -26,11 +26,9 @@
"docs:serve": "vitepress serve docs"
},
"dependencies": {
"@vueuse/core": "^9.2.0",
"dompurify": "^2.4.0",
"showdown": "^2.1.0",
"transliteration": "^2.3.5",
"vue": "^3.2.38"
"transliteration": "^2.3.5"
},
"devDependencies": {
"@modyfi/vite-plugin-yaml": "^1.0.3",
......@@ -40,6 +38,7 @@
"@vitest/coverage-c8": "^0.22.1",
"@vue/test-utils": "^2.0.2",
"@vue/tsconfig": "^0.1.3",
"@vueuse/core": "^9.3.0",
"bootstrap-icons": "^1.9.1",
"jsdom": "^20.0.0",
"sass": "^1.54.8",
......@@ -48,8 +47,15 @@
"vite-plugin-dts": "^1.6.4",
"vitepress": "^1.0.0-alpha.13",
"vitest": "^0.22.1",
"vue-i18n": "9",
"vue": "^3.2.40",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.5",
"vue-tsc": "^0.40.6"
},
"peerDependencies": {
"@vueuse/core": "^9.3.0",
"vue": "^3.2.40",
"vue-i18n": "^9.2.2",
"vue-router": "^4.1.5"
}
}
......@@ -38,7 +38,7 @@ export default defineConfig(() => ({
fileName: 'vui'
},
rollupOptions: {
external: ['vue', 'vue-i18n', '@vueuse/core'],
external: ['vue', 'vue-i18n', '@vueuse/core', 'vue-router'],
output: {
exports: 'named',
globals: {
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment