Skip to content

Commit b220afd

Browse files
committed
Firefox addon
2 parents f94b5cf + 4067b0e commit b220afd

File tree

8 files changed

+31
-7
lines changed

8 files changed

+31
-7
lines changed

chrome/images/hn-logo.png

42.9 KB
Loading
Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,14 @@
44
"version": "0.0.4",
55
"description": "Hashnode Chrome Extension to read hot discussions and stories. Stay up-to-date with what's happening in the developer's community.",
66
"permissions": [],
7+
"background": {},
78
"short_name": "Hashnode",
89
"browser_action": {
9-
"default_icon": {
10-
"19": "images/hn-logo-16.png",
11-
"38": "images/hn-logo-32.png"
12-
},
13-
"default_title": "Hashnode",
1410
"default_popup": "index.html"
1511
},
12+
"externally_connectable": {
13+
"matches": ["*://*.hashnode.com/*"]
14+
},
1615
"author": "Hashnode",
1716
"homepage_url": "https://hashnode.com",
1817
"icons": {

firefox/manifest.json

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"name": "Hashnode — The Dev Community",
3+
"manifest_version": 2,
4+
"version": "0.0.4",
5+
"description": "Hashnode Firefox Extension to read hot discussions and stories. Stay up-to-date with what's happening in the developer's community.",
6+
"permissions": [],
7+
"short_name": "Hashnode",
8+
"browser_action": {
9+
"default_icon": {
10+
"19": "images/hn-logo-16.png",
11+
"38": "images/hn-logo-32.png"
12+
},
13+
"default_title": "Hashnode",
14+
"default_popup": "index.html"
15+
},
16+
"author": "Hashnode",
17+
"homepage_url": "https://hashnode.com",
18+
"icons": {
19+
"16": "images/hn-logo-16.png",
20+
"32": "images/hn-logo-32.png",
21+
"48": "images/hn-logo-48.png",
22+
"128": "images/hn-logo-128.png"
23+
}
24+
}

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,9 @@
33
"version": "1.0.0",
44
"main": "index.js",
55
"scripts": {
6-
"start": "parcel index.html",
7-
"build": "parcel build index.html && cp ./manifest.json ./dist && cp -R ./images ./dist"
6+
"start": "parcel -d dist/web index.html",
7+
"start-chrome": "parcel -d dist/dist-chrome index.html",
8+
"build-chrome": "parcel build index.html -d ./builds/chrome && cp -R ./chrome/* ./builds/chrome"
89
},
910
"repository": {},
1011
"license": "MIT",

0 commit comments

Comments
 (0)