Commit bd8f5e9b by Torkel Ödegaard

fix(build): fixed build after change that made panels into proper plugins

parent 29f6283e
......@@ -8,9 +8,7 @@ module.exports = function(config) {
expand: true,
cwd: '<%= genDir %>',
src: [
//'index.html',
'app/panels/**/*.html',
'app/partials/**/*.html'
'app/**/*.html',
],
dest: '<%= genDir %>'
}
......
......@@ -4,7 +4,6 @@ module.exports = function(config) {
'Gruntfile.js',
'<%= srcDir %>/app/**/*.js',
'<%= srcDir %>/plugins/**/*.js',
'!<%= srcDir %>/app/panels/*/{lib,leaflet}/*',
'!<%= srcDir %>/app/dashboards/*'
],
options: {
......@@ -20,4 +19,4 @@ module.exports = function(config) {
"disallowRightStickedOperators": ["?", "+", "/", "*", ":", "=", "==", "===", "!=", "!==", ">", ">=", "<", "<="],
"requireRightStickedOperators": ["!"],
"requireLeftStickedOperators": [","],
*/
\ No newline at end of file
*/
......@@ -18,9 +18,8 @@ module.exports = function(config) {
'dist/*',
'sample/*',
'<%= srcDir %>/vendor/*',
'<%= srcDir %>/app/panels/*/{lib,leaflet}/*',
'<%= srcDir %>/app/dashboards/*'
]
}
};
};
\ No newline at end of file
};
......@@ -62,11 +62,11 @@ module.exports = function(config,grunt) {
];
var fs = require('fs');
var panelPath = config.srcDir + '/app/panels';
var panelPath = config.srcDir + '/app/plugins/panels';
// create a module for each directory in public/app/panels/
fs.readdirSync(panelPath).forEach(function (panelName) {
requireModules[0].include.push('app/panels/'+panelName+'/module');
requireModules[0].include.push('app/plugins/panels/'+panelName+'/module');
});
return { options: options };
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment