grafana/tasks/options/ngtemplates.js

19 lines
524 B
JavaScript
Raw Normal View History

module.exports = function(config) {
return {
grafana: {
cwd: '<%= tempDir %>',
2015-02-02 15:15:15 -06:00
src: ['app/**/*.html'],
dest: '<%= tempDir %>/app/components/partials.js',
options: {
bootstrap: function(module, script) {
return "define('components/partials', ['angular'], function(angular) { \n" +
2014-07-28 11:11:52 -05:00
"angular.module('grafana').run(['$templateCache', function($templateCache) { \n" +
script +
'\n}]);' +
'\n});';
}
}
}
};
};