ngtemplates.js 524 B

123456789101112131415161718
  1. module.exports = function(config) {
  2. return {
  3. grafana: {
  4. cwd: '<%= tempDir %>',
  5. src: ['app/**/*.html'],
  6. dest: '<%= tempDir %>/app/components/partials.js',
  7. options: {
  8. bootstrap: function(module, script) {
  9. return "define('components/partials', ['angular'], function(angular) { \n" +
  10. "angular.module('grafana').run(['$templateCache', function($templateCache) { \n" +
  11. script +
  12. '\n}]);' +
  13. '\n});';
  14. }
  15. }
  16. }
  17. };
  18. };