This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@vcsuite/ui-components

0.1.15 • Public • Published

VCS ui-components

Part of the VC Map Project

A set of UI components based on Vuetify.

Project setup

  1. Create project with vue cli
    • (select sass dart as css-preprocessor (also added by vuetify))
  2. vue add vuetify
  3. npm i -S @vcsuite/ui-components
  4. Within your vite config add src/styles/variables.scss to css
{
  css: {
    preprocessorOptions: {
      sass: {
        additionalData: "\n@import './node_modules/@vcsuite/ui-components/src/styles/variables.scss'\n"
      }
    }
  }
}
  1. For hot reload off changes to variables.scss add to your vite config
{
  optimizeDeps: {
    exclude: ['@vcsuite/ui-components']
  }
  server: {
    watch: {
      ignored: ['!**/node_modules/@vcsuite/ui-components/**']
    }
  }
}

Styles

This ui components library comes with an individual style on top of vuetify, customized by overwriting styles and extended by own style definitions. The style is defined on three levels following this order:

  1. vuetify API, e.g. make use of properties like dense, outlined
  2. sass variables
  1. scoped css within single components

Running & Writing Tests

To run tests use npm run test, or coverage for coverage. Tests are run with vitest. Use BDD style test definitions.

Working with snapshots

Snapshots are great for testing UI components. But:

  • to create a snapshot, simply use expect(foo).toMatchSnapshot() and check in the created snapshot file.
  • do not run your watched tests with --update.
  • be sure to only update snapshots you are actually working on.
  • to update a snapshot, run npm run test -- $FILE_NAME --run --update

Readme

Keywords

none

Package Sidebar

Install

npm i @vcsuite/ui-components

Weekly Downloads

0

Version

0.1.15

License

MIT

Unpacked Size

163 kB

Total Files

110

Last publish

Collaborators

  • bkuster
  • jbolling