0.0.12 • Published 9 years ago

sails-generate-bower-gulp v0.0.12

Weekly downloads
15
License
MIT
Repository
github
Last release
9 years ago

image_squidhome@2x.png

sails-generate-bower-gulp


NPM version NPM downloads Dependency Status MIT License

A bower generator for use with the Sails command-line interface. It will download bower packages to ./bower_components and then move them to ./assets/vendor folder. Now using main-bower-files for moving files in the boser.json main section.

See

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.

$ npm install -g sails-generate-bower-gulp

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-gulp'), scope, function (err) {
	if (err) throw err;

	// It worked.
});

Credits

Questions?

See FAQ.md.

More Resources

License

MIT © 2014 Karnith

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

0.0.12

9 years ago

0.0.11

9 years ago

0.0.10

10 years ago

0.0.9

10 years ago

0.0.8

10 years ago

0.0.7

10 years ago

0.0.6

10 years ago

0.0.5

10 years ago

0.0.4

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago