Skip to content

tarun1793/sails-generate-bower

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

image_squidhome@2x.png

sails-generate-bower

A bower generator for use with the Sails command-line interface. The JS files are added to /assets/js/vendor directory.

Installation

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 = require('path');
var sailsgen = require('sails-generate');
var scope = {
	rootPath: path.resolve(__dirname)
};
sailsgen(require('sails-generate-bower'), scope, function (err) {
	if (err) throw err;

	// It worked.
});

Credits

Questions?

See FAQ.md.

More Resources

License

MIT © 2014 Tarun Garg

Sails is free and open-source under the MIT License.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%