Node.js >= v16 must be installed.
- Running
npm install
in the component's root directory will install everything you need for development.
- First build the component first using
npm run build
which will create/dist
npm run dev
will run a development server with the component's demo app using vite. Check the console for the link to it Note: There is no hot refresh when you make an edit to the component, you have to runnpm run build
each time to update the component. Though the demo app will automatically refresh once you update the component
-
npm run build
will build the component for publishing to npm and also bundle the demo app. -
npm run publishPublic
will publish the application to npm
npm run build-demo
will build the demo application.