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.
14
14
15
15
## Building
16
16
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 1
1
{
2
2
"manifest_version" : 2 ,
3
3
"name" : " Advent of Code to Markdown" ,
4
- "version" : " 1.0.10 " ,
4
+ "version" : " 1.0.11 " ,
5
5
"description" : " Converts a given Advent of Code page to a GitHub-compatible Markdown file." ,
6
6
"icons" : {
7
7
"16" : " icons/aoc-to-markdown-16.png" ,
25
25
" activeTab" ,
26
26
" tabs" ,
27
27
" downloads"
28
- ],
29
- "applications" : {
30
- "gecko" : {
31
- "id" : " {9255ec71-5fba-48c8-9d40-0ae6ef3d6fb3}"
32
- }
33
- }
28
+ ]
34
29
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " aoc-to-markdown" ,
3
- "version" : " 1.0.10 " ,
3
+ "version" : " 1.0.11 " ,
4
4
"description" : " Converts a given Advent of Code page to a GitHub-compatible Markdown file." ,
5
5
"scripts" : {
6
6
"build" : " webpack && web-ext build -s addon --overwrite-dest" ,
7
7
"lint" : " eslint . && web-ext lint -s addon" ,
8
8
"lint-fix" : " eslint . --fix" ,
9
9
"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" ,
11
10
"test" : " echo \" Error: no test specified\" && exit 1"
12
11
},
13
12
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments