Skip to content

Commit 4126917

Browse files
committed
add tutorial for publishing extension
1 parent e56fc9d commit 4126917

File tree

2 files changed

+24
-6
lines changed

2 files changed

+24
-6
lines changed

build/PUBLISHING.md

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
Here are the steps to publishing the extension
2+
3+
Run this command
4+
5+
`
6+
rm -r .git .gitignore docs build src/background src/content-script src/popup.ts src/settings.ts images/
7+
`
8+
9+
The only files that should be published are
10+
11+
1. dist folder
12+
2. node modules
13+
3. HTML/CSS/JS files in src
14+
4. Icons for logos and buttons
15+
16+
Everything else should be removed
17+
- Hidden Git files (.git and .gitignore)
18+
- All typescript files
19+
- Screenshots from images folder
20+
- package, tsconfig, webpack files?
21+

src/problems-by-company/company.ts

+3-6
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,13 @@
1-
// define solutions and companyName outside of the functions so they can be accessed globally
2-
let solutions = [] as { id: number, title: string, score: number, url: string }[];
31
let companyName = "Amazon";
2+
let solutions = [] as { id: number, title: string, score: number, url: string }[];
43

54
function main() {
6-
7-
85
chrome.storage.local.get("clickedCompany", function (data) {
96
companyName = data.clickedCompany;
10-
document.getElementById("title")!.textContent = companyName;
11-
document.title = companyName + "'s favorite problems"
127
});
138

9+
document.getElementById("title")!.textContent = companyName;
10+
document.title = companyName + "'s favorite problems"
1411
addCompanyProblems("Score");
1512

1613
// attach click listeners to table headers for sorting

0 commit comments

Comments
 (0)