Skip to content

Commit 68fbafd

Browse files
committed
Merge branch 'dev' of github.com:Davont/tiny-vue into dev
2 parents 1e1cd6c + de9b78f commit 68fbafd

File tree

9,351 files changed

+130235
-200154
lines changed

Some content is hidden

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

9,351 files changed

+130235
-200154
lines changed

.all-contributorsrc

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -600,6 +600,42 @@
600600
"contributions": [
601601
"test"
602602
]
603+
},
604+
{
605+
"login": "Simon-He95",
606+
"name": "Simon He",
607+
"avatar_url": "https://avatars.githubusercontent.com/u/57086651?v=4",
608+
"profile": "http://simonhe.me",
609+
"contributions": [
610+
"doc"
611+
]
612+
},
613+
{
614+
"login": "zhangpaopao0609",
615+
"name": "zhangpaopao",
616+
"avatar_url": "https://avatars.githubusercontent.com/u/44194929?v=4",
617+
"profile": "https://study.linlove.cn/",
618+
"contributions": [
619+
"tool"
620+
]
621+
},
622+
{
623+
"login": "Nowitzki41",
624+
"name": "Nowitzki41",
625+
"avatar_url": "https://avatars.githubusercontent.com/u/22088253?v=4",
626+
"profile": "https://github.com/Nowitzki41",
627+
"contributions": [
628+
"code"
629+
]
630+
},
631+
{
632+
"login": "dufu1991",
633+
"name": "dufu1991",
634+
"avatar_url": "https://avatars.githubusercontent.com/u/24769077?v=4",
635+
"profile": "https://github.com/dufu1991",
636+
"contributions": [
637+
"doc"
638+
]
603639
}
604640
],
605641
"contributorsPerLine": 8,

.eslintrc.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ module.exports = {
5050
'@typescript-eslint/no-use-before-define': 'off',
5151
'@typescript-eslint/restrict-template-expressions': 'off',
5252
'@typescript-eslint/no-invalid-this': 'off',
53-
'vue/no-deprecated-dollar-scopedslots-api': 'off'
53+
'vue/no-deprecated-dollar-scopedslots-api': 'off',
54+
'@typescript-eslint/lines-between-class-members': 'off',
55+
'@typescript-eslint/no-this-alias': 'off'
5456
}
5557
}

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
blank_issues_enabled: true
22
contact_links:
33
- name: Questions or need help
4-
url: https://github.com/opentiny/ui-vue/discussions
4+
url: https://github.com/opentiny/tiny-vue/discussions
55
about: Add this WeChat(opentiny-official), we will invite you to the WeChat discussion group later.

.github/labeler.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
version: v1
2+
3+
labels:
4+
- label: "enhancement"
5+
sync: true
6+
matcher:
7+
title: "^feat.*: ?.*"
8+
commit: "^feat.*: ?.*"
9+
- label: "bug"
10+
sync: true
11+
matcher:
12+
title: "^fix.*: ?.*"
13+
commit: "^fix.*: ?.*"
14+
- label: "documentation"
15+
sync: true
16+
matcher:
17+
title: "^docs?: ?.*"
18+
commit: "^docs?: ?.*"
19+
- label: "refactoring"
20+
sync: true
21+
matcher:
22+
title: "^refactor.*: ?.*"
23+
commit: "^refactor.*: ?.*"
24+
- label: "chore"
25+
sync: true
26+
matcher:
27+
title: "^chore.*: ?.*"
28+
commit: "^chore.*: ?.*"
29+
- label: "ospp-2024"
30+
sync: true
31+
matcher:
32+
baseBranch: "^ospp-2024/.*"

.github/workflows/auto-all-publish.yml

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ jobs:
99
build:
1010
runs-on: windows-latest
1111
outputs:
12-
publishVersion: ${{ steps.parseTag.outputs.publishVersion }}
1312
branchVersion: ${{ steps.parseTag.outputs.branchVersion }}
1413
steps:
1514
- name: Parse Tag
@@ -18,9 +17,7 @@ jobs:
1817
with:
1918
script: |
2019
const tag = `${{ github.ref_name }}`
21-
const publishVersion = tag.slice(3)
22-
const branchVersion = tag.slice(1)
23-
core.setOutput('publishVersion', publishVersion)
20+
const branchVersion = tag.slice(1).split('.').slice(0, 2).join('.') + '.0'
2421
core.setOutput('branchVersion', branchVersion)
2522
2623
- name: CheckOut Code
@@ -36,45 +33,48 @@ jobs:
3633
with:
3734
node-version: 20.10.0
3835
registry-url: 'https://registry.npmjs.org'
39-
36+
4037
- name: Get pnpm store directory
4138
id: pnpm-cache
4239
run: |
43-
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
44-
40+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
41+
4542
- uses: actions/cache@v3
4643
name: Setup pnpm cache
4744
with:
4845
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
4946
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
5047
restore-keys: |
51-
${{ runner.os }}-pnpm-store-
48+
${{ runner.os }}-pnpm-store-
5249
- name: Install dependencies
5350
run: pnpm i --no-frozen-lockfile
5451

5552
- name: Run Build Components
56-
run: pnpm build:ui -t ${{ steps.parseTag.outputs.publishVersion }}
57-
53+
run: pnpm build:ui
54+
5855
- name: Run Build Sass Common
59-
run: pnpm build:ui saas-common -t ${{ steps.parseTag.outputs.publishVersion }} -d saas
60-
61-
- name: Run Build Runtime
62-
run: pnpm build:runtime
56+
run: pnpm build:ui saas-common -d saas
6357

6458
- name: Run Build Theme
6559
run: pnpm build:theme
6660

6761
- name: Run Build Renderless
6862
run: pnpm build:renderless
69-
63+
7064
- name: Run Build ThemeSaas
7165
run: pnpm build:themeSaas
72-
73-
- name: Run Build ThemeMobile
74-
run: pnpm build:themeMobile
66+
67+
- name: Run Build Utils
68+
run: pnpm build:utils
69+
70+
- name: Run Build Hooks
71+
run: pnpm build:hooks
72+
73+
- name: Run Build Runtime
74+
run: pnpm build:runtime
7575

7676
- name: Publish Vue3 And Vue2 components
77-
run: pnpm pub:all
77+
run: pnpm pub:all && pnpm pub:runtime && pnpm pub:utils && pnpm pub:hooks
7878
env:
7979
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
8080

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Auto Deploy Site
2+
3+
on:
4+
push:
5+
branches: [dev]
6+
paths:
7+
- 'examples/sites/**'
8+
- '!examples/sites/**/*.spec.ts'
9+
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: read
14+
pages: write
15+
id-token: write
16+
17+
# Allow one concurrent deployment
18+
concurrency:
19+
group: pages
20+
cancel-in-progress: true
21+
22+
jobs:
23+
# Build job
24+
build:
25+
runs-on: ubuntu-latest
26+
permissions:
27+
contents: write
28+
steps:
29+
- name: Checkout
30+
uses: actions/checkout@v3
31+
- name: Setup pnpm
32+
uses: pnpm/action-setup@v3
33+
with:
34+
version: 9
35+
- name: Install deps
36+
run: pnpm i --no-frozen-lockfile
37+
- name: Build site
38+
run: export NODE_OPTIONS="--max-old-space-size=8192" && pnpm -F @opentiny/vue-docs build
39+
- name: Setup Pages
40+
uses: actions/configure-pages@v5
41+
- name: Build with Jekyll
42+
uses: actions/jekyll-build-pages@v1
43+
with:
44+
source: ./examples/sites/dist
45+
destination: ./_site
46+
- name: Repair build artifact
47+
run: |
48+
sudo chmod -R 777 ./_site
49+
cp ./examples/sites/dist/assets/_commonjsHelpers*.js ./_site/assets
50+
cp ./_site/index.html ./_site/404.html
51+
sed -i 's/\/static/\/tiny-vue\/static/' ./_site/static/js/design-common.js
52+
sh ./examples/sites/dist/cp-component-md.sh
53+
- name: Upload artifact
54+
uses: actions/upload-pages-artifact@v3
55+
56+
# Deployment job
57+
deploy:
58+
runs-on: ubuntu-latest
59+
needs: build
60+
steps:
61+
- name: Deploy to GitHub Pages
62+
id: deployment
63+
uses: actions/deploy-pages@v4
64+
environment:
65+
name: github-pages
66+
url: ${{ steps.deployment.outputs.page_url }}

