Skip to content

Commit 46ada6f

Browse files
committed
Merge branch 'dev' of github.com:opentiny/tiny-vue into cgm/pager-change-event
2 parents 4fa6790 + 8fb6e88 commit 46ada6f

File tree

384 files changed

+555
-14443
lines changed

Some content is hidden

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

384 files changed

+555
-14443
lines changed

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

Lines changed: 2 additions & 5 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)
2220
const branchVersion = tag.slice(1)
23-
core.setOutput('publishVersion', publishVersion)
2421
core.setOutput('branchVersion', branchVersion)
2522
2623
- name: CheckOut Code
@@ -53,10 +50,10 @@ jobs:
5350
run: pnpm i --no-frozen-lockfile
5451

5552
- name: Run Build Components
56-
run: pnpm build:ui -t ${{ steps.parseTag.outputs.publishVersion }}
53+
run: pnpm build:ui
5754

5855
- name: Run Build Sass Common
59-
run: pnpm build:ui saas-common -t ${{ steps.parseTag.outputs.publishVersion }} -d saas
56+
run: pnpm build:ui saas-common -d saas
6057

6158
- name: Run Build Theme
6259
run: pnpm build:theme
Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
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 ThemeMobile
80+
run: pnpm build:themeMobile
81+
82+
- name: Run Build Runtime
83+
run: pnpm build:runtime
84+
85+
- name: Run Release alpha
86+
run: pnpm release:alpha
87+
88+
- name: Publish Vue3 And Vue2 components
89+
run: pnpm pub:all
90+
env:
91+
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }}
Lines changed: 94 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,94 @@
1+
name: Dispatch Alpha Renderless Theme Runtime
2+
run-name: Dispatch Alpha Renderless Theme Runtime--${{ inputs.components }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
components:
8+
description: |
9+
输入需要打包的模块名称,多个以英文逗号分隔,
10+
例如: `theme,renderless,runtime`
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+
steps:
21+
- name: Parse Components
22+
id: parseComponents
23+
uses: actions/github-script@v6
24+
with:
25+
script: |
26+
const branchName = `${{ github.ref_name }}`
27+
const moduleName = `${{ inputs.components }}`
28+
29+
if (!moduleName.includes('theme') && !moduleName.includes('renderless') && !moduleName.includes('runtime')) {
30+
throw new Error('请输入正确的包名称')
31+
}
32+
33+
if (!branchName.includes('release-3.')) {
34+
throw new Error('请使用release-3.xx.xx分支发布正式包')
35+
}
36+
37+
- name: CheckOut Code
38+
uses: actions/checkout@master
39+
with:
40+
ref: ${{ github.ref_name }}
41+
42+
- name: Setup pnpm
43+
uses: pnpm/action-setup@v2
44+
45+
- name: Setup Node
46+
uses: actions/setup-node@v3
47+
with:
48+
node-version: 20.10.0
49+
registry-url: 'https://registry.npmjs.org'
50+
51+
- name: Get pnpm store directory
52+
id: pnpm-cache
53+
run: |
54+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
55+
56+
- uses: actions/cache@v3
57+
name: Setup pnpm cache
58+
with:
59+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
60+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
61+
restore-keys: |
62+
${{ runner.os }}-pnpm-store-
63+
64+
- name: Install dependencies
65+
run: pnpm i --no-frozen-lockfile
66+
67+
- name: Run Build Theme
68+
if: contains(inputs.components, 'theme') == true
69+
run: pnpm build:theme
70+
71+
- name: Run Build Renderless
72+
if: contains(inputs.components, 'renderless') == true
73+
run: pnpm build:renderless
74+
75+
- name: Run Build ThemeSaas
76+
if: contains(inputs.components, 'theme-saas') == true
77+
run: pnpm build:themeSaas
78+
79+
- name: Run Build ThemeMobile
80+
if: contains(inputs.components, 'theme-mobile') == true
81+
run: pnpm build:themeMobile
82+
83+
- name: Run Build Runtime
84+
if: contains(inputs.components, 'runtime') == true
85+
run: pnpm build:runtime
86+
87+
- name: Run Release alpha
88+
run: pnpm release:alpha
89+
90+
- name: Publish
91+
run: |
92+
pnpm pub:all
93+
env:
94+
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }}
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Dispatch Alpha Ui Publish
2+
run-name: Dispatch Alpha Ui--${{ inputs.components }}
3+
4+
on:
5+
workflow_dispatch:
6+
inputs:
7+
components:
8+
description: |
9+
输入需要打包的组件名称,多个以空格分隔,
10+
例如: `input alert`.
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+
steps:
21+
- name: Parse Components
22+
id: parseComponents
23+
uses: actions/github-script@v6
24+
with:
25+
script: |
26+
const branchName = `${{ github.ref_name }}`
27+
28+
if (!branchName.includes('release-3.')) {
29+
throw new Error('请使用release-3.xx.xx分支发布正式包')
30+
}
31+
32+
- name: CheckOut Code
33+
uses: actions/checkout@master
34+
with:
35+
ref: ${{ github.ref_name }}
36+
37+
- name: Setup pnpm
38+
uses: pnpm/action-setup@v2
39+
40+
- name: Setup Node
41+
uses: actions/setup-node@v3
42+
with:
43+
node-version: 20.10.0
44+
registry-url: 'https://registry.npmjs.org'
45+
46+
- name: Get pnpm store directory
47+
id: pnpm-cache
48+
run: |
49+
echo "pnpm_cache_dir=$(pnpm store path)" >> $GITHUB_OUTPUT
50+
51+
- uses: actions/cache@v3
52+
name: Setup pnpm cache
53+
with:
54+
path: ${{ steps.pnpm-cache.outputs.pnpm_cache_dir }}
55+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
56+
restore-keys: |
57+
${{ runner.os }}-pnpm-store-
58+
59+
- name: Install dependencies
60+
run: pnpm i --no-frozen-lockfile
61+
62+
- name: Run Build Components
63+
run: pnpm build:ui ${{ inputs.components }}
64+
65+
- name: Run Release alpha
66+
run: pnpm release:alpha
67+
68+
- name: Publish
69+
run: |
70+
pnpm pub:all
71+
env:
72+
NODE_AUTH_TOKEN: ${{ secrets.NPM_OPENTINY_VUE_TOKEN }}

