Skip to content

Commit

Permalink
[add] GitHub repository settings & PR badges
Browse files Browse the repository at this point in the history
[add] VS Code & GitPod extensions
[optimize] upgrade to Node.js 20 & other latest Upstream packages/actions
  • Loading branch information
TechQuery committed Nov 8, 2024
1 parent 05226f4 commit 0ceeeda
Show file tree
Hide file tree
Showing 11 changed files with 2,245 additions and 2,170 deletions.
17 changes: 17 additions & 0 deletions .github/pr-badge.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
- icon: visualstudio
label: 'GitHub.dev'
message: 'PR-$prNumber'
color: 'blue'
url: 'https://github.dev/$owner/$repo/pull/$prNumber'

- icon: github
label: 'GitHub codespaces'
message: 'PR-$prNumber'
color: 'black'
url: 'https://codespaces.new/$owner/$repo/pull/$prNumber'

- icon: git
label: 'GitPod.io'
message: 'PR-$prNumber'
color: 'orange'
url: 'https://gitpod.io/?autostart=true#https://github.com/$owner/$repo/pull/$prNumber'
85 changes: 85 additions & 0 deletions .github/settings.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
# These settings are synced to GitHub by https://probot.github.io/apps/settings/

repository:
allow_merge_commit: false

delete_branch_on_merge: true

enable_vulnerability_alerts: true

labels:
- name: bug
color: '#d73a4a'
description: Something isn't working

- name: documentation
color: '#0075ca'
description: Improvements or additions to documentation

- name: duplicate
color: '#cfd3d7'
description: This issue or pull request already exists

- name: enhancement
color: '#a2eeef'
description: Some improvements

- name: feature
color: '#16b33f'
description: New feature or request

- name: good first issue
color: '#7057ff'
description: Good for newcomers

- name: help wanted
color: '#008672'
description: Extra attention is needed

- name: invalid
color: '#e4e669'
description: This doesn't seem right

- name: question
color: '#d876e3'
description: Further information is requested

- name: wontfix
color: '#ffffff'
description: This will not be worked on

branches:
- name: main
# https://docs.github.com/en/rest/reference/repos#update-branch-protection
protection:
# Required. Require at least one approving review on a pull request, before merging. Set to null to disable.
required_pull_request_reviews:
# The number of approvals required. (1-6)
required_approving_review_count: 1
# Dismiss approved reviews automatically when a new commit is pushed.
dismiss_stale_reviews: true
# Blocks merge until code owners have reviewed.
require_code_owner_reviews: true
# Specify which users and teams can dismiss pull request reviews.
# Pass an empty dismissal_restrictions object to disable.
# User and team dismissal_restrictions are only available for organization-owned repositories.
# Omit this parameter for personal repositories.
dismissal_restrictions:
# users: []
# teams: []
# Required. Require status checks to pass before merging. Set to null to disable
required_status_checks:
# Required. Require branches to be up to date before merging.
strict: true
# Required. The list of status checks to require in order to merge into this branch
contexts: []
# Required. Enforce all configured restrictions for administrators.
# Set to true to enforce required status checks for repository administrators.
# Set to null to disable.
enforce_admins: true
# Prevent merge commits from being pushed to matching branches
required_linear_history: true
# Required. Restrict who can push to this branch.
# Team and user restrictions are only available for organization-owned repositories.
# Set to null to disable.
restrictions: null
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,22 +7,22 @@ jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install & Build
run: |
pnpm i --frozen-lockfile
pnpm build
- name: Deploy to GitHub pages
uses: peaceiris/actions-gh-pages@v3
uses: peaceiris/actions-gh-pages@v4
with:
publish_dir: ./dist
cname: bootstrap.web-cell.dev
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ jobs:
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4

- uses: pnpm/action-setup@v2
- uses: pnpm/action-setup@v4
with:
version: 9
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20
cache: pnpm
- name: Install & Build
run: |
Expand Down
26 changes: 26 additions & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This configuration file was automatically generated by Gitpod.
# Please adjust to your needs (see https://www.gitpod.io/docs/introduction/learn-gitpod/gitpod-yaml)
# and commit this file to your remote git repository to share the goodness with others.

# Learn more from ready-to-use templates: https://www.gitpod.io/docs/introduction/getting-started/quickstart

