Skip to content

Commit 28f5e40

Browse files
committed
Update node dependencies
Use NPM scripts to run coffeelint - Update coffeelint to 2.1.0 Also update Coffeescript and explictly depends on version 2, Use `undefined` as default argument instead of null, it's breaking changes on Coffescript 2. See: - https://coffeescript.org/#breaking-changes-default-values - jashkenas/coffeescript#2201 - Remove grunt and its plugins inlcude grunt-coffeelint, grunt-contrib-coffee and grunt-mocha-cov, Remove Gruntfile.coffee by using NPM scripts, and remove path of "npm bin" in scripts, Because the command of "npm run" adds node_modules/.bin to the PATH provided to scripts automatically. - Update vulnerable dependencies include socket.io, chokidar - Explictly depends on mocha Add --exit flag "By default, Mocha will no longer force the process to exit once all tests complete. This means any test code (or code under test) which would normally prevent node from exiting will do so when run in Mocha. Supply the --exit flag to revert to pre-v4.0.0 behavior" mochajs/mocha#2879 https://mochajs.org/#-exit - Use c8 to output coverage instead of blanket - Add generate-examples scripts To replace 'gen-examples' task defined in Gruntfile
1 parent 015e620 commit 28f5e40

10 files changed

+1699
-1989
lines changed

.c8rc.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"exclude": [
3+
".mocharc.js",
4+
"test/**.coffee"
5+
]
6+
}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.idea
2+
/coverage
23
/cache
34
node_modules
45
npm-debug.log

.mocharc.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
module.exports = {
2+
require: 'coffeescript/register',
3+
extension: 'coffee',
4+
exit: true,
5+
timeout: 3000
6+
};

.travis.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,5 @@ addons:
1515
- gcc-4.8
1616
- g++-4.8
1717
env: CXX="g++-4.8" CC="gcc-4.8"
18-
before_install:
19-
- npm install -g grunt-cli
2018
after_script:
21-
- grunt coveralls
19+
- npm run coveralls

Gruntfile.coffee

Lines changed: 0 additions & 71 deletions
This file was deleted.

bin/aglio.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
process.title = 'aglio';
44

5-
require('../lib/bin').run(null, function(err){
5+
require('../lib/bin').run(undefined, function(err){
66
if(err){
77
process.exit(1);
88
}

coffeelint.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
{
2+
"indentation": {
3+
"value": 4
4+
},
5+
"max_line_length": {
6+
"value": 120,
7+
"level": "warn"
8+
}
9+
}

0 commit comments

Comments
 (0)