Modern.js Module is a modules engineering solution for Modern.js, as well as a core dependency. It allows developers to build, debug, and publish module type project more easily. A module type project can mostly be thought of as an npm package type project, which may be a component, component library or tool library project.
If you are planning to develop a project of the npm package type, then you came to the right place! Modern.js provides a professional Modern.js Module. It gives you:
npx @modern-js/create project-dir command, followed by a few interactive questions, to create a complete module type project. The created project also supports the choice of two package managers, pnpm and Yarn.
modern lint to format the code. The initialized module project includes the ESLint ruleset for Modern.js for most scenarios.
storybook dev command. You can use Storybook not only for debugging components, but also for other types of modules.
modern test command of Modern.js Module, which not only integrates with Jest, but also provides an API for configuring Jest.
modern change command to generate a Markdown file containing the changes; when you need to upgrade a project, you can use the
modern bump command to analyze and upgrade the version through the Markdown file; when you need to release a project, you can use the
modern release command to release the project; Modern.js Module implements these commands based on Changesets.
dev command and the
build command process. You can use them to extend the capabilities of your project.