Skip to content

Commit 2d64ad2

Browse files
build: add package.json
Add a package.json with awesome-lint and a lint script, so the project has a reproducible linting dependency. Update the GitHub Actions workflow to set up Node.js, install dependencies (npm install --ignore-scripts) and run npm run lint instead of npx. Update .gitignore to ignore node_modules and package-lock.json.
1 parent 414caf8 commit 2d64ad2

3 files changed

Lines changed: 34 additions & 1 deletion

File tree

.github/workflows/lint.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,13 @@ jobs:
1717
- name: Checkout
1818
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919

20+
- name: Setup Node.js
21+
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
22+
with:
23+
node-version: 'latest'
24+
25+
- name: Install dependencies
26+
run: npm install --ignore-scripts
27+
2028
- name: Lint
21-
run: npx awesome-lint
29+
run: npm run lint

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
# Ignore JetBrains IDE files
22
.idea/
3+
4+
# Ignore Node.js dependencies
5+
node_modules/
6+
package-lock.json

package.json

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"name": "awesome-sunshine",
3+
"version": "0.0.0",
4+
"description": "A Collection of Awesome Sunshine Scripts, Tools, Guides, and Companion Software",
5+
"private": true,
6+
"scripts": {
7+
"lint": "awesome-lint"
8+
},
9+
"devDependencies": {
10+
"awesome-lint": "2.2.3"
11+
},
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/LizardByte/awesome-sunshine.git"
15+
},
16+
"keywords": [
17+
"awesome",
18+
"awesome-list",
19+
"sunshine"
20+
]
21+
}

0 commit comments

Comments
 (0)