mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
tech(): made config system check for generated css or javascript files and panic if there are none, also if there is a public_gen directory it will use that, even if static root is set to public
This commit is contained in:
@@ -9,7 +9,7 @@ module.exports = function(config) {
|
||||
files : [
|
||||
{
|
||||
expand: true,
|
||||
cwd: '<%= destDir %>',
|
||||
cwd: '<%= tempDir %>',
|
||||
src: ['**/*'],
|
||||
dest: '<%= pkg.name %>-<%= pkg.version %>/',
|
||||
},
|
||||
|
||||
@@ -74,7 +74,7 @@ module.exports = function(config,grunt) {
|
||||
];
|
||||
|
||||
var fs = require('fs');
|
||||
var panelPath = config.genDir+'/app/panels';
|
||||
var panelPath = config.srcDir + '/app/panels';
|
||||
|
||||
// create a module for each directory in public/app/panels/
|
||||
fs.readdirSync(panelPath).forEach(function (panelName) {
|
||||
|
||||
Reference in New Issue
Block a user