File tree Expand file tree Collapse file tree 5 files changed +45
-42
lines changed
Expand file tree Collapse file tree 5 files changed +45
-42
lines changed Original file line number Diff line number Diff line change 1+ # Building
2+
3+ ## Prerequisites
4+
5+ - Install [ Node 14] ( https://nodejs.org/en/download/ )
6+
7+ ## Build
8+
9+ - Run ` npm install `
10+ - Run ` npm run build `
11+
12+ The extension root is the [ addon] ( addon/ ) directory which can be packaged/tested
13+ as appropriate. A package is output in the ` web-ext-artifacts ` directory for
14+ upload.
15+
16+ ## Lint
17+
18+ - Run ` npm run lint `
19+
20+ If there are errors:
21+
22+ - Run ` npm run lint-fix `
23+
24+ Fixable errors will be resolved and unfixable ones will be output for manual
25+ fixes.
26+
27+ ## Test
28+
29+ ### Firefox
30+
31+ - ` npm start `
32+
33+ ### Chrome
34+
35+ Enable developer mode and load the ` addon ` directory as an unpacked extension.
Original file line number Diff line number Diff line change @@ -14,30 +14,4 @@ The extension must be side-loaded using developer mode.
1414
1515## Building
1616
17- - ` npm install `
18- - ` npm run build `
19-
20- The extension root is the [ addon] ( addon/ ) folder which can be packaged/tested
21- as appropriate.
22-
23- ## Testing
24-
25- ### Firefox
26-
27- - ` npm start `
28-
29- ### Chrome
30-
31- Enable developer mode and load the ` addon ` folder as an unpacked extension.
32-
33- ## Packaging/Signing
34-
35- ### Firefox
36-
37- - Find your developer API key: https://addons.mozilla.org/en-US/developers/addon/api/key/
38- - Set the required environment variables:
39- ```
40- export AMO_JWT_ISSUER=<issuer>
41- export AMO_JWT_SECRET=<secret>
42- ```
43- - ` npm run sign `
17+ See [ BUILDING.md] ( BUILDING.md ) for detailed instructions.
Original file line number Diff line number Diff line change 11{
22 "manifest_version" : 2 ,
33 "name" : " Advent of Code to Markdown" ,
4- "version" : " 1.0.10 " ,
4+ "version" : " 1.0.11 " ,
55 "description" : " Converts a given Advent of Code page to a GitHub-compatible Markdown file." ,
66 "icons" : {
77 "16" : " icons/aoc-to-markdown-16.png" ,
2525 " activeTab" ,
2626 " tabs" ,
2727 " downloads"
28- ],
29- "applications" : {
30- "gecko" : {
31- "id" : " {9255ec71-5fba-48c8-9d40-0ae6ef3d6fb3}"
32- }
33- }
28+ ]
3429}
Original file line number Diff line number Diff line change 11{
22 "name" : " aoc-to-markdown" ,
3- "version" : " 1.0.10 " ,
3+ "version" : " 1.0.11 " ,
44 "description" : " Converts a given Advent of Code page to a GitHub-compatible Markdown file." ,
55 "scripts" : {
66 "build" : " webpack && web-ext build -s addon --overwrite-dest" ,
77 "lint" : " eslint . && web-ext lint -s addon" ,
88 "lint-fix" : " eslint . --fix" ,
99 "start" : " npm run build && web-ext run -s addon" ,
10- "sign" : " web-ext sign -s addon --api-key=$AMO_JWT_ISSUER --api-secret=$AMO_JWT_SECRET" ,
1110 "test" : " echo \" Error: no test specified\" && exit 1"
1211 },
1312 "license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments