mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
clean up Gruntfile to be more consistent
This commit is contained in:
parent
78a994e439
commit
5b6b0c132a
@ -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
|
||||
|
14
Gruntfile.js
14
Gruntfile.js
@ -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");
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user