Skip to content

Commit 0ceeeda

Browse files
committed
[add] GitHub repository settings & PR badges
[add] VS Code & GitPod extensions [optimize] upgrade to Node.js 20 & other latest Upstream packages/actions
1 parent 05226f4 commit 0ceeeda

File tree

11 files changed

+2245
-2170
lines changed

11 files changed

+2245
-2170
lines changed

.github/pr-badge.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
- icon: visualstudio
2+
label: 'GitHub.dev'
3+
message: 'PR-$prNumber'
4+
color: 'blue'
5+
url: 'https://github.dev/$owner/$repo/pull/$prNumber'
6+
7+
- icon: github
8+
label: 'GitHub codespaces'
9+
message: 'PR-$prNumber'
10+
color: 'black'
11+
url: 'https://codespaces.new/$owner/$repo/pull/$prNumber'
12+
13+
- icon: git
14+
label: 'GitPod.io'
15+
message: 'PR-$prNumber'
16+
color: 'orange'
17+
url: 'https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber'

.github/settings.yml

Lines changed: 85 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
# These settings are synced to GitHub by https://probot.github.io/apps/settings/
2+
3+
repository:
4+
allow_merge_commit: false
5+
6+
delete_branch_on_merge: true
7+
8+
enable_vulnerability_alerts: true
9+
10+
labels:
11+
- name: bug
12+
color: '#d73a4a'
13+
description: Something isn't working
14+
15+
- name: documentation
16+
color: '#0075ca'
17+
description: Improvements or additions to documentation
18+
19+
- name: duplicate
20+
color: '#cfd3d7'
21+
description: This issue or pull request already exists
22+
23+
- name: enhancement
24+
color: '#a2eeef'
25+
description: Some improvements
26+
27+
- name: feature
28+
color: '#16b33f'
29+
description: New feature or request
30+
31+
- name: good first issue
32+
color: '#7057ff'
33+
description: Good for newcomers
34+
35+
- name: help wanted
36+
color: '#008672'
37+
description: Extra attention is needed
38+
39+
- name: invalid
40+
color: '#e4e669'
41+
description: This doesn't seem right
42+
43+
- name: question
44+
color: '#d876e3'
45+
description: Further information is requested
46+
47+
- name: wontfix
48+
color: '#ffffff'
49+
description: This will not be worked on
50+
51+
branches:
52+
- name: main
53+
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
54+
protection:
55+
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
56+
required_pull_request_reviews:
57+
# The number of approvals required. (1-6)
58+
required_approving_review_count: 1
59+
# Dismiss approved reviews automatically when a new commit is pushed.
60+
dismiss_stale_reviews: true
61+
# Blocks merge until code owners have reviewed.
62+
require_code_owner_reviews: true
63+
# Specify which users and teams can dismiss pull request reviews.
64+
# Pass an empty dismissal_restrictions object to disable.
65+
# User and team dismissal_restrictions are only available for organization-owned repositories.
66+
# Omit this parameter for personal repositories.
67+
dismissal_restrictions:
68+
# users: []
69+
# teams: []
70+
# Required. Require status checks to pass before merging. Set to null to disable
71+
required_status_checks:
72+
# Required. Require branches to be up to date before merging.
73+
strict: true
74+
# Required. The list of status checks to require in order to merge into this branch
75+
contexts: []
76+
# Required. Enforce all configured restrictions for administrators.
77+
# Set to true to enforce required status checks for repository administrators.
78+
# Set to null to disable.
79+
enforce_admins: true
80+
# Prevent merge commits from being pushed to matching branches
81+
required_linear_history: true
82+
# Required. Restrict who can push to this branch.
83+
# Team and user restrictions are only available for organization-owned repositories.
84+
# Set to null to disable.
85+
restrictions: null

.github/workflows/main.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,22 +7,22 @@ jobs:
77
Build-and-Deploy:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111

12-
- uses: pnpm/action-setup@v2
12+
- uses: pnpm/action-setup@v4
1313
with:
1414
version: 9
15-
- uses: actions/setup-node@v3
15+
- uses: actions/setup-node@v4
1616
with:
17-
node-version: 18
17+
node-version: 20
1818
cache: pnpm
1919
- name: Install & Build
2020
run: |
2121
pnpm i --frozen-lockfile
2222
pnpm build
2323
2424
- name: Deploy to GitHub pages
25-
uses: peaceiris/actions-gh-pages@v3
25+
uses: peaceiris/actions-gh-pages@v4
2626
with:
2727
publish_dir: ./dist
2828
cname: bootstrap.web-cell.dev

.github/workflows/push.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,14 @@ jobs:
1111
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
1212
runs-on: ubuntu-latest
1313
steps:
14-
- uses: actions/checkout@v3
14+
- uses: actions/checkout@v4
1515

16-
- uses: pnpm/action-setup@v2
16+
- uses: pnpm/action-setup@v4
1717
with:
1818
version: 9
19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
21-
node-version: 18
21+
node-version: 20
2222
cache: pnpm
2323
- name: Install & Build
2424
run: |

