The open and composable observability and data visualization platform. Visualize metrics, logs, and traces from multiple sources like Prometheus, Loki, Elasticsearch, InfluxDB, Postgres and many more.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
grafana/tasks/systemjs_task.js

37 lines
1.0 KiB

module.exports = function(grunt) {
"use strict";
grunt.registerTask('systemjs:build', function() {
var Builder = require('systemjs-builder');
var done = this.async();
// optional constructor options
// sets the baseURL and loads the configuration file
var builder = new Builder('public_gen', 'public_gen/app/system.conf.js');
console.log('Starting systemjs-builder');
var modules = [
'app/app',
'app/features/all',
'app/plugins/panel/**/module',
'app/plugins/datasource/graphite/module',
'app/plugins/datasource/influxdb/module',
'app/plugins/datasource/elasticsearch/module',
];
var expression = modules.join(' + ');
builder
.bundle(expression, 'public_gen/app/app_bundle.js')
.then(function() {
console.log('Build complete');
done();
grunt.task.run('concat:bundle_and_boot');
})
.catch(function(err) {
console.log('Build error');
console.log(err);
done(false);
});
});
};