Fixes to requirejs build task to include all modules, Fixes #779

This commit is contained in:
Torkel Ödegaard 2014-09-09 08:24:04 +02:00
parent a9d96ccc8c
commit 4798aa4789

View File

@ -1,4 +1,6 @@
module.exports = function(config,grunt) {
'use strict';
var _c = {
build: {
options: {
@ -59,12 +61,15 @@ module.exports = function(config,grunt) {
'directives/all',
'jquery.flot.pie',
'angular-dragdrop',
'controllers/all',
'routes/all',
'components/partials',
]
}
];
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/
fs.readdirSync(panelPath).forEach(function (panelName) {