Update server-side code to be more es6-ey
Review Request #9541 — Created Jan. 26, 2018 and submitted — Latest diff uploaded
This change changes the server-side code in Sonar to use ES6 modules and
more idiomatic and consistent syntax. The only thing left that's still
usingmodule.exports
islib/schema
, which manipulates the exports at
runtime (something ES6 modules can't do). A future refactor will address
this.As part of this, I've updated the
aws-sdk
andmemjs
dependencies to
get newer versions which support promises. This allows us to move
entirely over to native promises, eliminating the Q library.
Went through the various functionality of the server and verified that
things work as expected.
Diff Revision 2
This is not the most recent revision of the diff. The latest diff is revision 3. See what's changed.
.gitignore |
---|
package.json |
---|
package-lock.json |
---|
server.js |
---|
lib/api.js |
---|
lib/asana.js |
---|
lib/cache.js |
---|
lib/config.js |
---|
lib/init.js |
---|
lib/reviewboard.js |
---|
lib/routes.js |
---|
lib/schema.js |
---|
lib/slack.js |
---|