aboutsummaryrefslogtreecommitdiff
path: root/ext/manifest.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-08-09 13:09:06 -0400
committerGitHub <noreply@github.com>2020-08-09 13:09:06 -0400
commit04d47bf8a92a71ae49c320d8d7eccd50c254348e (patch)
tree44de3c7e126efd4fac37cc6a19df05c7662b2f95 /ext/manifest.json
parent14efd8a8248b4bb8cb0d76f6a9cd4bd51efd30f8 (diff)
Build system changes (#721)
* Refactor manifest.json * Change end-of-line convention for built plain-text files * Ignore builds directory * Mark the "dev" directory as using the node environment * Create build script * Register build scripts * Remove old build script * Fix 64x64 icon * Add test to ensure manifest data is updated properly
Diffstat (limited to 'ext/manifest.json')
-rw-r--r--ext/manifest.json66
1 files changed, 36 insertions, 30 deletions
diff --git a/ext/manifest.json b/ext/manifest.json
index 304a27c8..91516751 100644
--- a/ext/manifest.json
+++ b/ext/manifest.json
@@ -2,15 +2,15 @@
"manifest_version": 2,
"name": "Yomichan",
"version": "20.8.3.0",
-
"description": "Japanese dictionary with Anki integration",
+ "author": "Alex Yatskov",
"icons": {
"16": "mixed/img/icon16.png",
"19": "mixed/img/icon19.png",
"32": "mixed/img/icon32.png",
"38": "mixed/img/icon38.png",
"48": "mixed/img/icon48.png",
- "64": "mixed/img/icon48.png",
+ "64": "mixed/img/icon64.png",
"128": "mixed/img/icon128.png"
},
"browser_action": {
@@ -20,42 +20,46 @@
"32": "mixed/img/icon32.png",
"38": "mixed/img/icon38.png",
"48": "mixed/img/icon48.png",
- "64": "mixed/img/icon48.png",
+ "64": "mixed/img/icon64.png",
"128": "mixed/img/icon128.png"
},
"default_title": "Yomichan",
"default_popup": "bg/context.html"
},
-
- "author": "Alex Yatskov",
"background": {
"page": "bg/background.html",
"persistent": true
},
- "content_scripts": [{
- "matches": ["http://*/*", "https://*/*", "file://*/*"],
- "js": [
- "mixed/js/core.js",
- "mixed/js/yomichan.js",
- "mixed/js/comm.js",
- "mixed/js/dom.js",
- "mixed/js/api.js",
- "mixed/js/dynamic-loader.js",
- "mixed/js/frame-client.js",
- "mixed/js/text-scanner.js",
- "fg/js/document.js",
- "fg/js/dom-text-scanner.js",
- "fg/js/popup.js",
- "fg/js/source.js",
- "fg/js/popup-factory.js",
- "fg/js/frame-offset-forwarder.js",
- "fg/js/popup-proxy.js",
- "fg/js/frontend.js",
- "fg/js/content-script-main.js"
- ],
- "match_about_blank": true,
- "all_frames": true
- }],
+ "content_scripts": [
+ {
+ "matches": [
+ "http://*/*",
+ "https://*/*",
+ "file://*/*"
+ ],
+ "js": [
+ "mixed/js/core.js",
+ "mixed/js/yomichan.js",
+ "mixed/js/comm.js",
+ "mixed/js/dom.js",
+ "mixed/js/api.js",
+ "mixed/js/dynamic-loader.js",
+ "mixed/js/frame-client.js",
+ "mixed/js/text-scanner.js",
+ "fg/js/document.js",
+ "fg/js/dom-text-scanner.js",
+ "fg/js/popup.js",
+ "fg/js/source.js",
+ "fg/js/popup-factory.js",
+ "fg/js/frame-offset-forwarder.js",
+ "fg/js/popup-proxy.js",
+ "fg/js/frontend.js",
+ "fg/js/content-script-main.js"
+ ],
+ "match_about_blank": true,
+ "all_frames": true
+ }
+ ],
"minimum_chrome_version": "57.0.0.0",
"options_page": "bg/settings.html",
"options_ui": {
@@ -88,7 +92,9 @@
"description": "Open search window"
}
},
- "web_accessible_resources": ["fg/float.html"],
+ "web_accessible_resources": [
+ "fg/float.html"
+ ],
"content_security_policy": "script-src 'self' 'unsafe-eval'; object-src 'self'",
"applications": {
"gecko": {