diff --git a/README.md b/README.md index eca4de04..2a884ebc 100644 --- a/README.md +++ b/README.md @@ -117,9 +117,9 @@ A number of build processes are automatically run on all of our Javascript files - **JSHint:** Gulp is currently configured to run a JSHint task before processing any Javascript files. This will show any errors in your code in the console, but will not prevent compilation or minification from occurring. - **Browserify:** The main build process run on any Javascript files. This processes any of the `require('module')` statements, compiling the files as necessary. +- **ngAnnotate:** This will automatically add the correct dependency injection to any AngularJS files, as mentioned previously. - **Babelify:** This uses [babelJS](https://babeljs.io/) to provide support for ES6+ features. - **Debowerify:** Parses `require()` statements in your code, mapping them to `bower_components` when necessary. This allows you to use and include bower components just as you would npm modules. -- **ngAnnotate:** This will automatically add the correct dependency injection to any AngularJS files, as mentioned previously. - **Uglifyify:** This will minify the file created by Browserify and ngAnnotate. The resulting file (`main.js`) is placed inside the directory `/build/js/`. diff --git a/gulp/tasks/browserify.js b/gulp/tasks/browserify.js index 244906a7..16d480ed 100644 --- a/gulp/tasks/browserify.js +++ b/gulp/tasks/browserify.js @@ -37,9 +37,9 @@ function buildScript(file) { } const transforms = [ + { name: ngAnnotate, options: {} }, { name: babelify, options: {} }, { name: debowerify, options: {} }, - { name: ngAnnotate, options: {} }, { name: 'brfs', options: {} }, { name: bulkify, options: {} }, { name: envify, options: {} }