
Security News
New CVE Forecasting Tool Predicts 47,000 Disclosures in 2025
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
gulp-angular-esmodules-filesort
Advanced tools
Automatically sort AngularJS app files depending on module definitions and usage and also ES6 import/exports
This plugin is a fork of gulp-angular-filesort which adds support for additional file sorting logic based on ES6 import and exports.
If the following conditions are true, you might want to use this plugin:
NOTE: In order to be able to use es6 import/exports without a bundler, you need to use babel-plugin-globals to convert import/exports to read/writes from/to a global object (aka namespace)
Use something like Browserify or Webpack instead!
Automatically sort AngularJS app files depending on module definitions and usage
Used in conjunction with gulp-inject
to inject your AngularJS application files (scripts) in a correct order, to get rid of all Uncaught Error: [$injector:modulerr]
. To work correctly, each angular file needs to have a uniquely named module and setter syntax (with the brackets), i.e. angular.module('myModule', [])
.
Install gulp-angular-esmodules-filesort
as a development dependency:
npm install --save-dev gulp-angular-esmodules-filesort
gulpfile.js
:var angularFilesort = require('gulp-angular-esmodules-filesort'),
inject = require('gulp-inject');
gulp.src('./src/app/index.html')
.pipe(inject(
gulp.src(['./src/app/**/*.js']).pipe(angularFilesort())
))
.pipe(gulp.dest('./build'));
NOTE Do not use the read
option for gulp.src
! This plugin analyzes the contents of each file to determine sort order.
FAQs
Automatically sort AngularJS app files depending on module definitions and usage and also ES6 import/exports
The npm package gulp-angular-esmodules-filesort receives a total of 6 weekly downloads. As such, gulp-angular-esmodules-filesort popularity was classified as not popular.
We found that gulp-angular-esmodules-filesort demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.
Security News
Browserslist-rs now uses static data to reduce binary size by over 1MB, improving memory use and performance for Rust-based frontend tools.
Research
Security News
Eight new malicious Firefox extensions impersonate games, steal OAuth tokens, hijack sessions, and exploit browser permissions to spy on users.