generator-dojo
generator-dojo copied to clipboard
how to consume an app
if i use generator-dojo to make an app, then i share that app with someone, what is the minimum to get the app started? (assume they might not even have grunt, bower, yo - just node and npm)
if they have python, you can always navigate to either the src or the compiled build directory and run the following line:
python -m SimpleHTTPServer
and it will serve the page and get it running running pretty quickly. It'd also be pretty easy to push this into a simple connect-based node module as well.
sorry, my issue is not how to serve the code - that part is very simple. my question relates to what steps are necessary to install all the tools (grunt, bower, yo), fulfill all the dependencies, and run a build when starting with a system that just has git and you have a URL of a repo that contains a project built using generator-dojo - i.e. what would it take to deploy an app? the question came when i was trying to write https://github.com/neonstalwart/webapp#getting-started
the answer i'm looking for is something like:
$ npm install -g yo
$ git clone https://server.com/git/project.git
$ cd project
$ npm install
$ grunt server:dist
whatever the steps are, i think this is something worth adding to the docs here because so far the docs cover what it takes to produce code but do not show how to consume that code.
Ah okay, makes more sense. I :+1: that documentation in this area would be helpful!