First install npm (for ex. yum install npm) then install bower and grunt, as root:
npm -g install bowernpm -g install grunt-cli
Tested with npm version 4.0.3 (and on CentOS 7 with straight yum npm version 1.3.6).
Run:
npm installbower installgrunt build
Copy directory dist wherever...