2014-04-08 21:40:33 +04:00
|
|
|
{
|
2015-06-02 00:40:08 +03:00
|
|
|
"name": "treeherder",
|
|
|
|
"description": "Mozilla Treeherder reporting dashboard",
|
2014-09-05 16:20:50 +04:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2015-05-18 17:47:06 +03:00
|
|
|
"url": "https://github.com/mozilla/treeherder.git"
|
2014-09-05 16:20:50 +04:00
|
|
|
},
|
2015-11-02 02:32:26 +03:00
|
|
|
"license": "MPL-2.0",
|
2015-12-23 22:07:12 +03:00
|
|
|
"engines": {
|
2018-12-26 19:25:56 +03:00
|
|
|
"node": "11.6.0",
|
2018-11-08 20:42:29 +03:00
|
|
|
"yarn": "1.12.3"
|
2015-12-23 22:07:12 +03:00
|
|
|
},
|
2018-09-12 03:04:32 +03:00
|
|
|
"resolutions": {
|
|
|
|
"d3": "5.7.0"
|
|
|
|
},
|
2015-09-18 17:16:53 +03:00
|
|
|
"dependencies": {
|
2018-11-27 20:43:32 +03:00
|
|
|
"@neutrinojs/copy": "9.0.0-rc.0",
|
|
|
|
"@neutrinojs/react": "9.0.0-rc.0",
|
2018-08-15 22:56:03 +03:00
|
|
|
"@types/angular": "*",
|
|
|
|
"@types/prop-types": "*",
|
|
|
|
"@types/react": "*",
|
|
|
|
"@types/react-dom": "*",
|
2018-09-27 21:13:31 +03:00
|
|
|
"@uirouter/angularjs": "0.4.3",
|
2018-12-19 20:30:29 +03:00
|
|
|
"ajv": "6.6.2",
|
2018-10-05 18:36:08 +03:00
|
|
|
"angular": "1.7.5",
|
2018-01-03 18:18:40 +03:00
|
|
|
"angular-clipboard": "1.6.2",
|
2017-11-03 03:47:06 +03:00
|
|
|
"angular1-ui-bootstrap4": "2.4.22",
|
2018-11-14 16:40:02 +03:00
|
|
|
"auth0-js": "9.8.2",
|
2019-01-03 20:39:50 +03:00
|
|
|
"bootstrap": "4.2.1",
|
2018-09-12 03:04:32 +03:00
|
|
|
"d3": "5.7.0",
|
2017-05-11 13:14:21 +03:00
|
|
|
"font-awesome": "4.7.0",
|
2017-12-14 19:03:32 +03:00
|
|
|
"history": "4.7.2",
|
2018-01-22 04:26:27 +03:00
|
|
|
"jquery": "3.3.1",
|
2018-01-03 18:40:02 +03:00
|
|
|
"jquery.flot": "0.8.3",
|
2017-05-11 13:14:21 +03:00
|
|
|
"jquery.scrollto": "2.1.2",
|
2018-05-25 20:32:21 +03:00
|
|
|
"js-cookie": "2.2.0",
|
2019-01-06 13:21:29 +03:00
|
|
|
"js-yaml": "3.12.1",
|
2018-11-05 13:11:52 +03:00
|
|
|
"json-e": "2.7.1",
|
2018-02-14 14:28:07 +03:00
|
|
|
"json-schema-defaults": "0.4.0",
|
2018-09-13 21:41:11 +03:00
|
|
|
"lodash": "4.17.11",
|
2018-06-14 02:37:49 +03:00
|
|
|
"metrics-graphics": "2.15.6",
|
2018-12-14 10:41:56 +03:00
|
|
|
"moment": "2.23.0",
|
2018-06-02 16:19:56 +03:00
|
|
|
"mousetrap": "1.6.2",
|
2018-11-27 20:43:32 +03:00
|
|
|
"neutrino": "9.0.0-rc.0",
|
2018-04-04 18:08:11 +03:00
|
|
|
"ng-text-truncate-2": "1.0.1",
|
2017-08-07 00:55:25 +03:00
|
|
|
"numeral": "2.0.6",
|
2018-11-29 21:26:14 +03:00
|
|
|
"popper.js": "1.14.6",
|
2018-06-20 19:34:11 +03:00
|
|
|
"prop-types": "15.6.2",
|
2018-10-19 00:56:30 +03:00
|
|
|
"query-string": "6.2.0",
|
2019-01-02 14:52:30 +03:00
|
|
|
"react": "16.7.0",
|
2018-09-14 14:27:59 +03:00
|
|
|
"react-day-picker": "7.2.4",
|
2019-01-02 14:52:30 +03:00
|
|
|
"react-dom": "16.7.0",
|
2017-12-14 19:03:32 +03:00
|
|
|
"react-fontawesome": "1.6.1",
|
2019-01-03 19:29:46 +03:00
|
|
|
"react-highlight-words": "0.15.1",
|
2019-01-02 15:30:58 +03:00
|
|
|
"react-hot-loader": "4.6.3",
|
2018-09-14 20:58:41 +03:00
|
|
|
"react-hotkeys": "1.1.4",
|
2018-11-21 20:10:16 +03:00
|
|
|
"react-lazylog": "3.2.0",
|
2018-07-14 02:04:51 +03:00
|
|
|
"react-linkify": "0.2.2",
|
2018-12-12 02:01:25 +03:00
|
|
|
"react-redux": "6.0.0",
|
2018-06-13 23:11:56 +03:00
|
|
|
"react-router-dom": "4.3.1",
|
2019-01-02 17:00:28 +03:00
|
|
|
"react-select": "2.2.0",
|
2018-12-11 11:28:41 +03:00
|
|
|
"react-split-pane": "0.1.85",
|
2018-05-23 19:46:28 +03:00
|
|
|
"react-table": "6.8.6",
|
2018-09-04 22:57:37 +03:00
|
|
|
"react-tabs": "2.3.0",
|
2018-06-22 14:17:47 +03:00
|
|
|
"react2angular": "4.0.4",
|
2019-01-03 01:18:57 +03:00
|
|
|
"reactstrap": "7.0.2",
|
2018-10-14 08:30:59 +03:00
|
|
|
"redux": "4.0.1",
|
2017-12-14 19:03:32 +03:00
|
|
|
"redux-debounce": "1.0.1",
|
2018-11-09 05:48:08 +03:00
|
|
|
"taskcluster-client-web": "8.1.0",
|
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 21:48:28 +03:00
|
|
|
"taskcluster-lib-scopes": "10.0.1",
|
2018-12-30 15:24:38 +03:00
|
|
|
"webpack": "4.28.3",
|
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 21:48:28 +03:00
|
|
|
"webpack-cli": "3.1.2"
|
2014-04-08 21:40:33 +04:00
|
|
|
},
|
2017-04-05 19:03:30 +03:00
|
|
|
"devDependencies": {
|
2018-11-27 20:43:32 +03:00
|
|
|
"@neutrinojs/eslint": "9.0.0-rc.0",
|
2018-12-13 19:24:52 +03:00
|
|
|
"@neutrinojs/jest": "9.0.0-rc.0",
|
2018-10-05 18:36:08 +03:00
|
|
|
"angular-mocks": "1.7.5",
|
2018-12-11 15:25:30 +03:00
|
|
|
"enzyme": "3.8.0",
|
2018-12-11 12:33:05 +03:00
|
|
|
"enzyme-adapter-react-16": "1.7.1",
|
2019-01-06 00:20:37 +03:00
|
|
|
"eslint": "5.12.0",
|
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 21:48:28 +03:00
|
|
|
"eslint-config-airbnb": "17.1.0",
|
2018-11-16 11:28:34 +03:00
|
|
|
"eslint-config-prettier": "3.3.0",
|
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 21:48:28 +03:00
|
|
|
"eslint-plugin-import": "2.14.0",
|
2018-12-13 19:24:52 +03:00
|
|
|
"eslint-plugin-jest": "22.1.2",
|
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 21:48:28 +03:00
|
|
|
"eslint-plugin-jsx-a11y": "6.1.2",
|
2018-12-29 11:24:01 +03:00
|
|
|
"eslint-plugin-prettier": "3.0.1",
|
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 21:48:28 +03:00
|
|
|
"eslint-plugin-react": "7.11.1",
|
2019-01-03 00:39:20 +03:00
|
|
|
"fetch-mock": "7.3.0",
|
2018-02-12 19:50:41 +03:00
|
|
|
"jasmine-jquery": "2.1.1",
|
2018-12-13 19:24:52 +03:00
|
|
|
"jest": "23.6.0",
|
2018-12-19 21:10:37 +03:00
|
|
|
"karma": "3.1.4",
|
2017-12-20 05:43:01 +03:00
|
|
|
"karma-firefox-launcher": "1.1.0",
|
2018-11-19 11:34:17 +03:00
|
|
|
"karma-jasmine": "2.0.1",
|
2018-12-01 21:17:58 +03:00
|
|
|
"karma-webpack": "4.0.0-rc.5",
|
2018-12-02 17:36:04 +03:00
|
|
|
"prettier": "1.15.3",
|
2018-12-25 13:21:46 +03:00
|
|
|
"webpack-dev-server": "3.1.14"
|
2017-04-05 19:03:30 +03:00
|
|
|
},
|
2014-04-08 21:40:33 +04:00
|
|
|
"scripts": {
|
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 21:48:28 +03:00
|
|
|
"build": "node ./node_modules/webpack/bin/webpack.js --mode production",
|
|
|
|
"build:dev": "node ./node_modules/webpack/bin/webpack.js --mode development",
|
|
|
|
"heroku-postbuild": "yarn build",
|
2018-12-17 16:37:27 +03:00
|
|
|
"lint": "node ./node_modules/eslint/bin/eslint.js --cache --report-unused-disable-directives --max-warnings 0 --format codeframe --ext js,jsx \".*.js\" \"*.js\" ui/ tests/ui/",
|
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 21:48:28 +03:00
|
|
|
"start": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development",
|
|
|
|
"start:local": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --env.BACKEND=http://localhost:8000",
|
|
|
|
"start:stage": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --env.BACKEND=https://treeherder.allizom.org",
|
2018-12-13 19:24:52 +03:00
|
|
|
"karma": "node ./node_modules/karma/bin/karma start --single-run",
|
|
|
|
"karma:watch": "node ./node_modules/karma/bin/karma start",
|
|
|
|
"jest": "node ./node_modules/jest/bin/jest",
|
|
|
|
"jest:watch": "node ./node_modules/jest/bin/jest --watch",
|
|
|
|
"test": "yarn karma && yarn jest"
|
2014-04-08 21:40:33 +04:00
|
|
|
}
|
|
|
|
}
|