Skip to content
No description or website provided.
JavaScript
Find file
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
tasks
test
.gitignore
.jshintrc.json
Gruntfile.js
LICENSE-MIT
README.md
package.json

README.md

grunt-fileslist

Grunt plugin for files list creation using dot-lo templates, So you can create a custom VM,XML,JSON or whatever format you like, populated by the included files

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-fileslist --save-dev

One the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-fileslist');

The "fileslist" task

Usage Examples

In your project's Gruntfile, add a section named fileslist to the data object passed into grunt.initConfig().

grunt.initConfig({
    fileslist: {
        myFilesList: {
                   dest: 'target/result.xml',
                   includes: ['**/*.js', '!**/~*'],
                   base: 'test/resources',
                   itemTemplate: '\t<entry>' +
                       '\n\t\t<file><%= File %></file>' +
                       '\n\t\t<class><%= Class %></class>' +
                       '\n\t\t<package><%= Package %>/package>' +
                       '\n\t</entry>',
                   itemSeparator: '\n',
                   disableSorting: false,
                   listTemplate: '<filesList>' +
                       '\n\t<%= items %>\n' +
                       '\n</filesList>'
               }
  },
})

Release History

(Nothing yet)

Something went wrong with that request. Please try again.