Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Enables geddy to generate app, scaffold, model and controller in coffeescript #457

Closed
wants to merge 5 commits into
from

Conversation

Projects
None yet
4 participants

rsirres commented Sep 10, 2013

Usage:

geddy gen app -c MyGeddyApp
geddy gen controller -c MyController

etc.

Contributor

MiguelMadero commented Sep 11, 2013

There's an old branch (switachable-template-support) that tries to add better support to the cli to swap the templates outside of geddy. This really went out of sync after some big refactoring of cli.js and other files. The ideas is that we could write separate modules to add their own code generation, like geddy-coffee-templates

Do you guys think it might be worth revisiting that approach?

Contributor

MiguelMadero commented Sep 11, 2013

For those that don't like clicking links, just a quick summary from the readme.

$ npm install geddy-coffee-templates -g
$ geddy app myapp --templates coffee

or locally

$ npm install geddy-coffee-templates
$ npm scaffold todo title:default status --templates coffee

or from github

$ git clone https://github.com/MiguelMadero/geddy-coffee-templates.git
geddy app myapp --templates /path/to/the/cloned/repo
Contributor

Techwraith commented Sep 11, 2013

I think this is the best approach going forward. We should just define an
API that a generator would have to expose to geddy and let the community go
from there.

On Wed, Sep 11, 2013 at 11:42 AM, Miguel Madero notifications@github.comwrote:

For those that don't like clicking links, just a quick summary from the
readme https://github.com/MiguelMadero/geddy-coffee-templates.

$ npm install geddy-coffee-templates -g
$ geddy app myapp --templates coffee

or locally

$ npm install geddy-coffee-templates
$ npm scaffold todo title:default status --templates coffee

or from github

$ git clone https://github.com/MiguelMadero/geddy-coffee-templates.git
geddy app myapp --templates /path/to/the/cloned/repo


Reply to this email directly or view it on GitHubhttps://github.com/mde/geddy/pull/457#issuecomment-24265417
.

Contributor

mde commented Sep 11, 2013

I have been up in Redmond this week, and haven't had a chance to look over this PR yet, but I definitely think there's merit in the plugin approach for the templates. I say this in particular because in implementing our custom-error code, I had to go through all the various template-language scaffolds, and especially between the realtime and non-realtime scaffolds, there was basically 100% duplication. With all these different permutations -- templating languages, and now JS/CS, we have exploding complexity, exploding number of files to modify, and all this somehow to keep tested.

@rsirres rsirres closed this Sep 13, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment