Compare commits

..

3 Commits

4 changed files with 643 additions and 89 deletions

View File

@ -24,15 +24,22 @@
"devDependencies": { "devDependencies": {
"@preact/preset-vite": "^2.5.0", "@preact/preset-vite": "^2.5.0",
"@types/babel__core": "^7.20.0", "@types/babel__core": "^7.20.0",
"@types/node": "^18.15.11",
"@types/webextension-polyfill": "^0.10.0", "@types/webextension-polyfill": "^0.10.0",
"ava": "^5.2.0", "ava": "^5.2.0",
"c8": "^7.13.0", "c8": "^7.13.0",
"concurrently": "^8.0.1",
"cssnano": "^6.0.0",
"esbuild": "^0.17.15",
"esbuild-copy-static-files": "^0.1.0",
"esbuild-sass-plugin": "^2.8.0",
"postcss": "^8.4.21", "postcss": "^8.4.21",
"sass": "^1.60.0", "sass": "^1.60.0",
"stylelint": "^15.3.0", "stylelint": "^15.3.0",
"stylelint-config-standard-scss": "^7.0.1", "stylelint-config-standard-scss": "^7.0.1",
"trash-cli": "^5.0.0", "trash-cli": "^5.0.0",
"ts-node": "^10.9.1", "ts-node": "^10.9.1",
"tsx": "^3.12.6",
"typescript": "^5.0.2", "typescript": "^5.0.2",
"vite": "^4.2.1", "vite": "^4.2.1",
"vite-plugin-web-extension": "^3.0.2", "vite-plugin-web-extension": "^3.0.2",

File diff suppressed because it is too large Load Diff

15
source/packages.d.ts vendored Normal file
View File

@ -0,0 +1,15 @@
// Type definitions for third-party packages.
declare module 'esbuild-copy-static-files' {
import {type cpSync} from 'node:fs';
import {type Plugin} from 'esbuild';
type CopySyncParameters = Parameters<typeof cpSync>;
type Options = {
src?: CopySyncParameters[0];
dest?: CopySyncParameters[1];
} & CopySyncParameters[2];
export default function (options: Options): Plugin;
}

4
source/types.d.ts vendored
View File

@ -29,4 +29,8 @@ declare global {
type MoveDirection = 'up' | 'down'; type MoveDirection = 'up' | 'down';
} }
const $browser: 'chromium' | 'firefox';
const $dev: boolean;
const $test: boolean;
} }