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-dircommand, 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 lintto format the code. The initialized module project includes the ESLint ruleset for Modern.js for most scenarios.
modern dev storybookcommand. You can use Storybook not only for debugging components, but also for other types of modules.
modern testcommand of Modern.js Module, which not only integrates with Jest, but also provides an API for configuring Jest.
modern changecommand to generate a Markdown file containing the changes; when you need to upgrade a project, you can use the
modern bumpcommand to analyze and upgrade the version through the Markdown file; when you need to release a project, you can use the
modern releasecommand to release the project; Modern.js Module implements these commands based on Changesets.
devcommand and the
buildcommand process. You can use them to extend the capabilities of your project.