Files
librenms/tasks/component.js
T
Paul Gear a07849b73a Squashed 'html/js/moment/' content from commit d5ff2cf
git-subtree-dir: html/js/moment
git-subtree-split: d5ff2cfc0000010c37cc5ebe75a5905c943368e4
2014-10-28 05:59:36 +10:00

11 lines
350 B
JavaScript

module.exports = function (grunt) {
grunt.registerTask('component', function () {
var config = JSON.parse(grunt.file.read('component.json'));
config.files = grunt.file.expand('locale/*.js');
config.files.unshift('moment.js');
grunt.file.write('component.json', JSON.stringify(config, true, 2) + '\n');
});
}