@medly/create-module
v0.10.2
Published
An application for generating either ts module or simple ts app
Downloads
80
Readme
Create Module
An application for generating either module or simple app. You can also choose between typescript & javascript language.
Getting started
| Package Manager | Command |
| --------------- | --------------------------- |
| NPM | npm init @medly/module |
| Yarn | yarn create @medly/module |
| PNPM | pnpx @medly/create-module |
Then follow the prompts or you can run command yarn create @medly/module <project-name> [options] with below options.
Options
| Flags | Description | Choices | Default |
| ----------------------------------------- | ------------------------------ | -------------------------- | ------------ |
| -V, --version | output the version number | | |
| -o, --org <org> | name of the organization | | |
| -r, --registry <registry> | registry to publish the module | npm, github, none | none |
| -p, --package-manager <package-manager> | package manager | npm, yarn, pnpm | yarn |
| -a, --access <access> | access level of the module | public, restricted | public |
| -l, --language <language> | language | typescript, javascript | typescript |
| -i, --interactive | show interactive questionnaire | | |
| -h, --help | display help for command | | |
Note: Add
NPM_TOKENas secret in github repo to publish the package.
Features
It sets up the following:
babeltotranspilethe code.jestto writeunit tests.rolluptobundlethe code.commitizen&commitlintto optimize your commit message.prettierto automaticallyformatthe code.eslintto catch the error.github workflowto automaticallypublish the package on PR merge.semantic-releaseto bump the version and update theCHANGELOG.typescriptalso, if you choosetypescriptas language option.

