JSPM

gulp-ng-annotate-plus

0.5.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 2
  • Score
    100M100P100Q22023F
  • License CC0

Add angularjs dependency injection annotations with ng-annotate plus

Package Exports

  • gulp-ng-annotate-plus

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (gulp-ng-annotate-plus) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

gulp-ng-annotate-plus NPM version

Add angularjs dependency injection annotations with ng-annotate plus create main module

Install

$ npm install gulp-ng-annotate-plus

Usage

var gulp = require('gulp');
var ngAnnotate = require('gulp-ng-annotate');

gulp.task('default', function () {
    return gulp.src('src/app.js')
        .pipe(ngAnnotate())
        .pipe(gulp.dest('dist'));
});

Options

You can pass any of the ng-annotate options as an object:

{
    remove: true,
    add: true,
    single_quotes: true
}

add: true option is implied by default unless remove is set to true.

Use createMainModule: '<moduleName>' option when you want to create an angular module that depends on all the modules of the processed files. File with main module is added to the end of the stream.

//mainModule.js
angular.module('mainModule', ['module1', 'module2', 'module3']);

License

gulp-ng-annotate - Add angularjs dependency injection annotations with ng-annotate

Written in 2014 by Kagami Hiiragi kagami@genshiken.org Extended in 2015 by Oleg Istomin tamtakoe@gmail.com

To the extent possible under law, the author(s) have dedicated all copyright and related and neighboring rights to this software to the public domain worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along with this software. If not, see http://creativecommons.org/publicdomain/zero/1.0/.