@karnama/vueish
v0.22.0
Published
Vue UI Library
Downloads
5
Readme
vueish
Vue UI Library
:warning: This package is not production ready!
Install:
- run
npm i vueish
Contribution
Adding features
Component
- create a folder in the
src/components
folder aptly named - create a
.vue
file that starts withUI
e.g.:UITable.vue
Directive
- create a folder in the
src/directives
folder aptly named - create an
index.ts
file in the created folder.
Then add or update test to cover the new logic. The test file should be placed next to the source code in a file that is named the same but appended with test
in the name. (UITable.test.ts
)
To customise the web-types.json generated, place a web-types.ts
file next to your source code and set the appropriate default export
error like
failed to load config from /Users/my-user/Web/vueish/vite.config.js
error when starting dev server:
Error: The service was stopped
can be fixed by running node node_modules/esbuild/install
Testing
snapshot testing
- Snapshots should be created/tested when there's a significant change in the markup such as v-if and v-for statements.
- The snapshot should include the expected most frequent use-case meaning: props and slots should be included where applicable.