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

27 lines
730 B

module.exports = function(grunt) {
"use strict";
grunt.registerTask('systemjs:build', function() {
var path = require("path");
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/systemjs.conf.js');
console.log('Starting systemjs-builder');
builder
.bundle('app/app + app/features/all', 'public_gen/app/app.js')
.then(function() {
console.log('Build complete');
done();
})
.catch(function(err) {
console.log('Build error');
console.log(err);
done();
});
});
};