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:
Torkel Ödegaard
2015-09-10 13:34:32 +02:00
parent da832368f0
commit 0b5f40e66c
4 changed files with 25 additions and 8 deletions

View File

@@ -9,7 +9,7 @@ module.exports = function(config) {
files : [
{
expand: true,
cwd: '<%= destDir %>',
cwd: '<%= tempDir %>',
src: ['**/*'],
dest: '<%= pkg.name %>-<%= pkg.version %>/',
},

View File

@@ -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) {