1.0.1 • Published 9 years ago

laravel-elixir-ng-annotate v1.0.1

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

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/');
    });