mirror of
https://github.com/react/react-native-devtools-frontend.git
synced 2026-10-07 12:33:47 +08:00
ESLint 8 removed CLIEngine. Therefore, we need to migrate away from CLIEngine to the main ESLint class (which already exists in ESLint 7). However, that class is based on promises, which means we can't use them in a CommonJS context. Therefore, introduce a new `.mjs` version that uses ES modules (which can do as we are on a recent version of Node) and use the promise versions. There are no other functional changes compared to the old `.js` script. The reason that we first have to add this file here, is that our CQ directly refers to the `.js` version. That means we first land this CL, we update our CQ configuration and only then can we remove the `.js` file from our repository. R=jacktfranklin@chromium.org Bug: none Change-Id: Iad3656931ae09eb7f9f23b3e6ad7d39c8a761a31 Reviewed-on: https://chromium-review.googlesource.com/c/devtools/devtools-frontend/+/3268299 Reviewed-by: Jack Franklin <jacktfranklin@chromium.org> Commit-Queue: Jack Franklin <jacktfranklin@chromium.org> Auto-Submit: Tim van der Lippe <tvanderlippe@chromium.org>
59 lines
3.8 KiB
JSON
59 lines
3.8 KiB
JSON
{
|
|
"author": "The Chromium Authors",
|
|
"bugs": {
|
|
"url": "https://bugs.chromium.org/p/chromium/issues/list?can=2&q=component:Platform%3EDevTools%20&sort=-opened&colspec=ID%20Stars%20Owner%20Summary%20Modified%20Opened"
|
|
},
|
|
"description": "Chrome DevTools UI",
|
|
"homepage": "https://devtools.chrome.com",
|
|
"keywords": [
|
|
"devtools",
|
|
"chrome",
|
|
"chromium",
|
|
"blink",
|
|
"debugger"
|
|
],
|
|
"license": "BSD-3-Clause",
|
|
"name": "chrome-devtools-frontend",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/ChromeDevTools/devtools-frontend.git"
|
|
},
|
|
"scripts": {
|
|
"auto-debug-e2etest": "autoninja -C out/Default && npm run debug-e2etest --",
|
|
"auto-debug-interactionstest": "autoninja -C out/Default && npm run debug-interactionstest --",
|
|
"auto-debug-unittest": "DEBUG_TEST=1 npm run auto-unittest --",
|
|
"auto-e2etest": "autoninja -C out/Default && npm run e2etest --",
|
|
"auto-interactionstest": "autoninja -C out/Default && npm run interactionstest",
|
|
"auto-unittest": "scripts/test/run_auto_unittests.py --no-text-coverage",
|
|
"build": "autoninja -C out/Default",
|
|
"build-release": "autoninja -C out/Release",
|
|
"check": "npm run check-json && npm run check-gn && npm run check-lint && npm run check-loc",
|
|
"check-external-links": "third_party/node/node.py --output scripts/check_external_links.js",
|
|
"check-gn": "third_party/node/node.py --output scripts/check_gn.js",
|
|
"check-json": "third_party/node/node.py --output scripts/json_validator/validate_module_json.js",
|
|
"check-lint": "third_party/node/node.py --output scripts/test/run_lint_check_js.mjs && third_party/node/node.py --output scripts/test/run_lint_check_css.js",
|
|
"check-lint-css": "third_party/node/node.py --output scripts/test/run_lint_check_css.js",
|
|
"collect-strings": "third_party/node/node.py --output third_party/i18n/collect-strings.js front_end",
|
|
"components-server": "third_party/node/node.py --output scripts/component_server/server.js",
|
|
"debug-e2etest": "DEBUG_TEST=1 npm run e2etest",
|
|
"debug-interactionstest": "DEBUG_TEST=1 npm run interactionstest",
|
|
"debug-test": "third_party/node/node.py --output scripts/npm_test.js --debug-devtools",
|
|
"debug-unittest": "DEBUG_TEST=1 npm run unittest",
|
|
"e2etest": "third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/e2e/test-runner-config.json",
|
|
"eslint-test": "third_party/node/node.py --output node_modules/mocha/bin/mocha \"./scripts/eslint_rules/tests/*_test.js\"",
|
|
"generate-dark-mode-styles": "third_party/node/node.py --output scripts/dark_mode/generate_dark_theme_sheet.js",
|
|
"generate-protocol-resources": "scripts/deps/generate_protocol_resources.py && git cl format --js",
|
|
"install-deps": "scripts/deps/manage_node_deps.py",
|
|
"interactionstest": "third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/interactions/test-runner-config.json",
|
|
"perf": "third_party/node/node.py --output scripts/test/run_test_suite.js --config=test/perf/test-runner-config.json",
|
|
"setup-dtrun": "cd scripts/devtools_run && npm link",
|
|
"start": "node -e 'console.log(`This script has been removed in favor of --custom-devtools-frontend. For more information, see https://docs.google.com/document/d/1COgCBWWuTh2o-Zbp6h_z0h0LtlJaimaEDsION4RZPxc/edit?usp=sharing`);'",
|
|
"stylelint-test": "third_party/node/node.py --output ./node_modules/.bin/mocha \"./scripts/stylelint_rules/tests/*_test.js\"",
|
|
"test": "third_party/node/node.py --output scripts/npm_test.js",
|
|
"test-local": "third_party/node/node.py --output scripts/npm_test.js --layout-tests-directory=test/webtests/",
|
|
"ts_library-test": "./third_party/typescript/tests/verify_ts_libary.sh",
|
|
"unittest": "scripts/test/run_unittests.py --no-text-coverage",
|
|
"watch": "third_party/node/node.py --output scripts/watch_build.js"
|
|
}
|
|
}
|