Skip to content

ChangingTerry/laravel-elixir-ng-annotate

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

laravel-elixir-ng-annotate

Elixir wrapper around gulp-ng-annotate

Install

$ npm install --save 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/');
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 100.0%