Skip to content

digisec/grunt-fileslist

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published