Skip to content

Commit 0548bdf

Browse files
shakyShaneShane Osbourne
andauthored
Moved messages + tests into each special page (#1299)
* moved messages * fixed types names * moved tests too * fixed paths * updated screens * fixed docs * fixed docs * fixed watch command --------- Co-authored-by: Shane Osbourne <[email protected]>
1 parent 8760e79 commit 0548bdf

File tree

203 files changed

+396
-382
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

203 files changed

+396
-382
lines changed

.prettierignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
build/**/*
22
docs/**/*
33
injected/src/types
4-
special-pages/types
4+
special-pages/pages/**/types
55
injected/integration-test/extension/contentScope.js
66
**/*.json
77
**/*.md

eslint.config.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ export default tseslint.config(
1515
'injected/integration-test/extension/contentScope.js',
1616
'injected/integration-test/test-pages/duckplayer/scripts/dist',
1717
'special-pages/pages/**/public',
18+
'special-pages/pages/**/types',
19+
'special-pages/pages/**/messages',
1820
'special-pages/playwright-report/',
1921
'special-pages/test-results/',
20-
'special-pages/types/',
21-
'special-pages/messages/',
2222
'playwright-report',
2323
'test-results',
2424
'injected/src/types',

special-pages/messages/new-tab/favorites_getConfig.response.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/messages/new-tab/favorites_onConfigUpdate.subscribe.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/messages/new-tab/favorites_setConfig.notify.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/messages/new-tab/stats_getConfig.response.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/messages/new-tab/stats_onConfigUpdate.subscribe.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/messages/new-tab/stats_setConfig.notify.json

Lines changed: 0 additions & 8 deletions
This file was deleted.

special-pages/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
"test.headed": "npm run test-int -- --headed",
2121
"test.ui": "npm run test-int -- --ui",
2222
"serve": "http-server -c-1 --port 3210 ../build/integration/pages",
23-
"watch": "chokidar pages shared --initial -c 'npm run build.dev' --ignore 'pages/**/locales'"
23+
"watch": "chokidar pages shared --initial -c 'npm run build.dev' --ignore 'pages/**/locales' --ignore 'pages/**/types'"
2424
},
2525
"license": "ISC",
2626
"devDependencies": {

special-pages/pages/duckplayer/app/providers/UserValuesProvider.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { useMessaging } from '../types.js';
44
import { useEffect } from 'preact/hooks';
55

66
/**
7-
* @typedef {import("../../../../types/duckplayer").UserValues} UserValues
7+
* @typedef {import("../../types/duckplayer.js").UserValues} UserValues
88
*/
99

1010
const UserValuesContext = createContext({

0 commit comments

Comments
 (0)