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 %>',
|
2015-02-03 05:15:15 +08:00
|
|
|
src: ['app/**/*.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" +
|
2014-07-29 00:11:52 +08:00
|
|
|
"angular.module('grafana').run(['$templateCache', function($templateCache) { \n" +
|
2014-06-01 22:57:59 +08:00
|
|
|
script +
|
|
|
|
'\n}]);' +
|
|
|
|
'\n});';
|
|
|
|
}
|
|
|
|
}
|
2014-05-31 21:20:12 +08:00
|
|
|
}
|
|
|
|
};
|
2014-11-12 04:06:01 +08:00
|
|
|
};
|