Skip to content
This repository

Running install after init should modify index file #769

AdamHolwerda opened this Issue December 04, 2012 · 6 comments

4 participants

Adam Holwerda Sindre Sorhus Thomas Schluchter Addy Osmani
Adam Holwerda

After we run yeoman init we should be able to conditionally install app pieces throughout development - and have them alter index.html in expected ways.

Scripts would populate between the <!-- build:js scripts/scripts.js --> and <!-- endbuild --> comments, css would be appended before the </head> tag.

I'm always going into app/components/whatever to grab file paths, and this doesn't seem to flow with the rest of Yeoman's enjoyable experience.

Thomas Schluchter

I agree. It's especially true since some of the bower-provided packages bury the files in a pretty deep tree. Love Yeoman as it is, this would make me love you even more!

Addy Osmani

I agree with this and think we should try landing it for 1.0. I remember implementing a simple POC locally a while back but if anyone would like to take stab at this we would be more than happy to help land.

Sindre Sorhus

This is already done for RequireJS, but I agree it would be nice to have.

PR welcome:

Addy Osmani

Are we currently waiting to get this done on generators other than generator-webapp?

Sindre Sorhus

Yes, but since the bower postinstall thing is being released in Bower soon, we should probably not do anything until that lands as it will mean we don't have to use grunt tasks for this stuff anymore.

Sindre Sorhus sindresorhus closed this November 06, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.