@lynx-js/luna-packages
v1.0.0
Published
Aggregates luna related demo packages for the documentation site
Readme
Luna Packages
Aggregates L.U.N.A demo-related packages for the documentation site and provides a small set of exports used by the site runtime.
What is this package for?
- Pulls in Luna demo dependencies from npm for the Lynx docs site
- Exposes Rspress-site components (e.g.
LunaStudio) fromsrc/
This package is primarily an internal dependency of the documentation site.
Usage
import { LunaStudio } from '@lynx-js/luna-packages';Notes
- Demo assets used by the site are prepared by the repo script
prepare:luna(seescripts/luna-demo.jsin the repository root). - Some components rely on Tailwind utility classes. The docs site includes this package's sources in Tailwind
contentscanning.- In this repository: the Tailwind config at the repo root (
/tailwind.config.js) includes./packages/luna-packages/src/**/*.{js,ts,jsx,tsx}. - If you consume
@lynx-js/luna-packagesfrom another project and want the styles to work, add it to your Tailwindcontentglobs, for example:
- In this repository: the Tailwind config at the repo root (
export default {
content: [
'./src/**/*.{js,ts,jsx,tsx}',
'./node_modules/@lynx-js/luna-packages/src/**/*.{js,ts,jsx,tsx}',
],
};