File tree Expand file tree Collapse file tree 7 files changed +113
-157
lines changed Expand file tree Collapse file tree 7 files changed +113
-157
lines changed Original file line number Diff line number Diff line change
1
+ name : Lint
2
+ on :
3
+ push :
4
+ branches : [master]
5
+ pull_request :
6
+ types : [opened, synchronize]
7
+ jobs :
8
+ lint-eslint :
9
+ name : Run lint:eslint
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : Checkout the repository
13
+ uses : actions/checkout@v4
14
+
15
+ - name : Setup Node.js
16
+ uses : actions/setup-node@v4
17
+ with :
18
+ node-version-file : ' .nvmrc'
19
+ cache : ' npm'
20
+
21
+ - name : Install dependencies
22
+ run : npm ci
23
+
24
+ - name : Run lint:eslint
25
+ run : |
26
+ npm run lint:eslint
27
+ env :
28
+ CI : true
29
+ lint-prettier :
30
+ name : Run lint:prettier
31
+ runs-on : ubuntu-latest
32
+ steps :
33
+ - name : Checkout the repository
34
+ uses : actions/checkout@v4
35
+
36
+ - name : Setup Node.js
37
+ uses : actions/setup-node@v4
38
+ with :
39
+ node-version-file : ' .nvmrc'
40
+ cache : ' npm'
41
+
42
+ - name : Install dependencies
43
+ run : npm ci
44
+
45
+ - name : Run lint:prettier
46
+ run : |
47
+ npm run lint:prettier
48
+ env :
49
+ CI : true
Original file line number Diff line number Diff line change 17
17
- name : Setup Node.js
18
18
uses : actions/setup-node@v4
19
19
with :
20
- node-version : " ${{ steps.get-node-version.outputs.NODE_VERSION }}"
20
+ node-version : ' ${{ steps.get-node-version.outputs.NODE_VERSION }}'
21
21
22
22
- name : Install dependencies
23
23
run : npm install
Original file line number Diff line number Diff line change 2
2
3
3
This repository contains:
4
4
5
- - resources (a list of websites) for Web Scrobbler [ website] [ website ]
6
- - a script file and other environment files that generate resources
5
+ - resources (a list of websites) for Web Scrobbler [ website] [ website ]
6
+ - a script file and other environment files that generate resources
7
7
8
8
This repository is updated automatically. Please don't submit pull requests here.
9
9
10
10
If you find an issue, or have a question, feel free to create a new issue:
11
11
12
- - [ in the extension repository] [ extension-issues ] , if it's related to the extension
13
- - [ in the website repository] [ website-issues ] , if it's related to the website
12
+ - [ in the extension repository] [ extension-issues ] , if it's related to the extension
13
+ - [ in the website repository] [ website-issues ] , if it's related to the website
14
14
15
15
[ website ] : https://web-scrobbler.github.io/
16
16
[ website-issues ] : https://github.com/web-scrobbler/web-scrobbler.github.io/issues
Original file line number Diff line number Diff line change @@ -16,11 +16,11 @@ const resDir = 'resources';
16
16
const moduleFile = 'connectors.ts' ;
17
17
const listFile = `${ resDir } /connectors.json` ;
18
18
19
- async function main ( args :string [ ] ) {
19
+ async function main ( args : string [ ] ) {
20
20
const latestTag = args . at ( - 1 ) ;
21
21
22
22
if ( ! latestTag ) {
23
- console . error ( 'You must provide version as an argument' )
23
+ console . error ( 'You must provide version as an argument' ) ;
24
24
process . exit ( 1 ) ;
25
25
}
26
26
@@ -56,7 +56,7 @@ async function dumpConnectors() {
56
56
const connectors = ( await import ( `./${ moduleFile } ` ) ) . default as any [ ] ;
57
57
58
58
const labelArray = connectors . map ( ( entry ) => entry . label ) ;
59
- const contents = JSON . stringify ( labelArray , null , 2 ) ;
59
+ const contents = JSON . stringify ( labelArray , null , 2 ) + '\n' ;
60
60
61
61
if ( ! fs . existsSync ( resDir ) ) {
62
62
mkdir ( resDir ) ;
You can’t perform that action at this time.
0 commit comments