Closed FilipNest closed 8 years ago
There's another attempt at pretty much exactly this over at https://github.com/facascante/iris-generator . I think it's probably best to do this as a standalone extendable command line helper app that gets installed globally. So this pull request can be ignored.
I think another pull request is coming in to remove the postinstall script from core. If not it's easy to put one together.
So is this to merge or not? If not it should be closed.
It works, it's just whether we want this to be in core or a standalone app. Chito has built pretty much the same thing as standalone. The key thing was getting the example file pushing out which has been done elsewhere.
npm install -g irisjs
will now addirisjs
to the command line path.Currently this serves only one use
irisjs install sitename
which steps through a list of config questions, installs irisjs locally and creates a launch file with the settings the user put in.There is room to add other command line options in the future. Particularly through the use of sockets to access an iris installation while it's running and enable modules, debug etc.
Requires an npm install for the
prompt
library that makes asking questions on the command line easier with defaults and such.To test this pull request locally: pull it in, navigate to its directory and run
npm link
. That will do the same asnpm install -g