clean up Gruntfile to be more consistent

This commit is contained in:
Dave Conway-Jones 2017-11-06 22:53:40 +00:00
parent 78a994e439
commit 5b6b0c132a
No known key found for this signature in database
GPG Key ID: 9E7F9C73F5168CD4
3 changed files with 15 additions and 4 deletions

View File

@ -12,6 +12,7 @@
//"unused": true, // Check for unused functions and variables
"loopfunc": true, // allow functions to be defined in loops
//"expr": true, // allow ternery operator syntax...
"shadow": true, // allow variable shadowing (re-use of names...)
"sub": true, // don't warn that foo['bar'] should be written as foo.bar
"proto": true, // allow setting of __proto__ in node < v0.12
"esversion": 6 // allow es6

View File

@ -17,10 +17,20 @@ module.exports = function(grunt) {
},
jshint: {
options: {
jshintrc:".jshintrc", // Use external file
jshintrc:true // Use external jshinrc file configured as below
// http://www.jshint.com/docs/options/
//"asi": true, // allow missing semicolons
//"curly": true, // require braces
//"eqnull": true, // ignore ==null
//"forin": true, // require property filtering in "for in" loops
//"immed": true, // require immediate functions to be wrapped in ( )
//"nonbsp": true, // warn on unexpected whitespace breaking chars
////"strict": true, // commented out for now as it causes 100s of warnings, but want to get there eventually
//"loopfunc": true, // allow functions to be defined in loops
//"sub": true // don't warn that foo['bar'] should be written as foo.bar
},
all: {
src: ['*/*.js','*/*/*.js'],
src: ['*/*/*.js'],
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)) {
console.log( "\033[30m filtered out \033[32m:\033[37m " + filepath + "\033[0m");

View File

@ -1,6 +1,6 @@
{
"name": "node-red-nodes",
"version": "0.0.9",
"version": "0.0.10",
"description": "Node-RED-nodes package to hold the test framework ONLY - use npm to install individual nodes",
"homepage": "http://nodered.org",
"license": "Apache-2.0",
@ -20,7 +20,7 @@
}
],
"keywords": [
"Node-RED",
"node-red",
"nodes",
"iot",
"ibm",