-
-
Notifications
You must be signed in to change notification settings - Fork 187
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into chore/remove-webpack.config.js
- Loading branch information
Showing
6 changed files
with
52 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,11 +27,11 @@ jobs: | |
env: | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
||
# - name: build dist and bundle analyzer report | ||
# run: bun run dist | ||
# env: | ||
# ANALYZER: 1 | ||
# NODE_OPTIONS: --max_old_space_size=4096 | ||
- name: build dist and bundle analyzer report | ||
run: bun run compile | ||
env: | ||
ANALYZER: 1 | ||
NODE_OPTIONS: --max_old_space_size=4096 | ||
|
||
- name: Get version | ||
id: publish-version | ||
|
@@ -53,15 +53,15 @@ jobs: | |
source-repo: '[email protected]:ant-design/x.git' | ||
destination-repo: '[email protected]:ant-design/antd-x.git' | ||
|
||
# - name: Deploy to Surge (with TAG) | ||
# run: | | ||
# export DEPLOY_DOMAIN=ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh | ||
# cp report.html ./_site | ||
# bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} | ||
- name: Deploy to Surge (with TAG) | ||
run: | | ||
export DEPLOY_DOMAIN=ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh | ||
cp report.html ./_site | ||
bunx surge --project ./_site --domain $DEPLOY_DOMAIN --token ${{ secrets.SURGE_TOKEN }} | ||
# - name: Create Commit Comment | ||
# uses: peter-evans/commit-comment@v3 | ||
# with: | ||
# body: | | ||
# - Documentation site for this release: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh | ||
# - Webpack bundle analyzer report page: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh/report.html | ||
- name: Create Commit Comment | ||
uses: peter-evans/commit-comment@v3 | ||
with: | ||
body: | | ||
- Documentation site for this release: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh | ||
- Webpack bundle analyzer report page: https://ant-design-x-${{ steps.publish-version.outputs.VERSION }}.surge.sh/report.html |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
name: 📦 Size Limit | ||
|
||
on: | ||
pull_request: | ||
types: [opened, synchronize] | ||
|
||
permissions: | ||
issues: write | ||
contents: read | ||
|
||
jobs: | ||
size: | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: oven-sh/setup-bun@v2 | ||
- name: size-limit | ||
uses: ant-design/size-limit-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
package_manager: bun | ||
build_script: compile |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,7 @@ pnpm add @ant-design/x | |
|
||
在浏览器中使用 `script` 和 `link` 标签直接引入文件,并使用全局变量 `antdx`。 | ||
|
||
我们在 npm 发布包内的 dist 目录下提供了 `antdx.js`、`antdx.min.js` 和 `antdx.min.js.map`。 | ||
我们在 npm 发布包内的 [dist](https://cdn.jsdelivr.net/npm/@ant-design/[email protected]/dist/) 目录下提供了 `antdx.js`、`antdx.min.js` 和 `antdx.min.js.map`。 | ||
|
||
> **强烈不推荐使用已构建文件**,这样无法按需加载,而且难以获得底层依赖模块的 bug 快速修复支持。 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -69,7 +69,7 @@ pnpm add @ant-design/x | |
|
||
Add `script` and `link` tags in your browser and use the global variable `antd`. | ||
|
||
We provide `antdx.js`, `antdx.min.js`, and `antdx.min.js.map` in the `dist` directory of the npm package. | ||
We provide `antdx.js`, `antdx.min.js`, and `antdx.min.js.map` in the [dist](https://cdn.jsdelivr.net/npm/@ant-design/[email protected]/dist/) directory of the npm package. | ||
|
||
## 🧩 Atomic Components | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters