@wildboar/x500-cli

0.11.0 • Public • Published

The Wildboar X.500 Command-Line Interface

Installation

Currently, this command can only be installed via NPM, which you can get by installing NodeJS.

Run npm install -g @wildboar/x500-cli. If you get a permissions issue, you may need to prefix your command with sudo on Unix-like systems or run this command in a terminal that is "ran as administrator" on Windows.

If you get an error saying that the command x500 does not exist after you have done this, you may need to close out of the terminal and open a new one.

Notes

It was far from obvious, but this was what it took to produce a cross-platform CLI:

  • There MUST be a custom webpack.config.js which uses the BannerPlugin to add a shebang to the top of the compiled main.js. This shebang must be present even on Windows machines because npm sets up a windows command if your script has a very particular shebang at the top.
  • In the Nx / Webpack configuration, you MUST set externalDependencies to none. Otherwise, the compiled main.js will still expect there to be a node_modules folder with all of the dependencies, which is not viable for a command-line interface.

Readme

Keywords

none

Package Sidebar

Install

npm i @wildboar/x500-cli

Weekly Downloads

8

Version

0.11.0

License

MIT

Unpacked Size

29.5 MB

Total Files

7

Last publish

Collaborators

  • jonathanwilbur