.github/workflows/auto-label.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: Auto Label (Pull Request)
2+
3+
on:
4+
pull_request_target:
5+
types: [opened, edited]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
11+
jobs:
12+
label:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: fuxingloh/multi-labeler@v4.0.0
16+
with:
17+
github-token: ${{ secrets.GITHUB_TOKEN }}
18+
config-path: .github/labeler.yaml
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Dispatch Alpha All Publish
2+
run-name: Dispatch All Publish Alpha--${{ inputs.version }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
version:
8+
description: |
9+
输入您将要发布的版本号,
10+
例如: `3.xx.xx`.
11+
required: true
12+
type: string
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.sha }}
15+
cancel-in-progress: true
16+
17+
jobs:
18+
build:
19+
runs-on: windows-latest
20+
outputs:
21+
publishVersion: ${{ steps.parseVersion.outputs.publishVersion }}
22+
steps:
23+
- name: Parse Version
24+
id: parseVersion
25+
uses: actions/github-script@v6
26+
with:
27+
script: |
28+
const version = `${{ inputs.version }}`
29+
if(!/^\d\.\d+\.\d+/.test(version)) {
30+
throw new Error('版本号格式不正确')
31+
}
32+
const publishVersion = version.slice(2)
33+
core.setOutput('publishVersion', publishVersion)
34+
35+
- name: CheckOut Code
36+
uses: actions/checkout@master
37+
with:
38+
ref: ${{ github.ref_name }}
39+
40+
- name: Setup pnpm
41+
uses: pnpm/action-setup@v2
42+
43+
- name: Setup Node
44+
uses: actions/setup-node@v3
45+
with:
46+
node-version: 20.10.0
47+
registry-url: 'https://registry.npmjs.org'
48+
49+
- name: Get pnpm store directory
50+
id: pnpm-cache
51+
run: |
52+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
53+
54+
- uses: actions/cache@v3
55+
name: Setup pnpm cache
56+
with:
57+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
58+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
59+
restore-keys: |
60+
${{ runner.os }}-pnpm-store-
61+
- name: Install dependencies
62+
run: pnpm i --no-frozen-lockfile
63+
64+
- name: Run Build Components
65+
run: pnpm build:ui -t ${{ steps.parseVersion.outputs.publishVersion }}
66+
67+
- name: Run Build Sass Common
68+
run: pnpm build:ui saas-common -t ${{ steps.parseVersion.outputs.publishVersion }} -d saas
69+
70+
- name: Run Build Theme
71+
run: pnpm build:theme
72+
73+
- name: Run Build Renderless
74+
run: pnpm build:renderless
75+
76+
- name: Run Build ThemeSaas
77+
run: pnpm build:themeSaas
78+
79+
- name: Run Build Utils
80+
run: pnpm build:utils
81+
82+
- name: Run Build Hooks
83+
run: pnpm build:hooks
84+
85+
- name: Run Build Runtime
86+
run: pnpm build:runtime
87+
88+
- name: Run Release alpha
89+
run: pnpm release:alpha
90+
91+
- name: Publish Vue3 And Vue2 components
92+
run: pnpm pub:all && pnpm pub:runtime && pnpm pub:utils && pnpm pub:hooks && pnpm pub:site
93+
env:
94+
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }}

0 commit comments

Comments
 (0)