quichtify
v1.15.34
Published
quichtify is a Vue 3 Library handcrafted components using latest technologies.
Downloads
3
Readme
quichtify
quichtify is a Vue 3 Library handcrafted components using latest technologies.
Using it
- Add it to your
package.json
:npm i quichtify
- Declare it to your vue app vy refactoring your
main.js
like this :
import { createApp } from 'vue';
import App from './App.vue';
import quichtify from 'quichtify';
import 'quichtify/dist/style.css';
const app = createApp(App);
app.use(quichtify);
app.mount('#app');
Library documentation
You can watch and interact with almost all of our components using our Chromatic's StorybookJs. Due to some complexity of our component and a lack of experience with Storybook, some functionnality will not work properly.
We recommand you to check the Example.vue
file of the component you need.
To preview and play with the demo of a component, simply change the path to the example component in src/App.vue
line 6. Replace QDragAndDrop
with the name of your component and run npm run dev
.
Contribute
This library is has 2 builds configurations. One for developement with a full Vue app and another for building.
When you develop you only need to setup the project like any other vue project using npm install
.
After that, you have all Vitejs CLI commands.
The dev serve will display the src/App.vue
scafold.
There is no router, the demo page need to be used only for developping. It'll never be visible by the end user.
Create new component
- Setup the project by cloning it and install dependencies using
npm install
- Create a new folder for your component in
src/components
like the example onesrc/components/QHelloWorld
: One main component (You can have multiple in one folder) and a unit testing folder ready to test you component. Pay attention to name your component in PascalCase with a "Q
" at the begining - Import your new component in
src/components/index.js
on top of// TODO: 2
- Declare your new component in
src/components/index.js
asQHelloWorld
on top of// TODO: 3
- Run development server using
npm run dev
and voila ! :D
Test your component insrc/App.vue
and you favorite browser at http://localhost:3000 (usually) - Update the example story copied with the
QHelloWorld
previously to be able to play with in StorybookJs. FollowTODO
upper than 6. - Test your story in Storybook UI using your browser and this command :
npm run storybook
- Remove all
TODO
from your new files - Increment version number using
npm version minor
for new component ornpm version patch
for a bug fix - Create a pretty pull request to be accepted 😉
Basic commands
Project Setup
npm install
Compile and Hot-Reload for Development
npm run dev
Compile and Minify for Production
npm run build
Run Unit Tests with Vitest
npm run test:unit
Run End-to-End Tests with Cypress
npm run build
npm run test:e2e # or `npm run test:e2e:ci` for headless testing
Lint with ESLint
npm run lint