This content originally appeared on DEV Community and was authored by The Unfactoring Guru
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!
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 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 NPM
npm install -g @devasolutions/bring-me
Or install in development
npm 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/jquery@3.6.0/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
This content originally appeared on DEV Community and was authored by The Unfactoring Guru
The Unfactoring Guru | Sciencx (2021-11-20T07:51:41+00:00) Developing My Own Node CLI Tool! And YOU can Contribute. Retrieved from https://www.scien.cx/2021/11/20/developing-my-own-node-cli-tool-and-you-can-contribute/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.