Skip to content

Commit

Permalink
refactor: Rewrite all source in javascript.
Browse files Browse the repository at this point in the history
Convert everything in /src from coffeescript to Javascript.  Replace coffee build process with
Babel.  Remove most of our dependencies.

BREAKING CHANGE: Officially dropping support for node v4.x.x.
  • Loading branch information
Jason Walton committed May 5, 2018
1 parent 25e607e commit 377d01d
Show file tree
Hide file tree
Showing 21 changed files with 8,114 additions and 1,666 deletions.
8 changes: 8 additions & 0 deletions .babelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"presets": [
["env", {"targets": {"node": "6"}}]
],
"env": {
"test": { "plugins": ["istanbul"] }
}
}
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
/lib
/npm-debug.log
/coverage
/.nyc_output
7 changes: 7 additions & 0 deletions .nycrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"require": ["babel-register"],
"include": ["src/**/*.js"],
"reporter": ["html", "text-summary", "lcov"],
"all": true,
"instrument": false
}
1 change: 0 additions & 1 deletion examples/receiver.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Promise = global.Promise || require('es6-promise').Promise;
var amqp = require('..');

var QUEUE_NAME = 'amqp-connection-manager-sample1'
Expand Down
1 change: 0 additions & 1 deletion examples/sender.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
Promise = global.Promise || require('es6-promise').Promise;
var amqp = require('..');
var wait = require('../lib/helpers').wait;

Expand Down

0 comments on commit 377d01d

Please sign in to comment.