0.0.11 • Published 3 years ago
@michaelpumo/components-nuxt v0.0.11
Features
- ⚡️ Built with Vite to be super fast: https://vitejs.dev
- 🧪 Unit testing with Vitest and Vue Test Utils: https://vitest.dev
- ⚙️ ESLint, Prettier and TypeScript.
- 🤣 Uses NPM.
Commands
# Install dependencies
$ npm install
# Serve with hot reload at localhost:3000
$ npm run dev
# Unit test components
$ npm run test
# Build library for SSR (Nuxt consumption)
$ npm run build
# Publish to NPM (requires login / 2FA)
$ npm publish
Use the library in Nuxt projects
# Install dependency with filthy yarn (will be @greggs at some point)
$ yarn add @michaelpumo/components-vue
Then import whatever component has been integrated into the library (at this time of writing, it's simply the <Image />
component for a proof of concept).
# Use 'as' to keep inline with current codebase (if needed)
import { Image as ImageService } from '@michaelpumo/components-vue'
More to come / to do...
- Integrate additional components from the existing corporate site.
- Add Storybook into the library site for easy visual testing and preview: https://storybook.js.org
- How to handle Tailwind config / Pinia store from the library?