npm install
npm run serve
npm run storybook
npm run build
./deploy.sh
Storybook allows you to develop Vue components (and composite components) in isolation from any integration. I propose the following workflow when designing and implementing a new component:
- Create a new storybook entry for the component
- Define what the new component is meant to do
- Create the component (shellcode) and include it in the new story
- Implement the code
- Storybook should show the new component's props, slots, and events in both the
Controls
andDocs
tab
To make components reusable per client there are two avenues one could follow.
- Publish all the components to npm/private npm repo which you could then install via NPM install per client repo
- Have a mono repo with a master branch and client branches. All changes made to components need to be merged into master and changes made to client branches should stay out of the master branch.
Option 2 seems better. This is just an opinion.
- ESLint
- Prettier - Code formatter
- vscode-icons
- Vue VSCode Snippets
- MDX