CityWebConsultants / Iris

Modular content management and web application framework built with Node.js and MongoDB
http://irisjs.org
Other
9 stars 7 forks source link

Remove Windows-breaking example.js and add install CLI #270

Closed FilipNest closed 8 years ago

FilipNest commented 8 years ago

npm install -g irisjs will now add irisjs 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 as npm install -g

FilipNest commented 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.

adam-clarey commented 8 years ago

So is this to merge or not? If not it should be closed.

FilipNest commented 8 years ago

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.