https://github.com/bathos/gobble-ng-annotate
Use ng-annotate as a Gobble transform
https://github.com/bathos/gobble-ng-annotate
Last synced: about 1 year ago
JSON representation
Use ng-annotate as a Gobble transform
- Host: GitHub
- URL: https://github.com/bathos/gobble-ng-annotate
- Owner: bathos
- License: mit
- Created: 2015-06-15T16:35:05.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-06-15T17:26:36.000Z (almost 11 years ago)
- Last Synced: 2025-04-23T23:52:04.747Z (about 1 year ago)
- Language: JavaScript
- Size: 129 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.MD
- License: LICENSE
Awesome Lists containing this project
README
# gobble-ng-annotate
Convert angular code to the minification-safe annotated format using ngAnnotate.
## Installation
If you haven’t installed gobble yet, [do that first][1]. This is your usual
npm install.
```bash
npm install gobble-ng-annotate --save-dev
```
## Usage
In your gobblefile, you can now use the transformation.
```js
import 'gobble';
export default gobble('my-angular-stuff').transform('ng-annotate', opts);
```
When you provide the first transform arg as a string, Gobble goes looking for it
on its own; no need to `require`. However you can also `require` it and pass in
the module itself instead of a string.
## Options
Options are identical those normally used with ng-annotate, except that
sourcemaps are active by default and "add" mode is active by default.
[1]: https://github.com/gobblejs/gobble