plastikfan / jaxom-ts

Another JSON to XML converter with inheritable attributes and custom element consolidation
MIT License
0 stars 0 forks source link

Add basic cli tool to enable running on demand #50

Closed plastikfan closed 4 years ago

plastikfan commented 4 years ago

Need to be able run jaxom adhoc. The basic cli tool needs to be able to read in and XML file and output the corresponding JSON. The tool needs the following parameters:

branch: jaxom-cli

plastikfan commented 4 years ago

Initial attempt at di/composition-root/cli startup is a bit off. After more consideration, we need the following:

As it stands, the current commandLine and application logic needs to be swapped over for it to make sense. The composition root is a bit like a controller and invokes the commandLine => injector => application sequence. The index.ts invokes the composition root.

Also see: https://www.npmjs.com/package/di-ninja#21-composition-root

plastikfan commented 4 years ago

https://blog.developer.atlassian.com/scripting-with-node/#packaging-shell-commands https://developer.okta.com/blog/2019/06/18/command-line-app-with-nodejs

plastikfan commented 4 years ago

We need to build a separate bundle for the cli