mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Fixes to requirejs build task to include all modules, Fixes #779
This commit is contained in:
parent
a9d96ccc8c
commit
4798aa4789
@ -1,4 +1,6 @@
|
|||||||
module.exports = function(config,grunt) {
|
module.exports = function(config,grunt) {
|
||||||
|
'use strict';
|
||||||
|
|
||||||
var _c = {
|
var _c = {
|
||||||
build: {
|
build: {
|
||||||
options: {
|
options: {
|
||||||
@ -59,12 +61,15 @@ module.exports = function(config,grunt) {
|
|||||||
'directives/all',
|
'directives/all',
|
||||||
'jquery.flot.pie',
|
'jquery.flot.pie',
|
||||||
'angular-dragdrop',
|
'angular-dragdrop',
|
||||||
|
'controllers/all',
|
||||||
|
'routes/all',
|
||||||
|
'components/partials',
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
var fs = require('fs');
|
var fs = require('fs');
|
||||||
var panelPath = config.srcDir+'/app/panels'
|
var panelPath = config.srcDir+'/app/panels';
|
||||||
|
|
||||||
// create a module for each directory in src/app/panels/
|
// create a module for each directory in src/app/panels/
|
||||||
fs.readdirSync(panelPath).forEach(function (panelName) {
|
fs.readdirSync(panelPath).forEach(function (panelName) {
|
||||||
|
Loading…
Reference in New Issue
Block a user