@motiadev/plugin-endpoint
This package provides React components for the Motia workbench endpoint functionality.
TailwindCSS Compilation
This package now includes TailwindCSS compilation to ensure all Tailwind classes used in the components are properly compiled and available.
Build Process
The build process includes two steps:
- CSS Compilation: Compiles
src/styles.cssusing PostCSS and TailwindCSS - TypeScript Compilation: Compiles TypeScript files to JavaScript
Usage
To use the compiled styles in consuming packages, import the CSS file:
@import "@motiadev/plugin-endpoint/styles.css";
Development
pnpm run build- Build both CSS and TypeScriptpnpm run dev- Watch mode for both CSS and TypeScriptpnpm run build:css- Build only CSSpnpm run dev:css- Watch mode for CSS only
Configuration Files
tailwind.config.js- TailwindCSS configurationpostcss.config.js- PostCSS configuration with TailwindCSS pluginsrc/styles.css- Main CSS entry point with Tailwind imports