build: add package.json (#73)

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.
This commit is contained in:
David Lane
2026-02-13 10:22:31 -05:00
committed by GitHub
parent 414caf8750
commit ae9d9e0666
3 changed files with 34 additions and 1 deletions

View File

@@ -17,5 +17,13 @@ jobs:
- name: Checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Setup Node.js
uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v6.2.0
with:
node-version: 'latest'
- name: Install dependencies
run: npm install --ignore-scripts
- name: Lint
run: npx awesome-lint
run: npm run lint

4
.gitignore vendored
View File

@@ -1,2 +1,6 @@
# Ignore JetBrains IDE files
.idea/
# Ignore Node.js dependencies
node_modules/
package-lock.json

21
package.json Normal file
View File

@@ -0,0 +1,21 @@
{
"name": "awesome-sunshine",
"version": "0.0.0",
"description": "A Collection of Awesome Sunshine Scripts, Tools, Guides, and Companion Software",
"private": true,
"scripts": {
"lint": "awesome-lint"
},
"devDependencies": {
"awesome-lint": "2.2.3"
},
"repository": {
"type": "git",
"url": "https://github.com/LizardByte/awesome-sunshine.git"
},
"keywords": [
"awesome",
"awesome-list",
"sunshine"
]
}