A simple component library based on Vue 3, SASS and Tailwind CSS MCL uses vite as bundler
pnpm install
pnpm run story:dev
pnpm run package:create
git add . --or-- git add <file-name>
pnpm commit
git push
pnpm i -D tailwindcss postcss autoprefixer sass
pnpm i @bobbykim/manguito-theme
npx tailwindcss init -p
tailwind.config.js
const { mclTheme } = require('@bobbykim/mcl-theme')
module.exports = {
content: [
'./src/**/*.{vue,ts,js,cjs}',
'./node_modules/@bobbykim/**/*.{vue,ts,js,cjs}',
],
plugins: [mclTheme()],
}
in your-file.vue
<script setup lang="ts">
import {ComponentName} from '@bobbykim/<PackageName>'
...
</script>
<template>
...
<component-name></component-name>
...
</template>
Vue Vite SASS Typescript Tailwind CSS (tailwindcss, autoprefixer, postcss) @vitejs/plugin-vue vue-tsc @vueuse/core
Storybook @storybook/vue3
Lerna pnpm workspace