grunt-gettext-finder
Version:
45 lines (36 loc) • 958 B
JavaScript
/*
* grunt-gettext-finder
* https://github.com/alicoding/grunt-gettext-finder
*
* Copyright (c) 2014 Ali Al Dallal
* Licensed under the MIT license.
*/
;
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
jshint: {
all: [
'Gruntfile.js',
'tasks/*.js'
],
options: {
jshintrc: '.jshintrc',
},
},
// Configuration to be run (and then tested).
gettext_finder: {
files: [ "tmp/views/*.html", "tmp/views/**/*.html" ],
options: {
pathToJSON: [ "tmp/locale/en_US/*.json" ],
ignoreKeys: [ "Blah", "just a var key name", "what does the fox say"],
},
}
});
// Actually load this plugin's task(s).
grunt.loadTasks('tasks');
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-jshint');
// By default, lint.
grunt.registerTask('default', ['jshint', 'gettext_finder']);
};