trailsjs / generator-trails-old

:package: Trails Generator.
Other
6 stars 8 forks source link

Trailpacks should have a way to generate files into the main application when installed #21

Closed tjwebb closed 8 years ago

tjwebb commented 8 years ago

It'd be a more generalized version of https://github.com/trailsjs/generator-trails/pull/15

jaumard commented 8 years ago

I see multiple way to do this :

jaumard commented 8 years ago

Another way for doing this is to add a postinstall script (under trailpack repo) that copy trailpack archetype under main application. Generator-trailpack have to add this script under package.json when generate a new trailpack.

jaumard commented 8 years ago

So it's a start, for now with the last version of the generator we can do :

yo trails --trailpacks=trailpack-hapi,trailpack-gulp,trailpack-webpack

But it will be better if archetype can be install without the generator.

jaumard commented 8 years ago

@tjwebb can I close this ? Generator install now all archetype files from trailpacks