# grunt-ngtags

> ngtags wrapper for grunt as plugin

Latest version **0.0.11** (published 2015-07-08) · MIT license · 0 weekly downloads

## Install

```sh
npm install grunt-ngtags
pnpm add grunt-ngtags
yarn add grunt-ngtags
bun add grunt-ngtags
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.11 |
| Published | 2015-07-08 |
| First published | 2015-01-27 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | David Rodenas |
| Maintainers | drpicox |
| Keywords | grunt, angular, tags, components, ngtags |

## Links

- npm: https://www.npmjs.com/package/grunt-ngtags
- Repository: https://github.com/ngtags/grunt-ngtags
- Issues: https://github.com/ngtags/grunt-ngtags/issues
- npm.io page: https://npm.io/package/grunt-ngtags

## Dependencies (2)

- [chalk](https://npm.io/package/chalk.md) ^0.5.1
- [ngtags](https://npm.io/package/ngtags.md) >=0.0.19 <0.1.0

## Recent versions

- 0.0.11 (latest) — 2015-07-08
- 0.0.10 — 2015-02-10
- 0.0.9 — 2015-02-05
- 0.0.3 — 2015-01-27

## README

Grunt-ngtags
==================

Wraper of [ngtags](https://github.com/ngtags/ngtags) for grunt.


Install
-------

```bash
$ npm install -g grunt-cli
$ npm install grunt
$ npm install grunt-ngtags
```


Options
-------

### module

The AngularJS module where to create directives. Ex:

```javascript
options: {
  module: 'yourApp',
},
```

### autoprefix

Boolean, if false if skip autoprefix step (useful when less/scss):

```javascript
options: {
  autoprefix: false,
},
```

### excludeStyle

Boolean, if true do not include styles inside the directive javascript definition. Ex:

```javascript
options: {
  excludeStyle: true,
},
```

### generateStyle

Boolean, instead of generating a javascript definition, generate the contents of the style.

```javascript
    ngtags: {
      options: {
        module: 'aModule',
      },
      styles: {
        src: 'src/**.ngtag',
        dest: 'dist/ngtags.css',
        options: {
          generateStyle: true,
        },
      },
    },
```




Configuration
-------------

An example of `Gruntfile.js`:

```javascript
module.exports = function(grunt) {

  // Project configuration.
  grunt.initConfig({
    ngtags: {
      options: {
        module: 'aModule',
      },
      build: {
        src: 'src/**.ngtag',
        dest: 'dist/ngtags.js'
      }
    }
  });

  // Load the plugin that provides the "ngtags" task.
  grunt.loadNpmTasks('grunt-ngtags');

  // Default task(s).
  grunt.registerTask('default', ['ngtags']);

};
```

---
_Source: https://npm.io/package/grunt-ngtags · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
