mirror of
https://github.com/LizardByte/awesome-sunshine.git
synced 2026-04-30 10:09:26 -05:00
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:
10
.github/workflows/lint.yml
vendored
10
.github/workflows/lint.yml
vendored
@@ -17,5 +17,13 @@ jobs:
|
|||||||
- name: Checkout
|
- name: Checkout
|
||||||
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
|
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
|
- name: Lint
|
||||||
run: npx awesome-lint
|
run: npm run lint
|
||||||
|
|||||||
4
.gitignore
vendored
4
.gitignore
vendored
@@ -1,2 +1,6 @@
|
|||||||
# Ignore JetBrains IDE files
|
# Ignore JetBrains IDE files
|
||||||
.idea/
|
.idea/
|
||||||
|
|
||||||
|
# Ignore Node.js dependencies
|
||||||
|
node_modules/
|
||||||
|
package-lock.json
|
||||||
|
|||||||
21
package.json
Normal file
21
package.json
Normal 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"
|
||||||
|
]
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user