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/Gruntfile.js

33 lines
796 B

/* jshint node:true */
'use strict';
module.exports = function (grunt) {
var config = {
pkg: grunt.file.readJSON('package.json'),
srcDir: 'src',
destDir: 'dist',
tempDir: 'tmp',
};
// load plugins
require('load-grunt-tasks')(grunt);
// load task definitions
grunt.loadTasks('tasks');
// Utility function to load plugin configurations into an object
function loadConfig(path) {
var object = {};
require('glob').sync('*', {cwd: path}).forEach(function(option) {
object[option.replace(/\.js$/,'')] = require(path + option)(config);
});
return object;
}
// Merge that object with what with whatever we have here
grunt.util._.extend(config, loadConfig('./tasks/options/'));
// pass the config to grunt
grunt.initConfig(config);
};