From 04d47bf8a92a71ae49c320d8d7eccd50c254348e Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Sun, 9 Aug 2020 13:09:06 -0400 Subject: 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 --- ext/manifest.json | 66 ++++++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 30 deletions(-) (limited to 'ext/manifest.json') 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": { -- cgit v1.2.3