1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00

tart up Gruntfile

This commit is contained in:
dceejay 2015-03-26 19:43:30 +00:00
parent d511ee69fb
commit 32f6dc0346

View File

@ -14,9 +14,8 @@
* limitations under the License. * limitations under the License.
**/ **/
// Project configuration for Node-RED-nodes
module.exports = function(grunt) { module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({ grunt.initConfig({
simplemocha: { simplemocha: {
options: { options: {
@ -47,7 +46,7 @@ module.exports = function(grunt) {
src: ['*/*.js','*/*/*.js'], src: ['*/*.js','*/*/*.js'],
filter: function(filepath) { // on some developer machines the test coverage HTML report utilities cause further failures filter: function(filepath) { // on some developer machines the test coverage HTML report utilities cause further failures
if ((filepath.indexOf("coverage/") !== -1) || (filepath.indexOf("node_modules") !== -1)) { if ((filepath.indexOf("coverage/") !== -1) || (filepath.indexOf("node_modules") !== -1)) {
console.log("Filtered out " + filepath + " from the jshint checks"); console.log( "\033[30m filtered out \033[32m:\033[37m " + filepath + "\033[0m");
return false; return false;
} else { } else {
return true; return true;