speckle-server/packages/ui-components-nuxt
Kristaps Fabians Geikins 83d8035dc2
chore: upgrade to eslint 9 (#2348)
* root + server

* frontend

* frontend-2

* dui3

* dui3

* tailwind theme

* ui-components

* preview service

* viewer

* viewer-sandbox

* fileimport-service

* webhook service

* objectloader

* shared

* ui-components-nuxt

* WIP full config

* WIP full linter

* eslint projectwide util

* minor fix

* removing redundant ci

* clean up test errors

* fixed prettier formatting

* CI improvements

* TSC lint fix

* 'buildBatch' needs to be async since some batch types (like Text) require it. Removed a disabled liniting rule from ObjLoader

* removed unnecessary void

---------

Co-authored-by: AlexandruPopovici <alexandrupopoviciioan@gmail.com>
2024-06-12 14:38:02 +03:00
..
README.md chore(fe2): upgrade to nuxt 3.8.2 (#1887) 2023-11-29 10:22:17 +02:00
eslint.config.mjs chore: upgrade to eslint 9 (#2348) 2024-06-12 14:38:02 +03:00
index.js feat: moved various LayoutXXX components to ui-components (#1607) 2023-06-08 09:12:09 +03:00
package.json chore: upgrade to eslint 9 (#2348) 2024-06-12 14:38:02 +03:00

README.md

ui-components-nuxt

Nuxt v3 module that sets up @speckle/ui-components auto-importing like any other components you might have in your ./components folder. You also get properly typed components in your templates if you use Volar.

Setup

  1. Make sure you've got @speckle/ui-components installed and set up

  2. Install @speckle/ui-components-nuxt and add it to your nuxt modules in nuxt.config.ts

  3. Add the following to your build.transpile array in your nuxt config:

// nuxt.config.js
export default {
  build: {
    transpile: [
      '@headlessui/vue',
      /^@heroicons\/vue/,
      '@vueuse/core',
      '@vueuse/shared',
      '@speckle/ui-components',
      'v3-infinite-loading'
    ]
  }
}
  1. Add the following to your vite.resolve.dedupe array in your nuxt config:
// nuxt.config.js
export default {
  vite: {
    resolve: {
      dedupe: ['vee-validate']
    }
  }
}

This will ensure that some dependencies are transpiled properly so that they work correctly both during SSR & CSR.