1.5.2 • Published 5 years ago

@naturalcycles/create-module v1.5.2

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

@naturalcycles/create-module

npx @naturalcycles/create-module to bootstrap a new module

npm npm.io code style: prettier

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 Workflow

Features

  • 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.json
    • readme.md with badges, CircleCI build status link
  • Adds predefined deps and devDeps (e.g prettier, jest, typescript etc.) to package.json, installs them with yarn
  • 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.yml
      • tsconfig.json, tsconfig.test.json
    • Extendable configs
      • Jest
      • Prettier
      • TSLint
      • Husky, Lint-staged
  • CircleCI setup
  • CodeClimate setup (via .codeclimate.yml and 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-lib
    • backend-service (gets automatically deployed to the cloud, includes all server boilerplate, monitoring, analytics, etc.)
1.5.2

5 years ago

1.5.1

5 years ago

1.5.0

5 years ago

1.4.0

5 years ago

1.3.0

5 years ago

1.2.0

5 years ago

1.1.0

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago