Use babel to run ES6 on the server.
Review Request #7246 — Created April 24, 2015 and submitted
We already have ES6 on the client courtesy of traceur, but not on the server.
Babel provides a node wrapper that will precompile everything, allowing much
of the server-side code to use handy features like let and arrow functions.
Verified that everything still works on both dev and production.
Review request changed
- Commit:
-
69697fb1110ba18e43ace67b2086943874c3b07edb0528d3e688dfa0c404e631e1b4f5eef8f845cc
-
Tool: PEP8 Style Checker Ignored Files: lib/config.js package.json server.js bin/load-slack-users lib/students.js bin/add-calendar-entry lib/init.js lib/reviewboard.js lib/routes.js README.md lib/slack.js Tool: Pyflakes Ignored Files: lib/config.js package.json server.js bin/load-slack-users lib/students.js bin/add-calendar-entry lib/init.js lib/reviewboard.js lib/routes.js README.md lib/slack.js
Tool: PEP8 Style Checker Ignored Files: lib/config.js package.json server.js bin/load-slack-users lib/students.js bin/add-calendar-entry lib/init.js lib/reviewboard.js lib/routes.js README.md lib/slack.js Tool: Pyflakes Ignored Files: lib/config.js package.json server.js bin/load-slack-users lib/students.js bin/add-calendar-entry lib/init.js lib/reviewboard.js lib/routes.js README.md lib/slack.js