2014-05-31 21:20:12 +08:00
|
|
|
module.exports = function(config) {
|
|
|
|
return {
|
2014-06-01 22:57:59 +08:00
|
|
|
grafana: {
|
2014-05-31 21:20:12 +08:00
|
|
|
cwd: '<%= tempDir %>',
|
2014-06-03 02:29:30 +08:00
|
|
|
src: ['app/**/*.html', '!app/panels/*/module.html'],
|
2014-05-31 21:20:12 +08:00
|
|
|
dest: '<%= tempDir %>/app/components/partials.js',
|
2014-06-01 22:57:59 +08: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 21:20:12 +08:00
|
|
|
}
|
|
|
|
};
|
|
|
|
};
|