mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge commit 'a07849b73a0c73c2bcee75d4e1649db239a8b93f' as 'html/js/moment'
This commit is contained in:
10
html/js/moment/tasks/component.js
Normal file
10
html/js/moment/tasks/component.js
Normal file
@@ -0,0 +1,10 @@
|
||||
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');
|
||||
});
|
||||
}
|
Reference in New Issue
Block a user