Giter Site home page Giter Site logo

ignusmx / gulp-ng-annotate-patched Goto Github PK

View Code? Open in Web Editor NEW

This project forked from asednev/gulp-ng-annotate-patched

0.0 0.0 0.0 40 KB

Add angularjs dependency injection annotations with ng-annotate-patched

License: Creative Commons Zero v1.0 Universal

JavaScript 100.00%

gulp-ng-annotate-patched's Introduction

gulp-ng-annotate-patched

Fork of gulp-ng-annotate updated to use ng-annotate-patched.

Add angularjs dependency injection annotations with ng-annotate-patched fork with support for ES6 import/export, classes, arrow functions, etc.

Install

$ npm install --save-dev gulp-ng-annotate-patched

Usage

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

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.

FAQ

I got an error Error in plugin 'gulp-ng-annotate': error: couldn't process source due to parse error

That's not a gulp-ng-annotate or ng-annotate error: you passed the invalid JavaScript code to the plugin. Check your source code near the specified place.

I need the latest version of ng-annotate

Make sure you are using the latest version of gulp-ng-annotate. Also try to reinstall/update it to get the latest suitable version of ng-annotate from npm.

I need a new annotating feature/annotations are incorrect

Report it to ng-annotate's bugtracker. gulp-ng-annotate is just a wrapper around ng-annotate.

License

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

Written in 2014-2017 by Kagami Hiiragi [email protected] and gulp-ng-annotate contributors

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/.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.