grafana/tasks/options/ngtemplates.js

20 lines
550 B
JavaScript
Raw Normal View History

module.exports = function(config) {
return {
grafana: {
2015-09-10 05:42:24 -05:00
cwd: '<%= genDir %>',
2015-02-02 15:15:15 -06:00
src: ['app/**/*.html'],
2015-11-12 07:28:35 -06:00
dest: '<%= genDir %>/app/core/partials.js',
options: {
prefix: 'public/',
bootstrap: function(module, script) {
2015-11-12 07:28:35 -06:00
return "define('app/core/partials', ['app/core/core_module'], function(coreModule) { \n" +
"coreModule.default.run(['$templateCache', function($templateCache) { \n" +
script +
'\n}]);' +
'\n});';
}
}
}
};
};