1.5.2 • Published 6 years ago
@naturalcycles/create-module v1.5.2
@naturalcycles/create-module
npx @naturalcycles/create-moduleto bootstrap a new module
Usage
Create GitHub repository manually.
mkdir my-new-module
cd my-new-module
npx @naturalcycles/create-module
git push
CircleCI > "Start building", cancel, add NPM_TOKEN, GH_TOKEN, restart WorkflowFeatures
- Generates new opinionated project from the project template. Currently supported templates:
nodejs-lib: NodeJS library- more to come...
- Template-based generation (based on interactive CLI answers)
package.jsonreadme.mdwith badges, CircleCI build status link
- Adds predefined deps and devDeps (e.g
prettier,jest,typescriptetc.) topackage.json, installs them withyarn - Typescript setup (
tsonfig.json, etc) - Gets all the goodies from @naturalcycles/dev-lib:
- Folders conventions
- All yarn commands, e.g
prettier-all,build,bt,update-from-dev-lib,test-ci,clean-dist, etc - DevDeps that are needed for these commands (
husky,lint-staged, etc) - Non-extendable configs
.gitgnore.editorconfig.codeclimate.ymltsconfig.json,tsconfig.test.json
- Extendable configs
- Jest
- Prettier
- TSLint
- Husky, Lint-staged
- CircleCI setup
- CodeClimate setup (via
.codeclimate.ymland CircleCI) - Git setup (
git init,git add,git commit)
TODO
- Create git repo automatically, do
git push - Create CircleCI build (click start building automatically), run first build
- Allow global config with secrets (e.g
NPM_TOKEN,GITHUB_TOKEN) to allow previous commands - Add more templates, e.g:
js-lib(universal js lib for both node and browser)browser-libbackend-service(gets automatically deployed to the cloud, includes all server boilerplate, monitoring, analytics, etc.)