loading...
Cover image for create-awesome-package : Released a CLI to bootstrap your awesome package πŸš€ πŸ“¦
The Destro Dev Show

create-awesome-package : Released a CLI to bootstrap your awesome package πŸš€ πŸ“¦

destro_mas profile image Shahjada Talukdar ・Updated on ・2 min read

CLI - helps to create the package with JS/TS, build system(Webpack/Parcel) and necessary stuff πŸ”₯
It's like create-react-app but for building packages πŸ“¦

In our daily life, a lot of times, we need to create a separate package, so that we can reuse.

And also sometimes, we want to publish packages to the NPMJS registry, so that other developers can use them.

But to do that, we need a few things-

  • Mainly a bundler like Webpack or Parcel
  • Babel to transpire the code

It’s a manual process to arrange all your boilerplate code, Webpack or other build systems to transpile to ES5, etc. and then build your desired package.

To fix that, I have published a CLI tool, which will help us to do those things, and you will be ready to do your actual code right away.

The name of the CLI is create-awesome-package

create-awesome-package helps to create the package with build system and necessary stuff.

You just write your own code πŸ”₯

You can find this on πŸ‘‰NPMJS https://www.npmjs.com/package/create-awesome-package

How to install

npm i -g create-awesome-package

How to use

Go to your root of the package you want to build.

Then, Just run

create-awesome-package [package-name]

OR also you can use npx

npx create-awesome-package [package-name]

( if you don't want to globally install it)

and you are done!

It will provide you the boilerplate you need to get started!

You can watch the video on YouTube to see the demo how to use it πŸ‘‹

I am working on a few more features for it. I will release those soon.

Cheers!
πŸ‘‹

Also posted here https://shahjada.me/2019/12/28/create-awesome-package-released-a-cli-to-bootstrap-your-awesome-package/

As I am trying to contribute contents on the Web, you can buy me a coffee for my hours spent on all of these ❀️😊🌸
Buy Me A Coffee

Inspired from create-react-app

Discussion

pic
Editor guide