quichtify is a Vue 3 Library handcrafted components using latest technologies.
- Add it to your
package.json:npm i quichtify - Declare it to your vue app vy refactoring your
main.jslike 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');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.
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.
- Setup the project by cloning it and install dependencies using
npm install - Create a new folder for your component in
src/componentslike 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.json top of// TODO: 2 - Declare your new component in
src/components/index.jsasQHelloWorldon top of// TODO: 3 - Run development server using
npm run devand voila ! :D
Test your component insrc/App.vueand you favorite browser at http://localhost:3000 (usually) - Update the example story copied with the
QHelloWorldpreviously to be able to play with in StorybookJs. FollowTODOupper than 6. - Test your story in Storybook UI using your browser and this command :
npm run storybook - Remove all
TODOfrom your new files - Increment version number using
npm version minorfor new component ornpm version patchfor a bug fix - Create a pretty pull request to be accepted 😉
npm installnpm run devnpm run buildRun Unit Tests with Vitest
npm run test:unitRun End-to-End Tests with Cypress
npm run build
npm run test:e2e # or `npm run test:e2e:ci` for headless testingLint with ESLint
npm run lint