Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@naturalcycles/create-module

Package Overview
Dependencies
Maintainers
3
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@naturalcycles/create-module

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

  • 1.5.2
  • unpublished
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source

@naturalcycles/create-module

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

npm 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.)

FAQs

Package last updated on 21 Jul 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc