From 1b7104c4a49b83d3e2c22309da5a450551bf706a Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Thu, 20 Aug 2015 09:39:37 +0100 Subject: [PATCH] Added chrome extension basics --- chrome/manifest.json | 19 +++++++++++++++++++ package.json | 2 +- 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 chrome/manifest.json diff --git a/chrome/manifest.json b/chrome/manifest.json new file mode 100644 index 0000000..a6f3d30 --- /dev/null +++ b/chrome/manifest.json @@ -0,0 +1,19 @@ +{ + "manifest_version": 2, + + "name": "Getting started example", + "description": "This extension shows a Google Image search result for the current page", + "version": "ALPHA", + + "browser_action": { + "default_icon": "icon.png", + "default_popup": "popup.html" + }, + "content_scripts": [ + { + "matches": ["http://www.google.com/*"], + "css": ["mystyles.css"], + "js": ["jquery.js", "myscript.js"] + } + ], +} \ No newline at end of file diff --git a/package.json b/package.json index ed24dbf..e2fd04e 100644 --- a/package.json +++ b/package.json @@ -7,7 +7,7 @@ "create-dirs": "mkdir -p build/assets build/lib", "build-extensions": "", "build-firefox": "cd firefox/ && jpm xpi", - "build-chrome": "", + "build-chrome": "chromium-browser --pack-extension=./ --pack-extension-key=key.pem", "build-js": "browserify -t reactify src/index.js -o build/index.js", "copy-firefox": "", "copy-chrome": "",