Only install netlify when necessary (#20)

Reviewed-on: #20
Co-authored-by: chris b <blue.iron1752@chrisb.xyz>
Co-committed-by: chris b <blue.iron1752@chrisb.xyz>
This commit is contained in:
chris b 2023-09-29 11:21:59 -04:00 committed by chrisw-b
parent cc49a23b73
commit 00fe000b65
6 changed files with 947 additions and 17933 deletions

1
.browserslistrc Normal file
View File

@ -0,0 +1 @@
defaults and > 0.5% and not OperaMini all and not UCAndroid 15.5

View File

@ -19,7 +19,10 @@ jobs:
token: ${{ secrets.GH_NODE_TOKEN }}
- name: 🏎️ Install dependencies
run: npm i --no-save --prefer-offline --no-audit
run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- name: 🔨 Install netlify cli
run: npm i --no-save --no-fund --no-audit --no-progress netlify-cli --loglevel error
- name: 🌳 Extract branch name
id: extract_branch

View File

@ -18,7 +18,10 @@ jobs:
token: ${{ secrets.GH_NODE_TOKEN }}
- name: 🏎️ Install dependencies
run: npm i --no-save --prefer-offline --no-audit
run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- name: 🔨 Install netlify cli
run: npm i --no-save --no-fund --no-audit --no-progress netlify-cli --loglevel error
- name: 🌳 Extract branch name
id: extract_branch

66
.gitea/workflows/lint.yml Normal file
View File

@ -0,0 +1,66 @@
name: Lint Project
on:
pull_request:
branches: [main]
jobs:
check-prettier:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- run: npm run prettier:check
check-eslint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- run: npm run lint:js
check-astro:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- run: npm run lint:astro
check-css:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- run: npm run lint:css
check-typescript:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 'lts/*'
cache: 'npm'
- run: npm i --no-save --no-fund --no-audit --no-progress --loglevel error
- run: npm run typescript

18793
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -12,8 +12,7 @@
"prettier": "prettier './**/*' --write --list-different --ignore-unknown",
"prettier:check": "prettier './**/*' -c --ignore-unknown",
"preview": "astro preview",
"sort-imports": "import-sort ./**/*.{js,jsx,es6,es,mjs,tsx,ts,astros} --write -l",
"start": "astro dev",
"start": "npm run dev",
"typescript": "tsc --noEmit"
},
"dependencies": {
@ -29,8 +28,7 @@
"eslint-plugin-jsx-a11y": "6.7.1",
"import-sort": "6.0.0",
"import-sort-parser-typescript": "6.0.0",
"import-sort-style-react": "5.1.0",
"netlify-cli": "16.4.2",
"import-sort-style-custom": "2.1.2",
"postcss-html": "1.5.0",
"prettier": "3.0.3",
"prettier-plugin-astro": "0.12.0",
@ -46,11 +44,11 @@
"importSort": {
".js, .jsx, .es6, .es, .mjs, .cjs": {
"parser": "babylon",
"style": "react"
"style": "custom"
},
".ts, .tsx, .astro": {
"parser": "typescript",
"style": "react"
"style": "custom"
}
}
}