.gitignore

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ dist/
44
dist2/
55
dist2.7/
66
dist3/
7-
dist-react/
87
allDist/
98
packages/**/runtime
109
coverage/
@@ -24,12 +23,6 @@ test-results
2423
/packages/vue-runtime/all.ts
2524
/packages/vue-runtime/simple.ts
2625

27-
/packages/react/index.ts
28-
/packages/react/pc.ts
29-
/packages/react/mobile.ts
30-
/packages/react/app.ts
31-
/packages/react/mobile-first.ts
32-
3326
/examples/**/playwright-report
3427
/examples/**/test-results
3528
vite.config.ts.timestamp*
@@ -58,16 +51,6 @@ yarn-error.log*
5851
tgzs
5952
*.tgz
6053

61-
62-
# 以下用不到了
63-
packages/theme/scripts/theme.json
64-
packages/theme/scripts/theme-result.txt
65-
packages/theme/scripts/themeExcel.xlsx
66-
packages/theme/src/theme/*-theme/component.js
67-
packages/theme/src/aurora-theme
68-
packages/theme/src/smb-theme
69-
#------------------------------
70-
7154
# theme 的汇总文件是自动生成的
7255
packages/theme/src/old-theme-index.less
7356
packages/theme/src/index.less

examples/blocks/.gitignore

Lines changed: 0 additions & 25 deletions
This file was deleted.

examples/blocks/README.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)