From 0dbf43d0aaced84658ba39cf5bba7fe91b63fbd5 Mon Sep 17 00:00:00 2001 From: dceejay Date: Mon, 15 Jun 2015 20:38:40 +0100 Subject: [PATCH] Update Gruntfile so only core nodes are linted. --- Gruntfile.js | 13 +++++-------- 1 file changed, 5 insertions(+), 8 deletions(-) diff --git a/Gruntfile.js b/Gruntfile.js index a7f806ee8..a357ec4fc 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -53,10 +53,9 @@ module.exports = function(grunt) { 'Gruntfile.js', 'red.js', 'red/**/*.js', - 'nodes/**/*.js', + 'nodes/core/*/*.js', 'editor/js/**/*.js' ], - core: { files: { src: [ @@ -68,7 +67,7 @@ module.exports = function(grunt) { }, nodes: { files: { - src: [ 'nodes/**/*.js' ] + src: [ 'nodes/core/*/*.js' ] } }, editor: { @@ -81,7 +80,7 @@ module.exports = function(grunt) { src: ['test/**/*.js'] }, options: { - "expr": true + "expr": true } } }, @@ -340,14 +339,13 @@ module.exports = function(grunt) { } } }); - + grunt.registerTask('setDevEnv', - 'Sets NODE_ENV=development to non-minified assets are used', + 'Sets NODE_ENV=development so non-minified assets are used', function () { process.env.NODE_ENV = 'development'; }); - grunt.registerTask('default', 'Builds editor content then runs code style checks and unit tests on all components', ['build','test-core','test-editor','test-nodes']); @@ -376,5 +374,4 @@ module.exports = function(grunt) { 'Create distribution zip file', ['build','clean:release','copy:release','compress:release']); - };