JSPM

metalsmith-ng-annotate

0.1.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • 0
  • Score
    100M100P100Q13189F
  • License Apache 2.0

Metalsmith plugin to add, remove and rebuild AngularJS dependency injection annotations.

Package Exports

  • metalsmith-ng-annotate

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 (metalsmith-ng-annotate) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Description

Metalsmith plugin to add, remove and rebuild AngularJS dependency injection annotations.

Usage

Install the package:

npm install metalsmith-ng-annotate --save

Use the plugin in the Metalsmith chain:

var Metalsmith = require('metalsmith'),
    ngAnnotate = require('metalsmith-ng-annotate');

var project = Metalsmith(__dirname)
    .use(ngAnnotate({
        add: true
    }));

project.build(function (error) {

});

Options

  • add (Boolean)

    Add dependency injection annotations where non-existing.

  • pattern (String | Array)

    Filter files that match a pattern.

  • remove (Boolean)

    Remove all existing dependency injection annotations.

  • rename (Object)

    Rename declarations and annotated references.

  • single_quotes (Boolean)

    Use single quotes instead of double quotes.

License

Released under The Apache Software License, Version 2.0