1.0.0 • Published 8 years ago

fis3-hook-bower v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

fis3-hook-bower

Build Status

Bower module integraion for fis3.

Fis3 is an excellent frontend compiler. In frontend engineering, modularity plays an important role. It would be better to reused existing packages. Bower is a good candidate.

This hook will help you cope with bower dependencies. But it could be better to use npm. Also see fis3-hook-npm.

Installation

npm install fis3-hook-bower

or

npm install fis3-hook-bower -g

Configuration

Generally bower_components/ is very large, so it is a good idea to exclude it from your project.files.

// By default: lookup packages in bower_components
fis.hook('bower');

// or

fis.hook('bower', {
    bower: 'bower_dir'
});

Usage

Declare dependencies in your file as follows, the hook will automatically load all dependencies recursively:

// @require angular
// @require angular-route

var module = angular.module('app', ['ngRoute']);

Demo

TODO

  • What if bower.json is an array?
1.0.0

8 years ago

0.0.4

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago