sails-generate-bower
A bower
generator for use with the Sails command-line interface.
Installation
Certain generators are installed by default in Sails, but they can be overridden. Check the Sails docs for information on installing generator overrides / custom generators.
Usage
New project setup
$ sails new myProject # create a new sails project $ cd myProject$ sails generate bower # generate/modify the necessary files $ npm install # install modules $ bower install bootstrap --save # install required bower packages $ sails lift # lift the server
Go to http://localhost:1337 and view page source, and you'll see the CSS and JS files injected into the template.
In a node script
var path = ;var sailsgen = ;var scope = rootPath: path;;
Credits
Questions?
See FAQ.md
.
More Resources
- Stackoverflow
- #sailsjs on Freenode (IRC channel)
- Professional/enterprise
- Tutorials
License
MIT © 2014 James Smtih
Sails is free and open-source under the MIT License.