![]() This change adds support for typescript transpilation to our frontend build via babel, and also updates eslint and canvas_i18nliner to be able to understand typescript as well. The main goal of this PS is to enable developers to add typescript code to the Canvas codebase but to be unopinionated about how type-checking is done; at this stage types will only be checked by running the new `check:ts` or `check:js` scripts (which run the typescript compiler directly), or via integration with an IDE like RubyMine or VS Code. closes LS-2430 flag = none Test plan: BUILD STEPS: - FE build, i18n build, and tests pass Jenkins - `bin/rails canvas:compile_assets` still works - `RAILS_ENV=production bin/rails convas:compile_assets` still works SPOT CHECKING: - Starting up rails and run `yarn build:js:watch` - Click around Canvas and make sure the frontend still loads as normal Change-Id: I8bb1a0f065e09496a924708dead6fa4518b59496 Reviewed-on: https://gerrit.instructure.com/c/canvas-lms/+/270401 Reviewed-by: Ahmad Amireh <ahmad@instructure.com> Reviewed-by: Nate Armstrong <narmstrong@instructure.com> Tested-by: Service Cloud Jenkins <svc.cloudjenkins@instructure.com> QA-Review: Ahmad Amireh <ahmad@instructure.com> Product-Review: Jeff Largent <jeff.largent@instructure.com> |
||
---|---|---|
.. | ||
etc | ||
coffeeTransformer.js | ||
handlebarsTransformer.js | ||
i18nTransformer.js | ||
imageMock.js | ||
jest-setup.js |