grunt-file-order
A grunt extension for ordering files after selection.
Adds order
attribute to both config files
and grunt.file.expand
.
Installation
$ npm install --save grunt-file-order
Usage
files
In config ; // global addition to gruntmodule { return copyFiles: files: expand: true src: '<%= sourcedir %>**' dest: '<%= outputdir %>' { // sort alphabetically return filepaths; } ;};
grunt.file.expand
In task ; // global addition to grunt var sourcedir = "./src";var files = gruntfile;