laravel-elixir-ng-annotate

1.0.1 • Public • Published

laravel-elixir-ng-annotate

Elixir wrapper around gulp-ng-annotate

Install

$ npm install --save-dev laravel-elixir-ng-annotate

Usage

var elixir = require('laravel-elixir');
 
require('laravel-elixir-ng-annotate');
 
var appScripts = [
  'app/app.js',
  'app/routes.js',
  'app/**/*.js'
];
 
elixir(function(mix) {
   mix.annotate(appScripts);
});

This will annotate and concatenate all your Angular js files, then save the output as annotated.js in your public/js/ directory.

You can then apply the scripts tasks to the annotated.js as follows:

   mix.scripts('annotated.js','public/js/app.js', 'public/js/');

Or chain it immediately

    elixir(function(mix) {
       mix.annotate(appScripts).scripts('annotated.js','public/js/app.js', 'public/js/');
    });

Package Sidebar

Install

npm i laravel-elixir-ng-annotate

Weekly Downloads

31

Version

1.0.1

License

MIT

Last publish

Collaborators

  • vivifyideas