Skip to content

Commit

Permalink
[add] Scroll List example page
Browse files Browse the repository at this point in the history
[add] Git Logo & Card components
[optimize] support local GitHub API token
[optimize] upgrade Upstream packages
  • Loading branch information
TechQuery committed Jun 5, 2023
1 parent 5359472 commit 539abac
Show file tree
Hide file tree
Showing 13 changed files with 3,247 additions and 2,439 deletions.
23 changes: 21 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,25 +6,44 @@ on:
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v3

- uses: pnpm/action-setup@v2
with:
version: 7
version: 8
- uses: actions/setup-node@v3
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
with:
node-version: 14
node-version: 16
cache: pnpm
- name: Install Dependencies
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
run: pnpm i --frozen-lockfile

- name: Build Production
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
run: pnpm build

- name: Deploy Production
uses: peaceiris/actions-gh-pages@v3
if: ${{ !env.VERCEL_TOKEN || !env.VERCEL_ORG_ID || !env.VERCEL_PROJECT_ID }}
with:
publish_dir: ./dist
personal_token: ${{ secrets.GITHUB_TOKEN }}
force_orphan: true

- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./
vercel-args: --prod
27 changes: 27 additions & 0 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Pull Request
on:
push:
branches-ignore:
- master
jobs:
Build-and-Deploy:
runs-on: ubuntu-latest
permissions:
contents: write
env:
VERCEL_TOKEN: ${{ secrets.VERCEL_TOKEN }}
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
steps:
- uses: actions/checkout@v3
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}

- name: Deploy to Vercel
uses: amondnet/vercel-action@v25
if: ${{ env.VERCEL_TOKEN && env.VERCEL_ORG_ID && env.VERCEL_PROJECT_ID }}
with:
vercel-token: ${{ secrets.VERCEL_TOKEN }}
github-token: ${{ secrets.GITHUB_TOKEN }}
vercel-org-id: ${{ secrets.VERCEL_ORG_ID }}
vercel-project-id: ${{ secrets.VERCEL_PROJECT_ID }}
working-directory: ./
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@
coverage/
dist/
package-lock.json
yarn.lock
node_modules/
.env
*.log
.husky/_/

Expand Down
4 changes: 2 additions & 2 deletions ReadMe.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,12 @@ which is inspired by [WebCell scaffold][5].

## Technology stack

- Language: [TypeScript v4][2]
- Language: [TypeScript v5][2]
- Component engine: [React 17][1]
- State management: [MobX v5][3]
- Component suite: [React Bootstrap v2][8]
- HTTP Client: [KoAJAX][9]
- PWA framework: [Workbox v6][10]
- PWA framework: [Workbox v7][10]
- Package bundler: [Parcel v2][11]
- CI / CD: GitHub [Actions][12] + [Pages][13]

Expand Down
50 changes: 22 additions & 28 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,56 +5,50 @@
"author": "[email protected]",
"dependencies": {
"@editorjs/code": "^2.8.0",
"@editorjs/editorjs": "^2.26.5",
"@editorjs/editorjs": "^2.27.0",
"@editorjs/header": "^2.7.0",
"@editorjs/image": "^2.8.1",
"@editorjs/link": "^2.5.0",
"@editorjs/list": "^1.8.0",
"@editorjs/paragraph": "^2.9.0",
"@editorjs/quote": "^2.5.0",
"browser-fs-access": "^0.33.0",
"browser-fs-access": "^0.34.1",
"browser-unhandled-rejection": "^1.0.2",
"editorjs-html": "^3.4.2",
"idea-react": "^1.0.0-beta.0",
"iterable-observer": "^1.0.0-rc.1",
"koajax": "^0.8.3",
"idea-react": "^1.0.0-beta.1",
"koajax": "^0.8.4",
"lodash": "^4.17.21",
"mobx": "^5.15.7",
"mobx-i18n": "^0.3.14",
"mobx-react": "^6.3.1",
"mobx-restful": "^0.6.3",
"mobx-restful-table": "^0.10.0",
"mobx-restful": "^0.6.4",
"mobx-restful-table": "^1.0.1",
"react": "^17.0.2",
"react-bootstrap": "^2.7.2",
"react-bootstrap": "^2.7.4",
"react-bootstrap-editor": "^1.0.0-rc.7",
"react-dom": "^17.0.2",
"react-editor-js": "^2.1.0",
"react-router-class-tools": "^0.1.2",
"react-router-dom": "^6.9.0",
"react-router-class-tools": "^0.1.3",
"react-router-dom": "^6.11.2",
"web-utility": "^4.0.0"
},
"devDependencies": {
"@octokit/openapi-types": "^16.0.0",
"@parcel/config-default": "2.7.0",
"@parcel/packager-raw-url": "2.7.0",
"@parcel/transformer-less": "2.7.0",
"@parcel/transformer-raw": "2.7.0",
"@parcel/transformer-typescript-tsc": "2.7.0",
"@parcel/transformer-webmanifest": "2.7.0",
"@types/lodash": "^4.14.191",
"@types/node": "^16.18.16",
"@types/react": "^17.0.53",
"@types/react-dom": "^17.0.19",
"@octokit/openapi-types": "^17.2.0",
"@parcel/packager-raw-url": "~2.8.3",
"@parcel/transformer-less": "~2.8.3",
"@parcel/transformer-webmanifest": "~2.8.3",
"@types/lodash": "^4.14.195",
"@types/node": "^16.18.34",
"@types/react": "^17.0.60",
"@types/react-dom": "^17.0.20",
"husky": "^8.0.3",
"lint-staged": "^13.2.0",
"parcel": "2.7.0",
"postcss": "^8.4.21",
"postcss-modules": "^4.3.1",
"prettier": "^2.8.4",
"lint-staged": "^13.2.2",
"parcel": "~2.8.3",
"prettier": "^2.8.8",
"prismjs": "^1.29.0",
"process": "^0.11.10",
"typescript": "~4.7.4",
"workbox-cli": "^6.5.4"
"typescript": "~5.1.3",
"workbox-cli": "^7.0.0"
},
"prettier": {
"singleQuote": true,
Expand Down
Loading

0 comments on commit 539abac

Please sign in to comment.