DEV Community

Cover image for My own cli boilerplate tool
Lucas.T
Lucas.T

Posted on

3 2

My own cli boilerplate tool

A cli tool to generate node module project includes tools like avaJs for testing, eslint, prettier etc...


Install πŸš€:

Run

npm install -g luctst-cli
Enter fullscreen mode Exit fullscreen mode

Or if you have NPX:

npx luctst-cli [commands] <options>
Enter fullscreen mode Exit fullscreen mode

Usage πŸ–:

This package will create this folder structure by default:

β”œβ”€β”€ .github/
β”‚ β”œβ”€β”€ ISSUE_TEMPLATE/
β”‚ β”‚ β”œβ”€β”€ bug_report.md
β”‚ β”‚ β”œβ”€β”€ feature_request.md
β”‚ β”œβ”€β”€ CODE_OF_CONDUCT.md
β”‚ β”œβ”€β”€ CONTRIBUTING.md
β”‚ β”œβ”€β”€ LICENSE
β”‚ β”œβ”€β”€ pull_request_template.md
β”œβ”€β”€ lib/
β”‚ β”œβ”€β”€ main.js
β”œβ”€β”€ test/
β”‚ β”œβ”€β”€ test.js
β”œβ”€β”€ .editorconfig
β”œβ”€β”€ .estlintrc.json
β”œβ”€β”€ .gitattributes
β”œβ”€β”€ .gitignore
β”œβ”€β”€ .prettierignore
β”œβ”€β”€ .prettierrc.json
β”œβ”€β”€ .travis.yml
β”œβ”€β”€ package-lock.json
β”œβ”€β”€ package.json
β”œβ”€β”€ README.md
Enter fullscreen mode Exit fullscreen mode

Run this command to start the process:

luctst-cli start
Enter fullscreen mode Exit fullscreen mode

Note - By default if path flag is not present folder will be created with process.cwd()

With the β€”path flag:

luctst-cli start -p=<folder-name>
Enter fullscreen mode Exit fullscreen mode

Note - Create the folder inside the folder.

More informations here - https://www.npmjs.com/package/luctst-cli

Happy coding βœ¨πŸ§‘β€πŸ’»

Image of Datadog

The Future of AI, LLMs, and Observability on Google Cloud

Datadog sat down with Google’s Director of AI to discuss the current and future states of AI, ML, and LLMs on Google Cloud. Discover 7 key insights for technical leaders, covering everything from upskilling teams to observability best practices

Learn More

Top comments (0)

AWS Security LIVE!

Join us for AWS Security LIVE!

Discover the future of cloud security. Tune in live for trends, tips, and solutions from AWS and AWS Partners.

Learn More

πŸ‘‹ Kindness is contagious

Please leave a ❀️ or a friendly comment on this post if you found it helpful!

Okay