This repository was built as a POC to handle a package-based monorepo with pnpm workspaces and storybook for components preview.
Stack used:
The idea of using nx was to leverage it for the build system and of its generators, even though it was not implemented.
pnpm install
pnpm sb:run
.npmrc
content. Example:@voyager-ui:registry=https://registry.npmjs.org/
//registry.npmjs.org/:_authToken={{ your_token }}
// publish tailwind package
$ pnpm tailwind:publish
// publish core package
$ pnpm core:publish
Make sure to create an organization as voyager-ui, or to change the references to this organization name to publish under whatever name you like.
$ pnpm add @voyager-ui/tailwind @voyager-ui/core
tailwind.config.js
import voyagerTailwind from "@voyager-ui/tailwind";
/** @type {import('tailwindcss').Config} */
export default {
content: [
"./src/**/*.{ts,tsx,html,js}",
voyagerTailwind.content(),
],
theme: {
...voyagerTailwind.theme(),
extend: {},
},
plugins: [],
};