Add frontend assets and plugin bundles
Add the legacy frontend themes, scripts, and plugin assets required by the main SPOTA interfaces.
This commit is contained in:
9
assets/plugins/moment/tasks/component.js
Normal file
9
assets/plugins/moment/tasks/component.js
Normal file
@@ -0,0 +1,9 @@
|
||||
module.exports = function (grunt) {
|
||||
grunt.registerTask('component', function () {
|
||||
var config = JSON.parse(grunt.file.read('component.json'));
|
||||
config.files = grunt.file.expand('lang/*.js');
|
||||
config.files.unshift('moment.js');
|
||||
|
||||
grunt.file.write('component.json', JSON.stringify(config, true, 2));
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user