
Security News
ESLint Adds Official Support for Linting HTML
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
grunt-file-order
Advanced tools
A grunt extension for ordering files after selection.
Adds order
attribute to both config files
and grunt.file.expand
.
$ npm install --save grunt-file-order
files
require('grunt-file-order'); // global addition to grunt
module.exports = function (grunt, options) {
return {
copyFiles: {
files: [
{
expand: true,
src: ['<%= sourcedir %>**'],
dest: '<%= outputdir %>',
order: function(filepaths) {
// sort alphabetically
return filepaths.sort(function(a,b) {
return a>b ? 1 : a<b ? -1 : 0;
});
}
}
]
}
};
};
grunt.file.expand
require('grunt-file-order'); // global addition to grunt
var sourcedir = "./src";
var files = grunt.file.expand({
order: function(filepaths) {
// sort alphabetically
return filepaths.sort(function(a,b) {
return a>b ? 1 : a<b ? -1 : 0;
});
}
}, sourcedir);
FAQs
Helpers for ordering files
The npm package grunt-file-order receives a total of 129 weekly downloads. As such, grunt-file-order popularity was classified as not popular.
We found that grunt-file-order 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
ESLint now supports HTML linting with 48 new rules, expanding its language plugin system to cover more of the modern web development stack.
Security News
CISA is discontinuing official RSS support for KEV and cybersecurity alerts, shifting updates to email and social media, disrupting automation workflows.
Security News
The MCP community is launching an official registry to standardize AI tool discovery and let agents dynamically find and install MCP servers.