merkle-open / generator-nitro

Your frontend? Fuel it with Nitro! Develop your frontend with a proven but flexible Node.js app, even in a large team.
MIT License
71 stars 28 forks source link

Automate bower dependencies #42

Closed deniaz closed 8 years ago

deniaz commented 9 years ago

Scenario: Dev A adds bower dependency, pushes code. Dev B pulls code, runs nitro and gets a broken Frontend > due to missing dependencies.

We should probably find a way how to solve that. This ticket is more of a reminder than a bug report.

SimonHarte commented 8 years ago

Possible solution: https://gist.github.com/sindresorhus/7996717

ernscht commented 8 years ago

Thanks Simon Works like a charm – in a modified version also on windows. But this must be configured manually on each project.

What du you think about git-guppy or ghooks?

dmodalek commented 8 years ago

Something similar: we could add a postinstall hook in the package.json to install bower dependencies automatically, after running npm install.

"scripts": {
    "postinstall" : "bower install"
}
ernscht commented 8 years ago

This git hook should solve this: https://github.com/namics/generator-nitro/blob/master/app/templates/project/.githooks/post-merge As default it will be installed with npm install