Skip to content

Commit eadad1a

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 e4f77ed commit eadad1a

9 files changed

+1693
-1990
lines changed

.gitignore

+1
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

+6
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: 5000
6+
};

.travis.yml

+1-3
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

-71
This file was deleted.

bin/aglio.js

+1-1
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

+9
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)