vscode:
extensions:
- yzhang.markdown-all-in-one
- unifiedjs.vscode-mdx
- xyc.vscode-mdx-preview
- jock.svg
- redhat.vscode-yaml
- clinyong.vscode-css-modules
- akamud.vscode-caniuse
- visualstudioexptteam.intellicode-api-usage-examples
- pflannery.vscode-versionlens
- christian-kohler.npm-intellisense
- esbenp.prettier-vscode
- rangav.vscode-thunder-client
- eamodio.gitlens
- github.vscode-pull-request-github
- github.vscode-github-actions
tasks:
- init: pnpm i
command: npm start
19 changes: 19 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"recommendations": [
"yzhang.markdown-all-in-one",
"unifiedjs.vscode-mdx",
"xyc.vscode-mdx-preview",
"jock.svg",
"redhat.vscode-yaml",
"clinyong.vscode-css-modules",
"akamud.vscode-caniuse",
"visualstudioexptteam.intellicode-api-usage-examples",
"pflannery.vscode-versionlens",
"christian-kohler.npm-intellisense",
"esbenp.prettier-vscode",
"rangav.vscode-thunder-client",
"eamodio.gitlens",
"github.vscode-pull-request-github",
"github.vscode-github-actions"
]
}
7 changes: 6 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,16 @@
Re-implemented Official **Document site** of [Bootstrap][1] & [FontAwesome][2]
based on [WebCell][3], [BootCell][4] & [MDX][5]

[![CI & CD](https://github.com/EasyWebApp/WebCell/actions/workflows/main.yml/badge.svg)][6]
[![CI & CD](https://github.com/EasyWebApp/BootCell-document/actions/workflows/main.yml/badge.svg)][6]

[![Open in GitHub Codespaces](https://github.com/codespaces/badge.svg)][7]
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)][8]

[1]: https://getbootstrap.com/
[2]: https://fontawesome.com/
[3]: https://web-cell.dev/
[4]: https://web-cell.dev/BootCell/
[5]: https://mdxjs.com/
[6]: https://github.com/EasyWebApp/BootCell-document/actions/workflows/main.yml
[7]: https://codespaces.new/EasyWebApp/BootCell-document
[8]: https://gitpod.io/?autostart=true#https://github.com/EasyWebApp/BootCell-document
36 changes: 18 additions & 18 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@
"description": "Re-implemented Official Document site of Bootstrap & FontAwesome based on WebCell, BootCell & Parcel",
"dependencies": {
"boot-cell": "^2.0.0-beta.29",
"cell-router": "^3.0.0-rc.7",
"cell-router": "^3.0.0-rc.8",
"classnames": "^2.5.1",
"dom-renderer": "^2.1.8",
"dom-renderer": "^2.4.2",
"github-web-widget": "^4.0.0-rc.2",
"iterable-observer": "^1.0.1",
"mobx": "^6.12.4",
"mobx-github": "^0.3.2",
"web-cell": "^3.0.0-rc.16",
"web-utility": "^4.4.0"
"iterable-observer": "^1.1.0",
"mobx": "^6.13.5",
"mobx-github": "^0.3.4",
"web-cell": "^3.0.0",
"web-utility": "^4.4.2"
},
"devDependencies": {
"@parcel/config-default": "~2.12.0",
Expand All @@ -21,19 +21,19 @@
"@parcel/transformer-typescript-tsc": "~2.12.0",
"@parcel/transformer-webmanifest": "~2.12.0",
"@types/mdx": "^2.0.13",
"@types/node": "^18.19.34",
"fs-match": "^1.7.1",
"husky": "^9.0.11",
"lint-staged": "^15.2.7",
"@types/node": "^20.17.6",
"fs-match": "^1.7.2",
"husky": "^9.1.6",
"lint-staged": "^15.2.10",
"parcel": "~2.12.0",
"parcel-transformer-mdx": "^0.3.2",
"postcss": "^8.4.38",
"parcel-transformer-mdx": "^0.4.2",
"postcss": "^8.4.47",
"postcss-modules": "^4.3.1",
"prettier": "^3.3.2",
"tsx": "^4.15.6",
"typescript": "~5.4.5",
"workbox-cli": "^7.1.0",
"yaml": "^2.4.5"
"prettier": "^3.3.3",
"tsx": "^4.19.2",
"typescript": "~5.6.3",
"workbox-cli": "^7.3.0",
"yaml": "^2.6.0"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

1 comment on commit 0ceeeda

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deploy preview for bootcell-document ready!

✅ Preview
https://bootcell-document-87lrsnhg0-techquerys-projects.vercel.app

Built with commit 0ceeeda.
This pull request is being automatically deployed with vercel-action

Please # to comment.