-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(infra): only lint staged files (#153)
* chore(infra): only lint staged files * chore: some more prettier, lint-staged cleanup * chore: adopt package.json * chore: update dependencies * chore: move lint:staged to pre-commit phase * chore: move prettier to project root
- Loading branch information
1 parent
1696d5a
commit 1364292
Showing
26 changed files
with
1,867 additions
and
1,562 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,42 @@ | ||
name: build | ||
|
||
on: | ||
schedule: | ||
- cron: "50 3 * * *" # runs every day at 03:50 UTC to avoid high loads | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "50 3 * * *" # runs every day at 03:50 UTC to avoid high loads | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
env: | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js LTS (16.x) | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: install yarn | ||
run: | | ||
npm install yarn --global | ||
- name: yarn | ||
run: | | ||
yarn | ||
- name: crawl data | ||
run: | | ||
yarn workspace crawler fetch | ||
- run: | | ||
yarn workspace ui build | ||
- name: Commit/Push build to docs branch | ||
run: | | ||
git config --global user.name 'marianfoo' | ||
git config --global user.email '[email protected]' | ||
git add docs -f | ||
git add packages/ui/src/model/data.json | ||
git add packages/ui/src/model/versions.json | ||
git commit -m "chore: build" | ||
git push origin HEAD:docs --force | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- name: Use Node.js LTS (16.x) | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: "16" | ||
- name: install yarn | ||
run: | | ||
npm install yarn --global | ||
- name: yarn | ||
run: | | ||
yarn | ||
- name: crawl data | ||
run: | | ||
yarn workspace crawler build | ||
- run: | | ||
yarn workspace ui build | ||
- name: Commit/Push build to docs branch | ||
run: | | ||
git config --global user.name 'marianfoo' | ||
git config --global user.email '[email protected]' | ||
git add docs -f | ||
git add packages/ui/src/model/data.json | ||
git add packages/ui/src/model/versions.json | ||
git commit -m "chore: build" | ||
git push origin HEAD:docs --force |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,6 +5,7 @@ node_modules/ | |
webapp | ||
dist | ||
docs | ||
|
||
# Logs | ||
logs | ||
*.log | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
build | ||
docs | ||
*.html | ||
*.properties | ||
packages/ui/src/resources/font-awesome | ||
# Ignore specific files | ||
_config.yml | ||
|
||
# Ignore files by extension | ||
/**/*.md | ||
/**/*.svg | ||
|
||
# Ignore folders | ||
/docs/** | ||
/packages/ui/src/font-awesome/** | ||
/packages/ui/webapp/** |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"singleQuote": false, | ||
"printWidth": 200, | ||
"endOfLine": "lf", | ||
"tabWidth": 4, | ||
"useTabs": true, | ||
"overrides": [ | ||
{ | ||
"files": ["*.yaml", "*.yml", "*.md", "*.json", "*.xml"], | ||
"options": { | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"xmlWhitespaceSensitivity": "ignore" | ||
} | ||
}, | ||
{ | ||
"files": ["*.properties"], | ||
"options": { | ||
"useTabs": false, | ||
"tabWidth": 2, | ||
"keySeparator": "=" | ||
} | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"src/**/*": "eslint" | ||
} |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"src/**/*": "eslint" | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.