Skip to content

Commit 611977e

Browse files
committed
refactor(major): Upgrade to Vite, add demo, remove optional libs
- Migrate from Create-React-App to Vite - Add demo playground with examples - Add prettier for code formatting - Remove dev-dependencies: styled-components and AntD
1 parent 12c182c commit 611977e

File tree

206 files changed

+7464
-73201
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

206 files changed

+7464
-73201
lines changed

.env.development

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
VITE_ENV=development

.github/workflows/docs.yml

+42-39
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,46 @@
1-
name: Generate Documentation
1+
name: Deploy Demo and Documentation
22

33
on:
4-
push:
5-
branches:
6-
- main # Run on pushes to the main branch
7-
pull_request:
8-
branches:
9-
- main
4+
push:
5+
branches:
6+
- main # Run on pushes to the main branch
7+
pull_request:
8+
branches:
9+
- main
1010

1111
jobs:
12-
generate-docs:
13-
runs-on: ubuntu-latest
14-
steps:
15-
- name: Checkout code
16-
uses: actions/checkout@v3
17-
18-
- name: Set up Node.js
19-
uses: actions/setup-node@v3
20-
with:
21-
node-version: 'latest'
22-
cache: 'npm'
23-
24-
- name: Install dependencies
25-
run: npm install @microsoft/tsdoc typedoc
26-
27-
- name: Generate documentation
28-
run: npm run docs
29-
30-
- name: Upload documentation to GitHub Pages
31-
uses: actions/upload-pages-artifact@v1
32-
with:
33-
path: ./public/docs # Path where docs are generated
34-
35-
deploy:
36-
needs: generate-docs
37-
runs-on: ubuntu-latest
38-
permissions:
39-
pages: write
40-
id-token: write
41-
steps:
42-
- name: Deploy to GitHub Pages
43-
uses: actions/deploy-pages@v1
12+
build-website:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v4
17+
18+
- name: Set up Node.js
19+
uses: actions/setup-node@v4
20+
with:
21+
node-version: 'latest'
22+
cache: 'npm'
23+
24+
- name: Install dependencies
25+
run: npm install
26+
27+
- name: Generate demo and documentation
28+
run: npm run build-demo && npm run docs
29+
30+
- name: Setup Pages
31+
uses: actions/configure-pages@v4
32+
33+
- name: Upload demo and documentation to GitHub Pages
34+
uses: actions/upload-pages-artifact@v3
35+
with:
36+
path: './dist' # Path where docs are generated
37+
38+
deploy:
39+
needs: build-website
40+
runs-on: ubuntu-latest
41+
permissions:
42+
pages: write
43+
id-token: write
44+
steps:
45+
- name: Deploy to GitHub Pages
46+
uses: actions/deploy-pages@v4

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -21,3 +21,5 @@
2121
npm-debug.log*
2222
yarn-debug.log*
2323
yarn-error.log*
24+
25+
*storybook.log

.gitlab-ci.yml

+8-8
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,14 @@ image: node:latest
55
# This folder is cached between builds
66
# http://docs.gitlab.com/ee/ci/yaml/README.html#cache
77
cache:
8-
paths:
9-
- node_modules/
8+
paths:
9+
- node_modules/
1010

1111
# Instructions to GitLab Runner for generating API documentation on Gitlab Pages
1212
pages:
13-
script:
14-
- npm install @microsoft/tsdoc typedoc
15-
- npm run docs
16-
artifacts:
17-
paths:
18-
- public/docs
13+
script:
14+
- npm install @microsoft/tsdoc typedoc
15+
- npm run docs
16+
artifacts:
17+
paths:
18+
- public/docs

.prettierrc

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"trailingComma": "all",
3+
"tabWidth": 4,
4+
"semi": true,
5+
"singleQuote": true
6+
}

.storybook/main.js

-12
This file was deleted.

.storybook/preview.js

-4
This file was deleted.

.vscode/settings.json

+21-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,22 @@
11
{
2-
}
2+
"workbench.colorCustomizations": {
3+
"activityBar.activeBackground": "#fa1b49",
4+
"activityBar.background": "#fa1b49",
5+
"activityBar.foreground": "#e7e7e7",
6+
"activityBar.inactiveForeground": "#e7e7e799",
7+
"activityBarBadge.background": "#155e02",
8+
"activityBarBadge.foreground": "#e7e7e7",
9+
"commandCenter.border": "#e7e7e799",
10+
"sash.hoverBorder": "#fa1b49",
11+
"statusBar.background": "#dd0531",
12+
"statusBar.foreground": "#e7e7e7",
13+
"statusBarItem.hoverBackground": "#fa1b49",
14+
"statusBarItem.remoteBackground": "#dd0531",
15+
"statusBarItem.remoteForeground": "#e7e7e7",
16+
"titleBar.activeBackground": "#dd0531",
17+
"titleBar.activeForeground": "#e7e7e7",
18+
"titleBar.inactiveBackground": "#dd053199",
19+
"titleBar.inactiveForeground": "#e7e7e799"
20+
},
21+
"peacock.color": "#dd0531"
22+
}

0 commit comments

Comments
 (0)