Skip to content

Commit

Permalink
misc: rename lighthouse-treemap to treemap (#13246)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark committed Oct 26, 2021
1 parent d22d73f commit 8a67c47
Show file tree
Hide file tree
Showing 70 changed files with 433 additions and 433 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ lighthouse-core/scripts/*
lighthouse-core/test/
lighthouse-core/third_party/src/
viewer/
lighthouse-treemap/
treemap/
clients/
lighthouse-cli/results/
lighthouse-logger/
Expand Down
6 changes: 3 additions & 3 deletions build/build-treemap.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ const {LH_ROOT} = require('../root.js');
const {getIcuMessageIdParts} = require('../shared/localization/format.js');

/**
* Extract only the strings needed for lighthouse-treemap into
* Extract only the strings needed for treemap into
* a script that sets a global variable `strings`, whose keys
* are locale codes (en-US, es, etc.) and values are localized UIStrings.
*/
function buildStrings() {
const locales = require('../shared/localization/locales.js');
// TODO(esmodules): use dynamic import when build/ is esm.
const utilCode = fs.readFileSync(LH_ROOT + '/lighthouse-treemap/app/src/util.js', 'utf-8');
const utilCode = fs.readFileSync(LH_ROOT + '/treemap/app/src/util.js', 'utf-8');
const {UIStrings} = eval(utilCode.replace(/export /g, '') + '\nmodule.exports = TreemapUtil;');
const strings = /** @type {Record<LH.Locale, string>} */ ({});

Expand All @@ -45,7 +45,7 @@ function buildStrings() {
async function run() {
const app = new GhPagesApp({
name: 'treemap',
appDir: `${LH_ROOT}/lighthouse-treemap/app`,
appDir: `${LH_ROOT}/treemap/app`,
html: {path: 'index.html'},
stylesheets: [
{path: require.resolve('tabulator-tables/dist/css/tabulator.min.css')},
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
'**/lighthouse-cli/**/*-test.js',
'**/report/**/*-test.js',
'**/lighthouse-core/test/fraggle-rock/**/*-test-pptr.js',
'**/lighthouse-treemap/**/*-test.js',
'**/treemap/**/*-test.js',
'**/viewer/**/*-test.js',
'**/third-party/**/*-test.js',
'**/clients/test/**/*-test.js',
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/audits/script-treemap-data.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
/**
* @fileoverview
* Creates nodes for treemap app.
* Example output: lighthouse-treemap/app/debug.json
* Example output: treemap/app/debug.json
*/

/**
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-core/scripts/c8.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ set -euxo pipefail
echo $*

node node_modules/.bin/c8 \
--include '{lighthouse-core,lighthouse-cli,viewer,lighthouse-treemap,build/plugins,report,flow-report}' \
--include '{lighthouse-core,lighthouse-cli,viewer,treemap,build/plugins,report,flow-report}' \
--exclude third_party \
--exclude '**/test/' \
--exclude '**/scripts/' \
Expand Down
4 changes: 2 additions & 2 deletions lighthouse-core/scripts/i18n/collect-strings.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const UISTRINGS_REGEX = /UIStrings = .*?\};\n/s;
const foldersWithStrings = [
`${LH_ROOT}/lighthouse-core`,
`${LH_ROOT}/report/renderer`,
`${LH_ROOT}/lighthouse-treemap`,
`${LH_ROOT}/treemap`,
`${LH_ROOT}/flow-report`,
path.dirname(resolveModulePath('lighthouse-stack-packs')) + '/packs',
];
Expand All @@ -47,7 +47,7 @@ const ignoredPathComponents = [
'**/*-test.js',
'**/*-renderer.js',
'**/util-commonjs.js',
'lighthouse-treemap/app/src/main.js',
'treemap/app/src/main.js',
];

/**
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,15 +39,15 @@
"test-bundle": "yarn smoke --runner bundle -j=1 --retries=2 --invert-match forms",
"test-clients": "yarn jest \"$PWD/clients/\" && yarn jest --testMatch=\"**/clients/test/**/*-test-pptr.js\"",
"test-viewer": "yarn unit-viewer && yarn jest --testMatch=\"**/viewer/**/*-test-pptr.js\"",
"test-treemap": "yarn unit-treemap && yarn jest --testMatch=\"**/lighthouse-treemap/**/*-test-pptr.js\"",
"test-treemap": "yarn unit-treemap && yarn jest --testMatch=\"**/treemap/**/*-test-pptr.js\"",
"test-lantern": "bash lighthouse-core/scripts/test-lantern.sh",
"test-legacy-javascript": "bash lighthouse-core/scripts/test-legacy-javascript.sh",
"test-docs": "yarn --cwd docs/recipes/ test",
"test-proto": "yarn compile-proto && yarn build-proto-roundtrip",
"unit-core": "yarn jest \"lighthouse-core\"",
"unit-cli": "yarn jest \"lighthouse-cli/\"",
"unit-report": "yarn jest \"report/\"",
"unit-treemap": "yarn jest \"lighthouse-treemap/.*-test.js\"",
"unit-treemap": "yarn jest \"treemap/.*-test.js\"",
"unit-viewer": "yarn jest \"viewer/.*-test.js\"",
"unit-flow": "yarn jest \"flow-report/.*-test.[tj]s[x]?\"",
"unit": "yarn jest",
Expand Down
2 changes: 1 addition & 1 deletion report/test/renderer/text-encoding-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,6 @@ describe('TextEncoding', () => {
await test('Some examples of emoji are 😃, 🧘🏻‍♂️, 🌍, 🍞, 🚗, 📞, 🎉, ♥️, 🍆, and 🏁.');
await test('.'.repeat(125183));
await test('😃'.repeat(125183));
await test(fs.readFileSync(LH_ROOT + '/lighthouse-treemap/app/debug.json', 'utf-8'));
await test(fs.readFileSync(LH_ROOT + '/treemap/app/debug.json', 'utf-8'));
});
});
16 changes: 8 additions & 8 deletions shared/localization/locales/ar-XB.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/ar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/bg.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/ca.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/cs.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/da.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 8 additions & 8 deletions shared/localization/locales/de.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 8a67c47

Please sign in to comment.