mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
22226f3367
Replace: - babel-preset-env@1.6.0 with @babel/preset-env@7.2.0 - babel-register@6.24.1 with @babel/register@7.0.0 - babel-loader@7.1.4 with babel-loader@8.0.4 Add: - @babel/core@7.2.0 --- - babel-preset-env, @babel/preset-env babel-preset-env moved to @babel/preset-env in the Babel monorepo. This appears to have incremented the version from v1.6.0[0] to 7.x to match the rest of the Babel packages but appears to otherwise be undocumented.[1,3] [0] https://github.com/babel/babel-preset-env/blob/24b99ec/README.md [1] https://github.com/babel/babel/blob/efa571a/CHANGELOG.md - @babel/preset-env, @babel/register *Many* changes as identified by package [2] and summarized [3]. Node.js v6 or above now required. New dependency on @babel/core. Support for ES2018 and browserslist v4. `modules: false` is now the default for preset-env + babel-loader. The .babelrc has been updated. New babel-upgrade tool. babel.config.js can replace .babelrc. Popups doesn't seem to need it. TypeScript and JSX fragment support. [2] https://github.com/babel/babel/blob/efa571a/CHANGELOG.md [3] https://babeljs.io/blog/2018/08/27/7.0.0 - babel-loader Support for Babel 7.x. The following warning is printed when building but perhaps this is due to another dependency: (node:14559) DeprecationWarning: loaderUtils.parseQuery() received a non-string value which can be problematic, see https://github.com/webpack/loader-utils/issues/56 parseQuery() will be replaced with getOptions() in the next major version of loader-utils. https://github.com/webpack/loader-utils/issues/56#issuecomment-286117000 https://github.com/babel/babel-loader/releases/tag/v7.1.5 https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.0 https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.1 https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.2 https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.3 https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.4 (v8.0.0-beta.5 was erroneous.) https://github.com/babel/babel-loader/releases/tag/v8.0.0-beta.6 https://github.com/babel/babel-loader/releases/tag/v8.0.0 https://github.com/babel/babel-loader/releases/tag/v8.0.1 https://github.com/babel/babel-loader/releases/tag/v8.0.2 https://github.com/babel/babel-loader/releases/tag/v8.0.3 https://github.com/babel/babel-loader/releases/tag/v8.0.4 Bug: T197883 Change-Id: Ie3a5404630fde87ea7fe618a842950ed8c0c6494
32 lines
1 KiB
JSON
32 lines
1 KiB
JSON
{
|
|
"//": "todo: enable caching. There are too many other issues to verify that",
|
|
"//": "caching works correctly.",
|
|
"cache": false,
|
|
|
|
"//": "todo: check coverage on all files not just those included in tests.",
|
|
"//": "Enable when",
|
|
"//": "https://github.com/istanbuljs/nyc/issues/537#issuecomment-390814662",
|
|
"//": "is fixed.",
|
|
"all": false,
|
|
|
|
"//": "Ignore files in vendor/, resources/, and elsewhere.",
|
|
"include": [ "src/**/*.js" ],
|
|
|
|
"//": "Set the coverage percentage by category thresholds.",
|
|
"statements": 90,
|
|
"branches": 80,
|
|
"functions": 85,
|
|
"lines": 90,
|
|
|
|
"//": "Fail if the coverage is below threshold.",
|
|
"check-coverage": true,
|
|
|
|
"//": "Work around source maps being included ",
|
|
"//": "https://github.com/istanbuljs/nyc/issues/847:",
|
|
"//": " Error: ENAMETOOLONG: name too long, open '.../vagrant/mediawiki/extensions/Popups/src/data:application/json;...'",
|
|
"//": "Unfortunately, the reported line numbers appear to be",
|
|
"//": "nondeterministic across runs when all is enabled and incorrect when",
|
|
"//": "disabled.",
|
|
"sourceMap": false
|
|
}
|