2014-05-31 15:20:12 +02:00
|
|
|
module.exports = function(config) {
|
|
|
|
|
return {
|
2014-06-01 16:57:59 +02:00
|
|
|
grafana: {
|
2014-05-31 15:20:12 +02:00
|
|
|
cwd: '<%= tempDir %>',
|
2014-06-02 20:29:30 +02:00
|
|
|
src: ['app/**/*.html', '!app/panels/*/module.html'],
|
2014-05-31 15:20:12 +02:00
|
|
|
dest: '<%= tempDir %>/app/components/partials.js',
|
2014-06-01 16:57:59 +02:00
|
|
|
options: {
|
|
|
|
|
bootstrap: function(module, script) {
|
|
|
|
|
return "define('components/partials', ['angular'], function(angular) { \n" +
|
|
|
|
|
"angular.module('kibana').run(['$templateCache', function($templateCache) { \n" +
|
|
|
|
|
script +
|
|
|
|
|
'\n}]);' +
|
|
|
|
|
'\n});';
|
|
|
|
|
}
|
|
|
|
|
}
|
2014-05-31 15:20:12 +02:00
|
|
|
}
|
|
|
|
|
};
|
|
|
|
|
};
|