.gitpod.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# This configuration file was automatically generated by Gitpod.
2+
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
3+
# and commit this file to your remote git repository to share the goodness with others.
4+
5+
# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart
6+
7+
vscode:
8+
extensions:
9+
- yzhang.markdown-all-in-one
10+
- unifiedjs.vscode-mdx
11+
- xyc.vscode-mdx-preview
12+
- jock.svg
13+
- redhat.vscode-yaml
14+
- clinyong.vscode-css-modules
15+
- akamud.vscode-caniuse
16+
- visualstudioexptteam.intellicode-api-usage-examples
17+
- pflannery.vscode-versionlens
18+
- christian-kohler.npm-intellisense
19+
- esbenp.prettier-vscode
20+
- rangav.vscode-thunder-client
21+
- eamodio.gitlens
22+
- github.vscode-pull-request-github
23+
- github.vscode-github-actions
24+
tasks:
25+
- init: pnpm i
26+
command: npm start

.vscode/extensions.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"recommendations": [
3+
"yzhang.markdown-all-in-one",
4+
"unifiedjs.vscode-mdx",
5+
"xyc.vscode-mdx-preview",
6+
"jock.svg",
7+
"redhat.vscode-yaml",
8+
"clinyong.vscode-css-modules",
9+
"akamud.vscode-caniuse",
10+
"visualstudioexptteam.intellicode-api-usage-examples",
11+
"pflannery.vscode-versionlens",
12+
"christian-kohler.npm-intellisense",
13+
"esbenp.prettier-vscode",
14+
"rangav.vscode-thunder-client",
15+
"eamodio.gitlens",
16+
"github.vscode-pull-request-github",
17+
"github.vscode-github-actions"
18+
]
19+
}

ReadMe.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
Re-implemented Official **Document site** of [Bootstrap][1] & [FontAwesome][2]
44
based on [WebCell][3], [BootCell][4] & [MDX][5]
55

6-
[![CI & CD](https://github.com/EasyWebApp/WebCell/actions/workflows/main.yml/badge.svg)][6]
6+
[![CI & CD](https://github.com/EasyWebApp/BootCell-document/actions/workflows/main.yml/badge.svg)][6]
7+
8+
[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][7]
9+
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][8]
710

811
[1]: https://getbootstrap.com/
912
[2]: https://fontawesome.com/
1013
[3]: https://web-cell.dev/
1114
[4]: https://web-cell.dev/BootCell/
1215
[5]: https://mdxjs.com/
1316
[6]: https://github.com/EasyWebApp/BootCell-document/actions/workflows/main.yml
17+
[7]: https://codespaces.new/EasyWebApp/BootCell-document
18+
[8]: https://gitpod.io/?autostart=true#https://github.com/EasyWebApp/BootCell-document

package.json

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
"description": "Re-implemented Official Document site of Bootstrap & FontAwesome based on WebCell, BootCell & Parcel",
55
"dependencies": {
66
"boot-cell": "^2.0.0-beta.29",
7-
"cell-router": "^3.0.0-rc.7",
7+
"cell-router": "^3.0.0-rc.8",
88
"classnames": "^2.5.1",
9-
"dom-renderer": "^2.1.8",
9+
"dom-renderer": "^2.4.2",
1010
"github-web-widget": "^4.0.0-rc.2",
11-
"iterable-observer": "^1.0.1",
12-
"mobx": "^6.12.4",
13-
"mobx-github": "^0.3.2",
14-
"web-cell": "^3.0.0-rc.16",
15-
"web-utility": "^4.4.0"
11+
"iterable-observer": "^1.1.0",
12+
"mobx": "^6.13.5",
13+
"mobx-github": "^0.3.4",
14+
"web-cell": "^3.0.0",
15+
"web-utility": "^4.4.2"
1616
},
1717
"devDependencies": {
1818
"@parcel/config-default": "~2.12.0",
@@ -21,19 +21,19 @@
2121
"@parcel/transformer-typescript-tsc": "~2.12.0",
2222
"@parcel/transformer-webmanifest": "~2.12.0",
2323
"@types/mdx": "^2.0.13",
24-
"@types/node": "^18.19.34",
25-
"fs-match": "^1.7.1",
26-
"husky": "^9.0.11",
27-
"lint-staged": "^15.2.7",
24+
"@types/node": "^20.17.6",
25+
"fs-match": "^1.7.2",
26+
"husky": "^9.1.6",
27+
"lint-staged": "^15.2.10",
2828
"parcel": "~2.12.0",
29-
"parcel-transformer-mdx": "^0.3.2",
30-
"postcss": "^8.4.38",
29+
"parcel-transformer-mdx": "^0.4.2",
30+
"postcss": "^8.4.47",
3131
"postcss-modules": "^4.3.1",
32-
"prettier": "^3.3.2",
33-
"tsx": "^4.15.6",
34-
"typescript": "~5.4.5",
35-
"workbox-cli": "^7.1.0",
36-
"yaml": "^2.4.5"
32+
"prettier": "^3.3.3",
33+
"tsx": "^4.19.2",
34+
"typescript": "~5.6.3",
35+
"workbox-cli": "^7.3.0",
36+
"yaml": "^2.6.0"
3737
},
3838
"prettier": {
3939
"singleQuote": true,

0 commit comments

Comments
 (0)