Since I'm going to be doing some work on this script anyway I might as well make it better.
Right now this is just a simple script designed to be downloaded from GitHub then installed and run by hand. Since no one actually uses this script the mechanical nature of its design hasn't been a concern. However, I can make the script more user-friendly, maintainable, and installable by refactoring the project into an NPM library with a CLI interface.
Requirements:
Refactor the core functionality into a library.
Refactor the CLI interface into a bin script.
Make the path code environment agnostic.
Identify the bin entry point of the application in package.json.
Set the preferGlobal flag to true in package.json.
Since I'm going to be doing some work on this script anyway I might as well make it better.
Right now this is just a simple script designed to be downloaded from GitHub then installed and run by hand. Since no one actually uses this script the mechanical nature of its design hasn't been a concern. However, I can make the script more user-friendly, maintainable, and installable by refactoring the project into an NPM library with a CLI interface.
Requirements:
bin
entry point of the application in package.json.preferGlobal
flag totrue
in package.json.