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

23 Коммитов

Автор SHA1 Сообщение Дата
Valentin Rigal c227e847f5
Upgrade to React 18 (#8095)
* Upgrade to React 18

* Update related packages (rebased)

* Increase max asset size for webpack build to pass

* Replace react-hot-loader by @pmmmwh/react-refresh-webpack-plugin

* Revert "Replace react-hot-loader by @pmmmwh/react-refresh-webpack-plugin"

This reverts commit ca7652a21597fad978fec6a553abdd6b71c959f0.

* Upgrade ESLint

* Run linter

* Update all existing tests with legacy rendering

* Update other tests

* Run linting

* Restrore Eslint 8.21.0

* Restore files (Eslint 8.21.0)

* Lint fix
2024-07-04 14:56:23 +02:00
EvaBardou 6b95fb0492 Serve Redoc in a dedicated chunk 2023-09-05 16:09:21 +02:00
Bastien Abadie 30e4491621 Serve ReDoc inside react app 2023-09-05 16:09:21 +02:00
EvaBardou f3ae12b102 Restore the switch to OpenAPI (require missing dependency) 2023-09-05 16:09:21 +02:00
EvaBardou 0cf36b49aa Revert WhiteNoise and CoreAPI bumps 2023-07-08 01:42:29 +02:00
EvaBardou 7288d69444 Replace CoreAPI by OpenAPI & ReDoc 2023-07-07 00:46:47 +02:00
Joel Maher 0d84ea7458
add glean to treeherder for measuring failure outcomes (#7583)
* add glean to treeherder for measuring failure outcomes

* add glean to treeherder for measuring failure outcomes

* allow for notification of glean metrics and ability to turn on/off glean

* add data review bug

* add updatePinnedJobs function to failureSummaryTab
2023-01-04 14:58:12 -08:00
renovate[bot] 054b9896b0
Update dependency html-loader to v4 (#7543)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-11-07 16:02:06 -08:00
Joel Maher 1856ac448f
Update dependency taskcluster-client-web to v44 (#7502)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2022-08-08 12:24:51 -07:00
Bastien Abadie 4c34414027 Restore support for BACKEND environment variable 2022-06-10 19:50:56 +02:00
Bastien Abadie 050cacf6b7 Configure webpack dev server on all interfaces 2022-06-08 15:28:05 +02:00
Valentin Rigal f2287eb752
Update to Webpack 5 (#7455)
* Update to webpack 5

* Update style-loader to ^3.3.0

* Update copy-webpack-plugin to 11.0.0

* Update css-loader & html-webpack-plugin

* Replace file-loader by a webpack asset

* Replace url-loader by a webpack asset

* Update code imports

* Update webpack config

* Drop process.env.NODE_ENV in eslintrc

* Move webpack related deps to devDependencies

* Suggestion: serve dev server via the webpack module
2022-06-08 15:27:41 +02:00
Valentin Rigal 6b4c36e890
Update webpack 4 build dependencies (#7449) 2022-06-01 12:10:23 +02:00
Valentin Rigal d5ea0e9f53
Restore webpack dev build (#7450) 2022-05-30 21:56:06 +02:00
Bastien Abadie a042d1c49b Do not log config 2022-05-19 15:36:14 +02:00
Bastien Abadie 83e131956b Support production config through merges 2022-05-19 15:36:14 +02:00
Bastien Abadie 60fad519ff Use babel config 2022-05-19 15:36:14 +02:00
Bastien Abadie a7b1b6955e Do not use /app in webpack config 2022-05-19 15:36:14 +02:00
Bastien Abadie 54c2639658 Remove absolute paths from loaders 2022-05-19 15:36:14 +02:00
Bastien Abadie 3aca77a17c Fix lint for webpack files 2022-05-19 15:36:14 +02:00
Bastien Abadie 3e6715f2c8 Promote neutrino dev config 2022-05-19 15:36:14 +02:00
Bastien Abadie 2d73bf3e65 Remove neutrino config 2022-05-19 15:36:14 +02: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