Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,11 @@ _Put an `x` in the boxes that apply_

Describe the nature of this change. What problem does it address?

## Checklist
_Put an `x` in the boxes that apply_

- [ ] I have read the [contribution guidelines](https://github.com/node-red/node-red/blob/master/CONTRIBUTING.md)
- [ ] For non-bugfix PRs, I have discussed this change on the mailing list/slack team.
- [ ] I have run `grunt` to verify the unit tests pass
- [ ] I have added suitable unit tests to cover the new/changed functionality

6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,9 @@ node-red-node-*

# Dependency directory
node_modules

# Coverage result
coverage

# npm install log
npm-debug.log.*
21 changes: 21 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
sudo: false
language: node_js
env:
- CXX="g++-4.8"
addons:
apt:
sources:
- ubuntu-toolchain-r-test
packages:
- g++-4.8
- gcc-4.8
node_js:
- "8"
- "7"
- "6"
- "4"
script:
- istanbul cover ./node_modules/.bin/grunt --report lcovonly && istanbul report text && ( cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js || true ) && rm -rf coverage
before_script:
- npm install -g istanbul
- npm install coveralls
25 changes: 25 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
module.exports = function (grunt) {
grunt.initConfig({
simplemocha: {
options: {
timeout: 3000
},
all: {
src: [ 'test/**/*_spec.js' ]
}
},
mocha_istanbul: {
options: {
timeout: 3000
},
coverage: {
src: [ 'test/**/*_spec.js' ]
}
}
});
grunt.loadNpmTasks('grunt-simple-mocha');
grunt.loadNpmTasks('grunt-mocha-istanbul');
grunt.registerTask('default', ['simplemocha']);
grunt.registerTask('coverage', 'Run Istanbul code test coverage task', ['mocha_istanbul']);
};

7 changes: 7 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,13 @@
"minimist": "1.2.0",
"colors": "1.1.2"
},
"devDependencies": {
"grunt": "1.0.1",
"grunt-simple-mocha": "0.4.1",
"grunt-mocha-istanbul": "5.0.2",
"should": "13.1.3",
"del": "3.0.0"
},
"bin": {
"node-red-nodegen": "./bin/node-red-nodegen.js"
}
Expand Down