-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Upgraded manifest.json to manifest.config.ts
- Loading branch information
Showing
8 changed files
with
197 additions
and
149 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
import { defineManifest } from "@crxjs/vite-plugin"; | ||
import packageJson from "../package.json"; | ||
|
||
const { version } = packageJson; | ||
|
||
// Convert from Semver (example: 0.1.0-beta6) | ||
const [major, minor, patch] = version | ||
// can only contain digits, dots, or dash | ||
.replace(/[^\d.-]+/g, "") | ||
// split into version parts | ||
.split(/[.-]/); | ||
|
||
export default defineManifest({ | ||
manifest_version: 3, | ||
name: "Youtube Subscriptions Transfer", | ||
description: "Transferring subscriptions from one YouTube account to another", | ||
version: `${major}.${minor}.${patch}`, | ||
version_name: version, | ||
author: { | ||
email: "[email protected]", | ||
}, | ||
homepage_url: "https://biplobsd.github.io/apps/view/yst.md", | ||
icons: { | ||
"16": "src/assets/icons/icon16.png", | ||
"32": "src/assets/icons/icon32.png", | ||
"48": "src/assets/icons/icon48.png", | ||
"128": "src/assets/icons/icon128.png", | ||
}, | ||
content_scripts: [ | ||
{ | ||
matches: ["https://www.youtube.com/*"], | ||
js: ["src/content/index.ts"], | ||
}, | ||
], | ||
background: { | ||
service_worker: "src/background/index.ts", | ||
}, | ||
options_ui: { | ||
page: "src/options/options.html", | ||
open_in_tab: false, | ||
}, | ||
action: { | ||
default_popup: "src/popup/popup.html", | ||
default_icon: { | ||
"16": "src/assets/icons/icon16.png", | ||
"32": "src/assets/icons/icon32.png", | ||
"48": "src/assets/icons/icon48.png", | ||
"128": "src/assets/icons/icon128.png", | ||
}, | ||
}, | ||
permissions: [ | ||
"tabs", | ||
"identity", | ||
"storage", | ||
] as chrome.runtime.ManifestPermissions[], | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,29 @@ | ||
// vite tsconfig | ||
{ | ||
"compilerOptions": { | ||
"composite": true, | ||
"module": "esnext", | ||
"moduleResolution": "node", | ||
"resolveJsonModule": true, | ||
"allowSyntheticDefaultImports": true | ||
"tsBuildInfoFile": "./node_modules/.tmp/tsconfig.node.tsbuildinfo", | ||
"target": "ES2022", | ||
"lib": [ | ||
"ES2023" | ||
], | ||
"module": "ESNext", | ||
"skipLibCheck": true, | ||
/* Bundler mode */ | ||
"moduleResolution": "bundler", | ||
"allowImportingTsExtensions": true, | ||
"isolatedModules": true, | ||
"moduleDetection": "force", | ||
"noEmit": true, | ||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true, | ||
"noUncheckedSideEffectImports": true | ||
}, | ||
"include": ["vite.config.ts", "manifest.json"] | ||
"include": [ | ||
"vite.config.ts", | ||
"src/manifest.config.ts", | ||
"package.json" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters