0.1.3 • Published 9 years ago

browser-sync-angular-template v0.1.3

Weekly downloads
4
License
Apache-2.0
Repository
github
Last release
9 years ago

browser-sync-angular-template

Install

$ npm install --save-dev browser-sync-angular-template

Usage

// gulpfile.js
var browserSync = require('browser-sync');
var browserSyncAngularTemplate = require('browser-sync-angular-template');

browserSync.use(
  browserSyncAngularTemplate({
    templates: '/app/**/*.html',
    indexJs: 'index.module.js',
    moduleName: 'example'
  })
);

API

browserSyncAngularTemplate(options)

options

Type: Object

templates

Type: String

Pattern for templates files. They will be injected in runtime.

default: '**/*.html'

indexJs

Type: String

Plugin injects the starting script in this file in runtime.

default: 'index.js'

moduleName

Type: String

Module name. Used for get the access to required providers.

default: require(bower.json || package.json).name

TODO

  • E2e tests.
  • Test the proxy.
  • Create a smart injector.
  • Improve my english.

License

Apache-2.0 © Pavel Belugin