mirror of
https://github.com/node-red/node-red.git
synced 2023-10-10 13:36:53 +02:00
Update Gruntfile so only core nodes are linted.
This commit is contained in:
parent
8a6d11b191
commit
0dbf43d0aa
11
Gruntfile.js
11
Gruntfile.js
@ -53,10 +53,9 @@ module.exports = function(grunt) {
|
|||||||
'Gruntfile.js',
|
'Gruntfile.js',
|
||||||
'red.js',
|
'red.js',
|
||||||
'red/**/*.js',
|
'red/**/*.js',
|
||||||
'nodes/**/*.js',
|
'nodes/core/*/*.js',
|
||||||
'editor/js/**/*.js'
|
'editor/js/**/*.js'
|
||||||
],
|
],
|
||||||
|
|
||||||
core: {
|
core: {
|
||||||
files: {
|
files: {
|
||||||
src: [
|
src: [
|
||||||
@ -68,7 +67,7 @@ module.exports = function(grunt) {
|
|||||||
},
|
},
|
||||||
nodes: {
|
nodes: {
|
||||||
files: {
|
files: {
|
||||||
src: [ 'nodes/**/*.js' ]
|
src: [ 'nodes/core/*/*.js' ]
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
editor: {
|
editor: {
|
||||||
@ -81,7 +80,7 @@ module.exports = function(grunt) {
|
|||||||
src: ['test/**/*.js']
|
src: ['test/**/*.js']
|
||||||
},
|
},
|
||||||
options: {
|
options: {
|
||||||
"expr": true
|
"expr": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -342,12 +341,11 @@ module.exports = function(grunt) {
|
|||||||
});
|
});
|
||||||
|
|
||||||
grunt.registerTask('setDevEnv',
|
grunt.registerTask('setDevEnv',
|
||||||
'Sets NODE_ENV=development to non-minified assets are used',
|
'Sets NODE_ENV=development so non-minified assets are used',
|
||||||
function () {
|
function () {
|
||||||
process.env.NODE_ENV = 'development';
|
process.env.NODE_ENV = 'development';
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
||||||
grunt.registerTask('default',
|
grunt.registerTask('default',
|
||||||
'Builds editor content then runs code style checks and unit tests on all components',
|
'Builds editor content then runs code style checks and unit tests on all components',
|
||||||
['build','test-core','test-editor','test-nodes']);
|
['build','test-core','test-editor','test-nodes']);
|
||||||
@ -376,5 +374,4 @@ module.exports = function(grunt) {
|
|||||||
'Create distribution zip file',
|
'Create distribution zip file',
|
||||||
['build','clean:release','copy:release','compress:release']);
|
['build','clean:release','copy:release','compress:release']);
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user