Your Web News in One Place

Help Webnuz

Referal links:

Sign up for GreenGeeks web hosting
November 20, 2021 07:51 am GMT

Developing My Own Node CLI Tool! And YOU can Contribute

I made a CLI Tool and You Can contribute!

Basically I'm really excited about writing packages. I just created this small tool called bring-me! This basic cli tool just brings you libraries to your current working directory directly from its cdn! You can also add libraries to the repertoir of libraries you have saved for downloading later!
Examples:

bring-me lib jquery -d /public/js you will have jquery already integrated in your project!

GitHub logo devasolutions / bring-me

NPM CLI tool for delivering common front-end libraries, frameworks, stylesheets, etc. for lightweight and easy development without needing them stored in node_modules or when internet connection could be a problem in the future.

bring-me

npm (scoped) npm

NPM CLI tool for delivering common front-end libraries, frameworks, stylesheets, etc. for lightweight and easy development without needing them stored in node_modules or when internet connection could be a problem in the future.

Install

Install globally with NPMnpm install -g @devasolutions/bring-me

Or install in developmentnpm install --save-dev @devasolutions/bring-me

Introduction

Bring-me is a CLI tool used to download popular frameworks from there CDNs so that you can use them offline when needed in mostly Front-End Development scenerios

Summary:

Bring-me scans a bmconfig.json file inside the module's directory to get the most popular frameworks and libraries (bootstrap,bulma,jquery,lodash,phaser at the moment).

bmconfig.json example:

[  {    "url": "https://cdn.jsdelivr.net/npm/[email protected]/dist/jquery.js",    "file-name": "jquery.js",    "lib-name": "jquery",    "format": "js",    "version": "3.6.0"  },  ...]

bmconfig.json fields:

url: (contains the url of the library from cdn)file-name: (the

I need people to help with creating more basic commands, fefactoring, and improving documentation. So anybody is welcome to participate!

  • Regards
  • The unfactoring guru

Original Link: https://dev.to/the_unfactoring_guru/developing-my-own-node-cli-tool-and-you-can-contribute-2164

Share this article:    Share on Facebook
View Full Article

Dev To

An online community for sharing and discovering great ideas, having debates, and making friends

More About this Source Visit Dev To