Modern.js Module provides the Microgenerator tool, which allows for the current project to.
package.json
fileThus with these capabilities, Microgenerator can enable additional feature functionality for the project.
The microgenerator can be started via modern new
. The current Microgenerator features supported by the Modern.js Module are:
When we want to write documentation for out module project, we can enable the module doc feature. will create docs
directory and related files in the project directory, and add "@modern-js/plugin-rspress"
dependency in package.json.
Use modern dev
and modern build --platform
to debug and build your doc site.
After successfully enabling it, you will be prompted to manually add a code similar to the one below to the configuration.
The Storybook feature can be enabled when we want to debug a component or a common module. When this feature is enabled, the stories
directory and .storybook
directory are created in the project directory, and a new "@modern-js/storybook"
dependency is added to package.json. Use storybook dev
and storybook build
to debug and build.
Tailwind CSS is a CSS framework and design system based on Utility Class, which can quickly add common styles to components, and support flexible extension of theme styles.
If you want to use Tailwind CSS for a project, you can refer to "Using Tailwind CSS".