Closed artsyca closed 10 years ago
By the way, here is the relevant PR for ember-cli-generators: https://github.com/stefanpenner/ember-cli/pull/1994
It's totally possible, I just haven't had time to take a proper look at it yet. I will hopefully have some shortly though, and will let you know.
I'm really new to Ember CLI, broccoli and the whole notion of ember generators but roughly speaking what's needed for this? I can tell by looking at the code that this plugin seems to call ember-cli/blueprints
before outputting its own templates (in beforeInstall..
)
I guess a start would be to pass-through the --pod
argument to that call? But then the output would need to be retargeted from the default location in app/
to somewhere in pods
.. does that sound about right?
Hi again!
This is now available in version 0.2.0
of ember-cli-coffeescript. If you're still curious, feel free to check out the commit: 3364193cdb30a17c71f963308362d700f51b9c97
Basically, ember-cli added a new concept called fileMapTokens
, the default one being __path__
, which we had to make use of in the file structure for each Blueprint. Some of the blueprints required some more tokens, for the templates for instance.
Luckily, it's all well-documented over here: https://github.com/stefanpenner/ember-cli/blob/9d59642ba50b03eaf8d5a61ac8492c16ee6db57f/lib/models/blueprint.js#L57
Thanks again!
(Probably easier to read the actual documentation: http://www.ember-cli.com/#blueprint-structure)
Wow, that was surprisingly fast and targeted. Updating now! :coffee: :doughnut:
We're using ember-cli-coffescript in a workflow that makes heavy use of
ember g ...
Things are working really well in that the files that are generated are very useful and the coffeescript is being generated very nicely.
However, we've run into an issue that we can't use the
--pod
flag as yet. So we're pulling our files into a pods file structure manually.Is this something that can be incorporated into the coffee generators? I wish my understanding of the problem domain were greater and I could offer some assistance in this matter.