gulp-task-angular-sort-annotate

1.2.2 • Public • Published

GULP-TASK-ANGULAR-SORT-ANNOTATE

This module create gulp tasks that find all the angular files, annotate them, sort them, and inject them in your html file.

Installation

npm install --save-dev gulp-task-angular-sort-annotate
yarn add -D gulp-task-angular-sort-annotate

Usage

This is the default options :

const gulp = require('gulp')
 
require('gulp-task-angular-sort-annotate')(gulp, {
    htmlFile: 'index.html',
    angularScripts: ['/**/*.js', '!/node_modules', '!/build'],
    htmlDestinationFolder: 'build',
    jsDestinationFolder: 'build/js',
    concatName: 'app.js',
    uglifySuffix: '.min',
    injectOptions: {
        relative: false,
        ignorePath: ['build'],
        addRootSlash: true,
        starttag: '<!-- inject:angular-sort-annotate:js -->'
    }
})
 
gulp.task('prod', ['gulp-angular-sort-annotate-concat-uglify'])
// gulp.task('prod', ['gulp-angular-sort-annotate-concat'])
// gulp.task('prod', ['gulp-angular-sort-annotate-uglify'])
gulp.task('default', ['gulp-angular-sort-annotate'])

For the injection to work, you need this in your html file:

<!-- inject:angular-sort-annotate:js -->
<!-- endinject -->

Readme

Keywords

none

Package Sidebar

Install

npm i gulp-task-angular-sort-annotate

Weekly Downloads

1

Version

1.2.2

License

MIT

Last publish

Collaborators

  • malexandre