Skip to content

Commit

Permalink
misc: rename lighthouse-viewer to viewer (#13247)
Browse files Browse the repository at this point in the history
  • Loading branch information
connorjclark authored Oct 25, 2021
1 parent 25465d9 commit 8cbc820
Show file tree
Hide file tree
Showing 32 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ lighthouse-core/lib/sd-validation/
lighthouse-core/scripts/*
lighthouse-core/test/
lighthouse-core/third_party/src/
lighthouse-viewer/
viewer/
lighthouse-treemap/
clients/
lighthouse-cli/results/
Expand Down
2 changes: 1 addition & 1 deletion build/build-viewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ async function run() {

const app = new GhPagesApp({
name: 'viewer',
appDir: `${LH_ROOT}/lighthouse-viewer/app`,
appDir: `${LH_ROOT}/viewer/app`,
html: {path: 'index.html'},
stylesheets: [
{path: 'styles/*'},
Expand Down
2 changes: 1 addition & 1 deletion build/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ Lighthouse is built into browser-friendly bundles for two clients:

Additionally, there are build processes for:

* [The Lighthouse report viewer](../lighthouse-viewer/)
* [The Lighthouse report viewer](../viewer/)
* The chrome extension (as of Nov 2019 is a thin-client that defers to the viewer)

## Building for DevTools
Expand Down
2 changes: 1 addition & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
'**/report/**/*-test.js',
'**/lighthouse-core/test/fraggle-rock/**/*-test-pptr.js',
'**/lighthouse-treemap/**/*-test.js',
'**/lighthouse-viewer/**/*-test.js',
'**/viewer/**/*-test.js',
'**/third-party/**/*-test.js',
'**/clients/test/**/*-test.js',
'**/shared/**/*-test.js',
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-cli/test/fixtures/static-server.js
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ class Server {
}

if (filePath.startsWith('/dist/gh-pages')) {
// Rewrite lighthouse-viewer paths to point to that location.
// Rewrite viewer paths to point to that location.
absoluteFilePath = path.join(this.baseDir, '/../../../', filePath);
}

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,lighthouse-viewer,lighthouse-treemap,build/plugins,report,flow-report}' \
--include '{lighthouse-core,lighthouse-cli,viewer,lighthouse-treemap,build/plugins,report,flow-report}' \
--exclude third_party \
--exclude '**/test/' \
--exclude '**/scripts/' \
Expand Down
4 changes: 2 additions & 2 deletions lighthouse-treemap/app/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
/* globals webtreemap strings Tabulator Cell Row */

import {TreemapUtil} from './util.js';
import {DragAndDrop} from '../../../lighthouse-viewer/app/src/drag-and-drop.js';
import {GithubApi} from '../../../lighthouse-viewer/app/src/github-api.js';
import {DragAndDrop} from '../../../viewer/app/src/drag-and-drop.js';
import {GithubApi} from '../../../viewer/app/src/github-api.js';
import {I18n} from '../../../report/renderer/i18n.js';
import {TextEncoding} from '../../../report/renderer/text-encoding.js';
import {Logger} from '../../../report/renderer/logger.js';
Expand Down
2 changes: 1 addition & 1 deletion lighthouse-treemap/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"references": [
{"path": "../types/lhr/"},
{"path": "../report/"},
{"path": "../lighthouse-viewer/"},
{"path": "../viewer/"},
],
"include": [
"app/src/**/*.js",
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"test": "yarn diff:sample-json && yarn lint --quiet && yarn unit && yarn type-check",
"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=\"**/lighthouse-viewer/**/*-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-lantern": "bash lighthouse-core/scripts/test-lantern.sh",
"test-legacy-javascript": "bash lighthouse-core/scripts/test-legacy-javascript.sh",
Expand All @@ -48,7 +48,7 @@
"unit-cli": "yarn jest \"lighthouse-cli/\"",
"unit-report": "yarn jest \"report/\"",
"unit-treemap": "yarn jest \"lighthouse-treemap/.*-test.js\"",
"unit-viewer": "yarn jest \"lighthouse-viewer/.*-test.js\"",
"unit-viewer": "yarn jest \"viewer/.*-test.js\"",
"unit-flow": "yarn jest \"flow-report/.*-test.[tj]s[x]?\"",
"unit": "yarn jest",
"unit:ci": "NODE_OPTIONS=--max-old-space-size=8192 npm run jest --ci .",
Expand Down
2 changes: 1 addition & 1 deletion tsconfig-all.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
{"path": "./types/lhr/"},
{"path": "./report/"},
{"path": "./report/generator/"},
{"path": "./lighthouse-viewer/"},
{"path": "./viewer/"},
{"path": "./lighthouse-treemap/"},
{"path": "./flow-report/"},
{"path": "./shared/"},
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import {LH_ROOT} from '../../root.js';

/* eslint-env jest */

const PAGE = fs.readFileSync(path.join(LH_ROOT, 'lighthouse-viewer/app/index.html'), 'utf8');
const PAGE = fs.readFileSync(path.join(LH_ROOT, 'viewer/app/index.html'), 'utf8');

export function setupJsDomGlobals() {
const {window} = new jsdom.JSDOM(PAGE);
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion lighthouse-viewer/tsconfig.json → viewer/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"extends": "../tsconfig-base.json",
"compilerOptions": {
"outDir": "../.tmp/tsbuildinfo/lighthouse-viewer",
"outDir": "../.tmp/tsbuildinfo/viewer",

// Limit to base JS and DOM defs.
"lib": ["es2020", "dom", "dom.iterable"],
Expand Down
File renamed without changes.

0 comments on commit 8cbc820

Please sign in to comment.