diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c003784 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +node_modules +build +*.js diff --git a/package.json b/package.json new file mode 100644 index 0000000..aa91551 --- /dev/null +++ b/package.json @@ -0,0 +1,25 @@ +{ + "name": "youtube_customizer", + "version": "1.0.0", + "description": "Changes layout of YouTube and adds QoL features.", + "author": "Ryze", + "license": "GPL-3.0-only", + "homepage": "https://github.com/ryze312/youtube-customizer", + "bugs": { + "url": "https://github.com/ryze312/youtube-customizer/issues" + }, + "devDependencies": { + "@types/firefox-webext-browser": "^111.0.4" + }, + "scripts": { + "clean": "rm -rf build", + "build": "pnpm run clean && mkdir build && cp -r extension build/target && tsc && web-ext build" + }, + "webExt": { + "sourceDir": "build/target", + "artifactsDir": "build/dist", + "build": { + "overwriteDest": true + } + } +} diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml new file mode 100644 index 0000000..12d2222 --- /dev/null +++ b/pnpm-lock.yaml @@ -0,0 +1,16 @@ +lockfileVersion: '6.0' + +settings: + autoInstallPeers: true + excludeLinksFromLockfile: false + +devDependencies: + '@types/firefox-webext-browser': + specifier: ^111.0.4 + version: 111.0.4 + +packages: + + /@types/firefox-webext-browser@111.0.4: + resolution: {integrity: sha512-2XGCwr6xa2ltUys6LWRNjoU+4b0+uY/jJdjXw6sMeZPyh9yIuD49fC8lSQPMm+0wVLJXbwu+ZRPD/EK17jNoRg==} + dev: true diff --git a/tsconfig.json b/tsconfig.json new file mode 100644 index 0000000..cd4543f --- /dev/null +++ b/tsconfig.json @@ -0,0 +1,18 @@ +{ + "compilerOptions": { + "target": "ES2022", + "strict": true, + "exactOptionalPropertyTypes": true, + "noImplicitReturns": true, + "noImplicitOverride": true, + "noImplicitAny": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "noFallthroughCasesInSwitch": true, + "noUncheckedIndexedAccess": true, + "noPropertyAccessFromIndexSignature": true, + "removeComments": true, + "outDir": "build/target", + }, + "include": ["src/**/*"], +}