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-annotateyarn add -D gulp-task-angular-sort-annotate
Usage
This is the default options :
const gulp = 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// gulp.task('prod', ['gulp-angular-sort-annotate-concat'])// gulp.task('prod', ['gulp-angular-sort-annotate-uglify'])gulp
For the injection to work, you need this in your html file:
<!-- inject:angular-sort-annotate:js --><!-- endinject -->