Граф коммитов

348 Коммитов

Автор SHA1 Сообщение Дата
Ed Morley 65b7f4ab45
Bug 1507172 - Use Prettier for formatting JS/JSX (#4276)
Since it's more reliable (and strict) at code formatting than ESLint.
We use it via an ESLint plugin, and so disable the style-related AirBnB
preset rules, leaving the AirBnB guide to handle only correctness and
best practices rules.

It's highly encouraged to use an IDE integration or Git commit hook
to run Prettier (or `yarn lint --fix`) automatically. See:
* https://prettier.io/docs/en/editors.html
* https://prettier.io/docs/en/precommit.html

We may consider enabling a git commit hook out of the box (using eg
Husky) in the future, however they have previously been known to
interfere with partial-staging workflows, so would need to test the
fixes they have made for them thoroughly first.

In future PRs we may also want to start formatting JSON/CSS/Markdown
using Prettier too.
2018-11-16 08:28:34 +00:00
Renovate Bot 4e3bcfa1a8 Update Node.js to v11.2.0 2018-11-16 07:09:20 +00:00
Renovate Bot 4252d7eb8a Update dependency karma-jasmine to v2 2018-11-16 06:57:18 +00:00
Renovate Bot 0a9993f798 Update dependency auth0-js to v9.8.2 2018-11-14 17:21:07 +00:00
renovate[bot] 2005e74f68 Update react monorepo to v16.6.3 (#4271) 2018-11-14 08:31:36 +00:00
Renovate Bot 378b8aa5d1 Update dependency react-redux to v5.1.1 2018-11-12 08:44:45 +00:00
Renovate Bot 4c12ccc483 Update dependency eslint to v5.9.0 2018-11-12 08:22:07 +00:00
renovate[bot] 4ab1d82697 Update dependency popper.js to v1.14.5 (#4252) 2018-11-09 14:37:00 +00:00
Cameron Dawson 3ad320d958 Bug 1450045 - Convert Logviewer to ReactJS (#4223)
And switch to using react-lazylog instead of unified-logviewer.
2018-11-09 09:15:00 +00:00
Renovate Bot e33a1dbb8c Update dependency enzyme-adapter-react-16 to v1.7.0 2018-11-09 08:39:24 +00:00
Renovate Bot 43bd04f138 Update Yarn to v1.12.3 2018-11-09 07:40:13 +00:00
Renovate Bot 2d999cf67b Update dependency taskcluster-client-web to v8.1.0 2018-11-09 07:38:12 +00:00
Renovate Bot 160a4d8007 Update dependency webpack to v4.25.1 2018-11-08 07:26:00 +00:00
Renovate Bot c849cdcf56 Update react monorepo to v16.6.1 2018-11-08 07:20:12 +00:00
Renovate Bot 9574e09950 Update dependency ajv to v6.5.5 2018-11-06 08:16:38 +00:00
Renovate Bot 038ce63e2a Update dependency json-e to v2.7.1 2018-11-05 10:41:55 +00:00
Renovate Bot c1122e1232 Update dependency fetch-mock to v7.2.5 2018-11-05 10:28:03 +00:00
Ed Morley 565ae4c13e
Bug 1364894 - Upgrade from Neutrino 4 to 9 (#4216)
Neutrino controls our frontend linting, transpilation, source-maps,
testing, dev-server and optimisation of production builds.

Highlights of the upgrade are:

* Major version updates to the individual tools within (such as webpack,
  Babel and ESLint), significantly improving performance, fixing
  transpilation/minification correctness bugs, adding support for newer
  ECMAScript features, and increasing linter coverage.
* Hot reloading in the dev server now works for all entry-points and not
  just the jobs view, shortening the feedback cycle.
* Reduced bundle size due to webpack 4's tree shaking, scope hoisting,
  automatic shared/vendor code chunk splitting (no need for the manually
  maintained 'vendor' list).
* CSS is now extracted out of JS, which improves performance, reduces
  bundle size and prevents the initial white flash of un-styled content.
* Support for dynamic imports/code splitting (needed for bug 1502192).
* Support for Jest via a new Jest preset (unblocks bug 1364045).
* Support for public class field declarations (unblocks bug 1480166).
* Improved source-maps (increases the quality of production exception
  trace-backs and fixes several debugger breakpoint bugs).
* Reduced amount of custom configuration required for our fairly complex
  frontend needs, reducing maintenance burden and allowing for easier
  future Neutrino upgrades.

In addition this PR:

* Fixes the WhiteNoise `immutable_file_test()` regex, so that it now
  correctly enables browser caching of images, fonts and source maps.
* Enables webpack-dev-server's overlay feature, which displays any
  compilation errors in the browser, saving having to switch back
  to the console (this can be enabled for warnings too if desired).
* Enables webpack-dev-server's automatic browser-opening feature,
  which saves having to manually navigate to `localhost:5000` after
  running `yarn start`.
* Switches Karma tests to run Firefox in headless mode, reducing the
  workflow disruption when running `yarn test`.
* Uses the new webpack `performance` option to enable maximum asset
  file size thresholds, to help prevent bundle-size regressions.
* Rewrites the `package.json` script commands so that they now work
  correctly on Windows, even when setting environment variables.

Performance comparison:

* Local `yarn build`:
  - Cached: 2m34s -> 23s
  - Uncached: 2m34s -> 58s
* Local `yarn start`:
  - Cached: 34.5s -> 13.6s
  - Uncached: 34.5s -> 31.3s
* Local `yarn test`
  - Cached: 61.5s -> 19.8s
  - Uncached: 61.5s -> 22.0s
* Local `yarn lint`
  - Cached: 3.8s -> 1.8s
  - Uncached: 13.7s -> 13.4s
* Travis end-to-end time:
  9 minutes -> 6 minutes
* Heroku deploy end-to-end time:
  14 minutes -> 9 minutes
2018-11-02 18:48:28 +00:00
Renovate Bot c5a71be0ea Update Node.js to v11.1.0 2018-11-02 13:32:38 +00:00
Renovate Bot cbf14f4816 Update Yarn to v1.12.1 2018-10-31 14:25:18 +00:00
Ed Morley 4ee2cd77c5
Bug 1502290 - Update to Node.js 11 (#4193)
https://nodejs.org/en/blog/release/v11.0.0/
2018-10-29 10:45:05 +00:00
Renovate Bot a8d327dc4c Update dependency react-redux to v5.1.0 2018-10-29 09:10:48 +00:00
Renovate Bot d9011634c6 Update dependency fetch-mock to v7.2.2 2018-10-29 09:04:25 +00:00
Renovate Bot 6920282889 Update dependency jasmine-core to v3.3.0 2018-10-26 19:15:32 +01:00
Renovate Bot 50f2fa5a5b Update dependency reactstrap to v6.5.0 2018-10-25 08:58:09 -07:00
Renovate Bot c417d3ba9b Update dependency auth0-js to v9.8.1 2018-10-25 15:56:00 +01:00
Renovate Bot ae11cceb8d Update react monorepo to v16.6.0 2018-10-25 11:47:20 +01:00
Renovate Bot ae9f74e10d Update dependency react-select to v2.1.1 2018-10-25 11:22:14 +01:00
Renovate Bot a2760ebede Update dependency fetch-mock to v7.2.0 2018-10-23 11:59:27 +01:00
Cameron Dawson 0a6a3de460
Convert perf series function to react (#4155) 2018-10-18 14:56:30 -07:00
Renovate Bot c77088847c Update dependency fetch-mock to v7.1.0 2018-10-18 12:07:03 +01:00
Renovate Bot 6a6568358b Update dependency redux to v4.0.1 2018-10-14 19:19:58 +01:00
Cameron Dawson 2cf1dd44af
Bug 1498076 - Fix browser back button (#4136)
* Fix browser back button by removing angular-router
* Remove dependency of the unused Angular httpProvider
* Remove usage of angular1-ui-bootstrap from treeherder
  Perfherder is still using it, so not removing from package.json
* Remove unused Angular sanitize
2018-10-12 15:11:35 -07:00
Renovate Bot ca5bc1d11a Update Node.js to v10.12.0 2018-10-11 01:31:05 +01:00
Renovate Bot 9c0d8ad4f1 Update dependency enzyme-adapter-react-16 to v1.6.0 2018-10-06 23:14:19 +01:00
Renovate Bot 5bd2db31c3 Update dependency enzyme to v3.7.0 2018-10-06 22:16:12 +01:00
renovate[bot] 7f7076e858 Update dependency react-select to v2.1.0 (#4096) 2018-10-05 16:27:59 -07:00
Renovate Bot 8dbbf6ea7f Update angular1 monorepo to v1.7.5 2018-10-05 23:38:14 +01:00
Renovate Bot 7ea1485611 Update dependency fetch-mock to v7.0.7 2018-10-04 16:11:12 +01:00
Renovate Bot f96cd46644 Update Yarn to v1.12.0 2018-10-04 13:44:27 +01:00
renovate[bot] bb39a9dbd1 Update dependency fetch-mock to v7 (#4065) 2018-10-02 09:39:34 -07:00
Ed Morley ebc28494ff
Switch to the new package name for angular-ui-router (#4074)
The `angular-ui-router` package has been renamed, but otherwise the
contents are identical:
https://registry.npmjs.org/angular-ui-router/-/angular-ui-router-0.4.3.tgz
https://registry.npmjs.org/@uirouter/angularjs/-/angularjs-0.4.3.tgz

Fixes:

```
warning angular-ui-router@0.4.3:
This npm package 'angular-ui-router' has been renamed to
'@uirouter/angularjs'. Please update your package.json. See
https://ui-router.github.io/blog/uirouter-scoped-packages/
```

I've also added the package to the Renovate ignore list, since
otherwise Renovate will open a new PR due to the name change, and
we're intentionally not updating it (see #4052 and bug 1408784).
2018-09-27 19:13:31 +01:00
Renovate Bot b1610b793c Update Yarn to v1.11.1 2018-09-27 00:15:59 +01:00
Ed Morley 05a421c0e2
Bug 1364894 - Fix ESLint issues found by Neutrino 9 (#4056)
This pre-emptively fixes the issues found by the newer ESLint and
ESLint plugins that come with Neutrino 9 - in order to reduce the
size of the Neutrino 9 PR.
2018-09-24 17:59:14 +01:00
Renovate Bot ffa2dab52f Update dependency ajv to v6.5.4 2018-09-24 13:05:04 +01:00
Renovate Bot 63a49acf90 Update Node.js to v10.11.0 2018-09-20 14:07:09 +01:00
Renovate Bot 34cab7905c Update react monorepo to v16.5.2 2018-09-19 21:36:21 +01:00
Cameron Dawson adaae617a6 Bug 1450028 - Convert Keyboard Navigation to ReactJS 2018-09-17 16:26:50 -07:00
Renovate Bot 99d98e31d0 Update react monorepo to v16.5.1 2018-09-17 09:42:03 +01:00
Renovate Bot 6ea96ff11d Update dependency react-day-picker to v7.2.4 2018-09-14 12:55:06 +01:00