-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement prettier (automatic changes)
- Loading branch information
Showing
146 changed files
with
4,559 additions
and
4,038 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,11 +1,11 @@ | ||
{ | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:18", | ||
"image": "mcr.microsoft.com/devcontainers/javascript-node:18", | ||
|
||
"postCreateCommand": "npm install", | ||
"postCreateCommand": "npm install", | ||
|
||
"portsAttributes": { | ||
"8080": { | ||
"label": "client" | ||
"portsAttributes": { | ||
"8080": { | ||
"label": "client" | ||
} | ||
} | ||
} | ||
} |
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,6 +1,6 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "github-actions" | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
- package-ecosystem: 'github-actions' | ||
directory: '/' | ||
schedule: | ||
interval: 'daily' |
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 |
---|---|---|
|
@@ -3,55 +3,55 @@ name: Build ⚙ and Deploy 🚀 | |
on: [push, pull_request] | ||
|
||
concurrency: | ||
group: ${{ github.ref }} | ||
group: ${{ github.ref }} | ||
|
||
jobs: | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🚚 | ||
uses: actions/checkout@v4 | ||
build_and_deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout 🚚 | ||
uses: actions/checkout@v4 | ||
|
||
- name: Setup pnpm ⚗ | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
- name: Setup pnpm ⚗ | ||
uses: pnpm/action-setup@v4 | ||
with: | ||
version: 9 | ||
|
||
- name: Setup Node.js ⚗ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
- name: Setup Node.js ⚗ | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: 20 | ||
cache: pnpm | ||
|
||
- name: Install dependencies 🌐 | ||
run: pnpm install --frozen-lockfile | ||
- name: Install dependencies 🌐 | ||
run: pnpm install --frozen-lockfile | ||
|
||
- name: Lint | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: pnpm run pretty:check | ||
- name: Lint | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: pnpm run pretty:check | ||
|
||
- name: Build 🛠 | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: pnpm run build | ||
- name: Build 🛠 | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: pnpm run build | ||
|
||
- name: Run tests 🩺 | ||
run: pnpm run test | ||
- name: Run tests 🩺 | ||
run: pnpm run test | ||
|
||
- name: Add build.txt 🗓 | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: | | ||
git log --pretty=format:'%h' -n 1 > dist/build.txt | ||
echo >> dist/build.txt | ||
date +%F_%T >> dist/build.txt | ||
- name: Add build.txt 🗓 | ||
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/develop' | ||
run: | | ||
git log --pretty=format:'%h' -n 1 > dist/build.txt | ||
echo >> dist/build.txt | ||
date +%F_%T >> dist/build.txt | ||
- name: Deploy 🚀 | ||
if: github.ref == 'refs/heads/master' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: dist # The folder the action should deploy. | ||
single-commit: true | ||
clean: true | ||
- name: Deploy 🚀 | ||
if: github.ref == 'refs/heads/master' | ||
uses: JamesIves/[email protected] | ||
with: | ||
branch: gh-pages # The branch the action should deploy to. | ||
folder: dist # The folder the action should deploy. | ||
single-commit: true | ||
clean: true | ||
# clean-exclude: | | ||
# develop | ||
|
||
|
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,19 +1,19 @@ | ||
name: Merge master to develop | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
push: | ||
branches: | ||
- master | ||
|
||
jobs: | ||
merge_master_to_dev: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Merge master -> develop | ||
uses: devmasx/merge-branch@master | ||
with: | ||
type: now | ||
head_to_merge: master | ||
target_branch: develop | ||
github_token: ${{ github.token }} | ||
merge_master_to_dev: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- name: Merge master -> develop | ||
uses: devmasx/merge-branch@master | ||
with: | ||
type: now | ||
head_to_merge: master | ||
target_branch: develop | ||
github_token: ${{ github.token }} |
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,16 +1,16 @@ | ||
name: "Close stale issues/pull requests" | ||
name: 'Close stale issues/pull requests' | ||
on: | ||
schedule: | ||
- cron: "0 0 * * *" | ||
schedule: | ||
- cron: '0 0 * * *' | ||
|
||
jobs: | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days' | ||
stale-pr-message: 'This pull request is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days' | ||
days-before-stale: 180 | ||
days-before-close: 30 | ||
stale: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/stale@v9 | ||
with: | ||
repo-token: ${{ secrets.GITHUB_TOKEN }} | ||
stale-issue-message: 'This issue is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days' | ||
stale-pr-message: 'This pull request is stale because it has been open 180 days with no activity. Remove stale label or comment or this will be closed in 30 days' | ||
days-before-stale: 180 | ||
days-before-close: 30 |
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.