@medly/create-module
v0.10.2
Published
An application for generating either ts module or simple ts app
Downloads
9
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_TOKEN
as secret in github repo to publish the package.
Features
It sets up the following:
babel
totranspile
the code.jest
to writeunit tests
.rollup
tobundle
the code.commitizen
&commitlint
to optimize your commit message.prettier
to automaticallyformat
the code.eslint
to catch the error.github workflow
to automaticallypublish the package on PR merge
.semantic-release
to bump the version and update theCHANGELOG
.typescript
also, if you choosetypescript
as language option.