mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
19 lines
524 B
JavaScript
19 lines
524 B
JavaScript
module.exports = function(config) {
|
|
return {
|
|
grafana: {
|
|
cwd: '<%= tempDir %>',
|
|
src: ['app/**/*.html'],
|
|
dest: '<%= tempDir %>/app/components/partials.js',
|
|
options: {
|
|
bootstrap: function(module, script) {
|
|
return "define('components/partials', ['angular'], function(angular) { \n" +
|
|
"angular.module('grafana').run(['$templateCache', function($templateCache) { \n" +
|
|
script +
|
|
'\n}]);' +
|
|
'\n});';
|
|
}
|
|
}
|
|
}
|
|
};
|
|
};
|