canvas-lms/guard
Clay Diffrient ba937b89f1 Start using Babel to compile files in the JSX folder
This replaces the deprecated JSX compiler formerly provided by
react-tools to use the Babel preprocessor.

This allows us to use ES6+ inside Canvas :)

Unfortunately, we had the jsx pragma hanging around all over the place
and Babel considers this an ERROR now... so I ripped them all out.

Babel also turns on strict mode for JS files, which means I needed
to fix a few things in other places to make it work such as duplicate
object keys and variables without declaration. DueDateTokenWrapper.jsx
had a problem with a 'this' being seen on the global level which Babel
detects to be nothing so it throws in an undefined. I reworked it so
that the function should still have the intended effect and 'this'
is properly scoped.

closes CNVS-24123

Test Plan
  - Make sure all JSX compiles via Guard and via js:jsx rake task
  - Make sure nothing is broken in any of the react-y areas of
    Canvas.

Change-Id: I5ab8f7f435504f8269e2b7da96813337676cf175
Reviewed-on: https://gerrit.instructure.com/65451
Reviewed-by: Benjamin Porter <bporter@instructure.com>
Tested-by: Jenkins
QA-Review: Matt Fairbourn <mfairbourn@instructure.com>
Product-Review: Clay Diffrient <cdiffrient@instructure.com>
2015-10-23 20:54:35 +00:00
..
brandable_css.rb A new way of doing css/sass & New Canvas Theme Editor 2015-07-02 22:42:18 +00:00
coffeescript.rb don't make coffee sourcemaps, it's easier to debug real js 2015-06-02 15:53:28 +00:00
ember_bundles.rb updated ember to 1.0.0 2013-09-05 16:46:33 +00:00
ember_templates.rb extract handlebars_tasks gem 2014-04-21 19:48:22 +00:00
js_extensions.rb js extension mechanism for plugins, refs CNVS-5434 2013-04-26 16:23:35 +00:00
jst.rb move 'parallel' gem to the everything group 2015-07-20 22:03:21 +00:00
jstcss.rb fix a bug in the jstcss guard 2014-09-15 15:19:26 +00:00
jsx.rb Start using Babel to compile files in the JSX folder 2015-10-23 20:54:35 +00:00
styleguide.rb fix styleguide + guard issues 2013-04-12 19:32:38 +00:00