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": {
|
2020-01-13 03:14:04 +03:00
|
|
|
"node": "12.14.1",
|
2019-12-12 16:42:35 +03:00
|
|
|
"yarn": "1.21.1"
|
2015-12-23 22:07:12 +03:00
|
|
|
},
|
2015-09-18 17:16:53 +03:00
|
|
|
"dependencies": {
|
2019-12-12 16:42:26 +03:00
|
|
|
"@fortawesome/fontawesome-svg-core": "1.2.26",
|
|
|
|
"@fortawesome/free-brands-svg-icons": "5.12.0",
|
|
|
|
"@fortawesome/free-regular-svg-icons": "5.12.0",
|
|
|
|
"@fortawesome/free-solid-svg-icons": "5.12.0",
|
2019-12-09 17:22:19 +03:00
|
|
|
"@fortawesome/react-fontawesome": "0.1.8",
|
2019-12-16 16:38:22 +03:00
|
|
|
"@neutrinojs/copy": "9.0.0",
|
|
|
|
"@neutrinojs/react": "9.0.0",
|
2018-08-15 22:56:03 +03:00
|
|
|
"@types/prop-types": "*",
|
|
|
|
"@types/react": "*",
|
|
|
|
"@types/react-dom": "*",
|
2019-07-24 02:18:47 +03:00
|
|
|
"ajv": "6.10.2",
|
2019-08-06 07:23:47 +03:00
|
|
|
"auth0-js": "9.11.3",
|
2019-11-28 18:25:07 +03:00
|
|
|
"bootstrap": "4.3.1",
|
2019-11-22 16:57:48 +03:00
|
|
|
"fuse.js": "3.4.6",
|
2019-09-14 05:35:11 +03:00
|
|
|
"history": "4.10.1",
|
2019-08-22 20:59:58 +03:00
|
|
|
"jquery": "3.4.1",
|
2019-08-07 17:01:13 +03:00
|
|
|
"js-cookie": "2.2.1",
|
2019-04-06 19:26:01 +03:00
|
|
|
"js-yaml": "3.13.1",
|
2019-07-20 04:26:05 +03:00
|
|
|
"json-e": "3.0.1",
|
2018-02-14 14:28:07 +03:00
|
|
|
"json-schema-defaults": "0.4.0",
|
2019-07-22 22:39:09 +03:00
|
|
|
"lodash": "4.17.15",
|
2019-01-23 00:34:05 +03:00
|
|
|
"moment": "2.24.0",
|
2019-12-16 16:38:22 +03:00
|
|
|
"neutrino": "9.0.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",
|
2019-02-14 23:24:27 +03:00
|
|
|
"prop-types": "15.7.2",
|
2019-11-14 23:37:22 +03:00
|
|
|
"query-string": "6.9.0",
|
2019-11-20 17:02:53 +03:00
|
|
|
"react": "16.12.0",
|
2020-01-13 16:21:27 +03:00
|
|
|
"react-dates": "21.5.1",
|
2019-11-20 17:02:53 +03:00
|
|
|
"react-dom": "16.12.0",
|
2019-11-10 01:36:21 +03:00
|
|
|
"react-helmet": "5.2.1",
|
2019-01-12 20:31:00 +03:00
|
|
|
"react-highlight-words": "0.16.0",
|
2019-11-19 00:33:59 +03:00
|
|
|
"react-hot-loader": "4.12.18",
|
2020-01-16 16:51:33 +03:00
|
|
|
"react-hotkeys": "2.0.0",
|
2019-11-25 16:53:13 +03:00
|
|
|
"react-lazylog": "4.4.4",
|
2018-07-14 02:04:51 +03:00
|
|
|
"react-linkify": "0.2.2",
|
2019-11-14 23:05:30 +03:00
|
|
|
"react-markdown": "4.2.2",
|
2019-11-07 07:32:35 +03:00
|
|
|
"react-redux": "7.1.3",
|
2019-10-02 23:25:40 +03:00
|
|
|
"react-router-dom": "5.1.2",
|
2019-11-13 09:21:27 +03:00
|
|
|
"react-split-pane": "0.1.89",
|
2019-09-10 17:18:52 +03:00
|
|
|
"react-table": "6.10.3",
|
2019-01-05 09:22:32 +03:00
|
|
|
"react-tabs": "3.0.0",
|
2020-01-20 03:17:41 +03:00
|
|
|
"reactstrap": "8.3.2",
|
2020-01-02 17:15:59 +03:00
|
|
|
"redux": "4.0.5",
|
2017-12-14 19:03:32 +03:00
|
|
|
"redux-debounce": "1.0.1",
|
2019-12-12 17:39:10 +03:00
|
|
|
"redux-mock-store": "1.5.4",
|
2019-06-07 22:08:51 +03:00
|
|
|
"redux-thunk": "2.3.0",
|
2019-01-27 19:22:28 +03:00
|
|
|
"taskcluster-client-web": "8.1.1",
|
2019-02-13 04:06:33 +03:00
|
|
|
"taskcluster-lib-scopes": "10.0.2",
|
2019-11-27 16:57:18 +03:00
|
|
|
"taskcluster-lib-urls": "13.0.0",
|
2020-01-16 16:59:46 +03:00
|
|
|
"victory": "34.0.0",
|
2020-01-02 17:16:11 +03:00
|
|
|
"webpack": "4.41.5",
|
2019-11-01 08:20:54 +03:00
|
|
|
"webpack-cli": "3.3.10"
|
2014-04-08 21:40:33 +04:00
|
|
|
},
|
2017-04-05 19:03:30 +03:00
|
|
|
"devDependencies": {
|
2019-12-16 16:38:22 +03:00
|
|
|
"@neutrinojs/eslint": "9.0.0",
|
|
|
|
"@neutrinojs/jest": "9.0.0",
|
2019-11-15 19:25:37 +03:00
|
|
|
"@testing-library/jest-dom": "4.2.4",
|
2019-12-12 16:41:55 +03:00
|
|
|
"@testing-library/react": "9.3.3",
|
2019-10-07 16:40:56 +03:00
|
|
|
"codecov": "3.6.1",
|
2019-02-18 11:24:31 +03:00
|
|
|
"enzyme": "3.9.0",
|
2019-12-23 17:25:18 +03:00
|
|
|
"enzyme-adapter-react-16": "1.15.2",
|
2019-12-02 05:18:07 +03:00
|
|
|
"eslint": "6.7.2",
|
2019-08-21 19:09:58 +03:00
|
|
|
"eslint-config-airbnb": "18.0.1",
|
2019-11-20 17:03:04 +03:00
|
|
|
"eslint-config-prettier": "6.7.0",
|
2019-07-21 01:19:10 +03:00
|
|
|
"eslint-plugin-import": "2.18.2",
|
2019-12-02 18:42:54 +03:00
|
|
|
"eslint-plugin-jest": "23.1.1",
|
2019-07-02 08:19:54 +03:00
|
|
|
"eslint-plugin-jsx-a11y": "6.2.3",
|
2019-12-16 16:38:45 +03:00
|
|
|
"eslint-plugin-prettier": "3.1.2",
|
2019-10-07 23:25:49 +03:00
|
|
|
"eslint-plugin-react": "7.16.0",
|
2019-12-23 17:24:57 +03:00
|
|
|
"fetch-mock": "8.0.3",
|
2019-08-17 09:41:01 +03:00
|
|
|
"jest": "24.9.0",
|
2019-05-17 10:22:06 +03:00
|
|
|
"node-fetch": "2.6.0",
|
2019-11-12 19:48:02 +03:00
|
|
|
"prettier": "1.19.1",
|
2019-10-23 20:24:26 +03:00
|
|
|
"webpack-dev-server": "3.9.0"
|
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",
|
2019-09-09 22:56:17 +03:00
|
|
|
"codecov": "node ./node_modules/codecov/bin/codecov && rm -rf coverage",
|
2019-01-22 19:13:47 +03:00
|
|
|
"format": "node ./node_modules/prettier/bin-prettier.js --write \"**/*.{css,html,js,jsx,json,md,yaml,yml}\"",
|
|
|
|
"format:check": "node ./node_modules/prettier/bin-prettier.js --check \"**/*.{css,html,js,jsx,json,md,yaml,yml}\"",
|
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
|
|
|
"heroku-postbuild": "yarn build",
|
2019-11-12 19:31:21 +03:00
|
|
|
"lint": "node ./node_modules/eslint/bin/eslint.js --report-unused-disable-directives --max-warnings 0 --format codeframe --ext js,jsx \".*.js\" \"*.js\" ui/ tests/ui/",
|
|
|
|
"lint-with-cache": "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:stage": "node ./node_modules/webpack-dev-server/bin/webpack-dev-server.js --mode development --env.BACKEND=https://treeherder.allizom.org",
|
2019-09-10 21:22:37 +03:00
|
|
|
"test:coverage": "node ./node_modules/jest/bin/jest --coverage",
|
|
|
|
"test": "node ./node_modules/jest/bin/jest",
|
2019-02-12 10:49:50 +03:00
|
|
|
"test:watch": "node ./node_modules/jest/bin/jest --watch"
|
2014-04-08 21:40:33 +04:00
|
|
|
}
|
|
|
|
}
|