BahamutWC
BahamutWC

Reputation: 194

Automating "npm install && bower install --dev" with generator-angular for Yeoman

I am trying to figure out how to automate npm install && bower install --dev at the end of the generation of the angular scaffold from the angular generator for Yeoman, and have not found any information that quite matches my problem.

Could someone point me in the right direction?

Upvotes: 0

Views: 2581

Answers (1)

Sindre Sorhus
Sindre Sorhus

Reputation: 63487

Run this and it will install npm and bower deps right after finishing scaffolding:

yo angular && npm install && bower install --dev

You could also create a shell alias in your .bashrc,.bashprofile,.zshrc file:

alias ya='yo angular && npm install && bower install --dev'

Then just restart your Terminal and type ya.

Upvotes: 1

Related Questions