mailtrain/Gruntfile.js

37 lines
992 B
JavaScript
Raw Normal View History

2016-04-04 12:36:30 +00:00
'use strict';
module.exports = function (grunt) {
// Project configuration.
grunt.initConfig({
eslint: {
2016-08-29 10:57:27 +00:00
all: ['lib/**/*.js', 'test/**/*.js', 'config/**/*.js', 'Gruntfile.js', 'app.js', 'index.js']
2016-04-04 12:36:30 +00:00
},
nodeunit: {
all: ['test/**/*-test.js']
2017-03-04 16:15:16 +00:00
},
jsxgettext: {
test: {
files: [{
src: ['views/**/*.hbs', 'lib/**/*.js', 'routes/**/*.js', 'services/**/*.js', 'app.js', 'index.js', '!ignored'],
output: 'mailtrain.pot',
'output-dir': './languages/'
}],
options: {
keyword: ['translate', '_']
}
}
2016-04-04 12:36:30 +00:00
}
});
// Load the plugin(s)
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
2017-03-04 16:15:16 +00:00
grunt.task.loadTasks('tasks');
2016-04-04 12:36:30 +00:00
// Tasks
2017-03-04 16:15:16 +00:00
grunt.registerTask('default', ['eslint', 'nodeunit', 'jsxgettext']);
2016-04-04 12:36:30 +00:00
};