8000 [Auto release] release 0.11.0 by github-actions[bot] · Pull Request #85 · VisActor/VRender · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

[Auto release] release 0.11.0 #85

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 44 commits into from
Jun 27, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
0dc10f6
fix: fix the error of options3d default value
neuqzxy Jun 20, 2023
e661a72
fix: fix the bug of gradient color while the x1 in color is zero caus…
neuqzxy Jun 20, 2023
f5570b5
feat: move enableView3dTransform into options3d
neuqzxy Jun 20, 2023
6068096
Merge pull request #62 from VisActor/fix/options3d
neuqzxy Jun 20, 2023
4821e1d
Merge pull request #63 from VisActor/fix/gradient-color-offset
neuqzxy Jun 20, 2023
95751e9
feat: update vUtils version
neuqzxy Jun 20, 2023
141b1a9
fix: tooltip shape position
zamhown Jun 20, 2023
3376deb
chore: update changes
zamhown Jun 20, 2023
6d01e84
feat: rename all of the borderRadius to cornerRadius, closed #20
neuqzxy Jun 20, 2023
e5be93f
Merge pull request #64 from VisActor/feat/enableView3dTransform
neuqzxy Jun 20, 2023
f007a78
Merge pull request #65 from VisActor/chore/update-version
neuqzxy Jun 20, 2023
925dcae
fix: cr problems
zamhown Jun 20, 2023
6ec53bc
perf: optimize the performance of setAttributes, closed #26
neuqzxy Jun 21, 2023
d89e5b2
Merge pull request #66 from VisActor/fix/tooltip-shape-position
neuqzxy Jun 21, 2023
6eb60e5
Merge pull request #68 from VisActor/perf/setAttributes
neuqzxy Jun 21, 2023
d97b02f
Merge pull request #67 from VisActor/feat/border-radius-rename
neuqzxy Jun 21, 2023
0938caf
chore: add release local script
neuqzxy Jun 21, 2023
b78454a
chore: edit vutils version
neuqzxy Jun 21, 2023
76d366b
chore: run rush update
neuqzxy Jun 21, 2023
5b9fd3f
build: prelease version 0.11.0-alpha.1
github-actions[bot] Jun 21, 2023
76b3480
Merge pull request #72 from VisActor/pre-release/0.11.0-alpha.1
neuqzxy Jun 25, 2023
5f6473f
fix: fix the bug of gradient-color caused by bounds and offsetXY
neuqzxy Jun 25, 2023 8000
f9418fa
fix: fix the dpr in node env
neuqzxy Jun 25, 2023
98fa601
chore: edit the exports config
neuqzxy Jun 25, 2023
adf7aa0
Merge pull request #74 from VisActor/fix/node-dpr
neuqzxy Jun 25, 2023
f6dbdb3
Merge pull request #75 from VisActor/fix/gradient-color
neuqzxy Jun 25, 2023
855f3f5
Merge pull request #76 from VisActor/chore/export-config
neuqzxy Jun 25, 2023
d742a21
ci: update ci config
neuqzxy Jun 25, 2023
fcaf02b
Merge pull request #77 from VisActor/ci/update-ci
neuqzxy Jun 25, 2023
9a4a0af
fix: fix the bug of rect cornerRadius on left top
neuqzxy Jun 25, 2023
d6feea4
fix: fix the bug of arc in 3d mode
neuqzxy Jun 25, 2023
0c05068
Merge pull request #78 from VisActor/fix/rect-cornerRadius
neuqzxy Jun 25, 2023
47096d0
Merge pull request #79 from VisActor/fix/3d-arc
neuqzxy Jun 25, 2023
0e25d02
build: prelease version 0.11.0-alpha.2
github-actions[bot] Jun 25, 2023
8a07c4c
Merge pull request #80 from VisActor/pre-release/0.11.0-alpha.2
neuqzxy Jun 26, 2023
e6b8552
Merge branch 'develop' into feat/text-lineHeight
neuqzxy Jun 26, 2023
b18662a
fix: remove lineHeight theme in text mark
Rui-Sun Jun 26, 2023
6a8cd5c
Merge pull request #82 from VisActor/feat/text-lineHeight
neuqzxy Jun 26, 2023
e56519e
fix: fix the type error
kkxxkk2019 Jun 26, 2023
5a5910b
Merge pull request #83 from VisActor/fix/type-error
neuqzxy Jun 26, 2023
8af4aa8
test: add demo
neuqzxy Jun 27, 2023
b4836b1
Merge pull request #84 from VisActor/test/demo
neuqzxy Jun 27, 2023
6218fb9
build: prelease version 0.11.0
github-actions[bot] Jun 27, 2023
dc7fc56
Merge branch 'main' into release/0.11.1
neuqzxy Jun 27, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
8000 Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/bug-server.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ name: Bug Server CI

# 这里业务方根据需求设置
on:
pull_request:
push:
branches: ['main']
pull_request:
branches: ['main', 'develop']

jobs:
build:
Expand Down
29 changes: 16 additions & 13 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: Pre-release CI
on:
push:
branches:
- pre-release/*
- 'pre-release/[0-9]+.[0-9]+.[0-9]+-alpha.[0-9]+'
- 'pre-release/[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+'
- 'pre-release/[0-9]+.[0-9]+.[0-9]+-rc.[0-9]+'

jobs:
build:
Expand All @@ -30,38 +32,39 @@ jobs:
- name: Install rush
run: node common/scripts/install-run-rush.js install --bypass-policy

- name: Build packages
run: node common/scripts/install-run-rush.js build --only tag:package

- name: Parse semver version from branch name
id: semver_parser
uses: release-kit/semver@v2
uses: xile611/read-package-version-action@v2.1
with:
string: ${{ github.ref_name }}
pattern: '^pre-release/(.*)$' # ^v?(.*)$ by default
path: packages/vrender
semver_string: ${{ github.ref_name }}
semver_pattern: '^pre-release/(.*)$' # ^v?(.*)$ by default

- name: Apply prereleaseName
run: node common/scripts/install-run-rush.js publish --apply --prerelease-name ${{ steps.semver_parser.outputs.prerelease }} --partial-prerelease
run: node common/scripts/install-run-rush.js publish --apply --prerelease-name ${{ steps.semver_parser.outputs.pre_release_name }} --partial-prerelease

- name: Build packages
run: node common/scripts/install-run-rush.js build --only tag:package

- name: Publish to npm
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
run: node common/scripts/install-run-rush.js publish --publish --include-all --tag ${{ steps.semver_parser.outputs.prerelease }}
run: node common/scripts/install-run-rush.js publish --publish --include-all --tag ${{ steps.semver_parser.outputs.pre_release_type }}

- name: Update shrinkwrap
run: node common/scripts/install-run-rush.js update

- name: Get package version
- name: Get npm version
id: package-version
uses: culshaw/read-package-node-version-actions@v1
uses: xile611/read-package-version-action@v2.1
with:
path: './packages/vrender' # 各项目需要修改一下
path: packages/vrender

- name: Commit & Push changes
uses: actions-js/push@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
message: 'build: prelease version ${{ steps.package-version.outputs.version }}'
message: 'build: prelease version ${{ steps.package-version.outputs.current_version }}'
branch: ${{ github.ref_name }}
author_name: ${{ github.actor }}
12 changes: 9 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release CI
on:
push:
branches:
- release/*
- 'release/[0-9]+.[0-9]+.[0-9]+'

jobs:
build:
Expand Down Expand Up @@ -34,11 +34,17 @@ jobs:
- name: Install rush
run: node common/scripts/install-run-rush.js install --bypass-policy

- name: Update version
run: node common/scripts/install-run-rush.js version --bump

- name: Build packages
run: node common/scripts/install-run-rush.js build --only tag:package

- name: Update version
run: node common/scripts/install-run-rush.js version --bump
- name: Run bug server
working-directory: ./packages/vrender
env:
BUG_SERVER_TOKEN: ${{ secrets.BUG_SERVER_TOKEN }}
run: node ../../common/scripts/install-run-rushx.js ci

- name: Publish to npm
env:
Expand Down
4 changes: 1 addition & 3 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,8 @@
name: Unit test CI

on:
push:
branches: ['main']
pull_request:
branches: ['main']
branches: ['main', 'develop']

jobs:
build:
Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ VRender, not just a feature-rich visual rendering engine, but also a skillful an
<a href="">Cross-Platform</a>
</p>

![image test](https://github.com/visactor/vchart/actions/workflows/bug-server.yml/badge.svg)
![unit test](https://github.com/visactor/vchart/actions/workflows/unit-test.yml/badge.svg)
[![npm Version](https://img.shields.io/npm/v/@visactor/vrender.svg)](https://www.npmjs.com/package/@visactor/vrender)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vrender.svg)](https://www.npmjs.com/package/@visactor/vrender)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vrender/blob/main/LICENSE)
Expand Down
10 changes: 5 additions & 5 deletions README.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,9 @@ VRender,不只是一个功能丰富的可视化渲染引可视化渲染擎,
<a href="">跨端</a>
</p>

[![npm Version](https://img.shields.io/npm/v/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vgrammar.svg)](https://www.npmjs.com/package/@visactor/vgrammar)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vgrammar/blob/main/LICENSE)
[![npm Version](https://img.shields.io/npm/v/@visactor/vrender.svg)](https://www.npmjs.com/package/@visactor/vrender)
[![npm Download](https://img.shields.io/npm/dm/@visactor/vrender.svg)](https://www.npmjs.com/package/@visactor/vrender)
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/visactor/vrender/blob/main/LICENSE)

</div>

Expand Down Expand Up @@ -119,7 +119,7 @@ st.defaultLayer.add(sy);
| ---- | ---- |

| [VChart](https://visactor.io/vchart) | 基于 [VisActor/VRender](https://visactor.io/vrender) 封装的图表库。 |
| [VGrammar](https://visactor.io/vgrammar) | 基于 [VisActor/VRender](https://visactor.io/vgrammar) 封装的语法库。 |
| [VGrammar](https://visactor.io/vgrammar) | 基于 [VisActor/VRender](https://visactor.io/vrender) 封装的语法库。 |
| [React 组件库](https://visactor.io/react-vrender) | 基于 [VisActor/VChart](https://visactor.io/vrender) 的 React 图表 组件库。 |
| [智能生成组件](https://visactor.io/ai-vrender) | 基于 AI 的智能图表生成组件 |

Expand All @@ -129,7 +129,7 @@ st.defaultLayer.add(sy);

细流成河,终成大海!

<a href="https://github.com/visactor/vgrammar/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vgrammar" /></a>
<a href="https://github.com/visactor/vrender/graphs/contributors"><img src="https://contrib.rocks/image?repo=visactor/vrender" /></a>

# 许可证

Expand Down
67 changes: 67 additions & 0 deletions common/autoinstallers/lint/change-all.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
import path from 'path';
import chalk from 'chalk';
import minimist, { ParsedArgs } from 'minimist';
import { spawnSync, execSync } from 'child_process';

interface RunScriptArgv extends ParsedArgs {
message?: string;
type?: string;
'not-commit'?: boolean;
}

function run() {
const commitLineConfigPath = path.resolve(__dirname, './commitlint.config.js');
const commitLintBinPath = path.resolve(__dirname, './node_modules/.bin/commitlint');
const argv: RunScriptArgv = minimist(process.argv.slice(2));
let message = argv.message;
let bumpType = argv.type;
let notCommit = argv['not-commit']

if (!message) {
const lastCommitMessage = execSync('git log -1 --pretty=%B ').toString();

if (!lastCommitMessage) {
process.exit(1);
}

console.log(chalk.green(`[Notice] no message is supplied, we'll use latest commit mesage: ${chalk.red.bold(lastCommitMessage)}`));
message = lastCommitMessage;
} else {
const result = spawnSync(
'sh',
['-c', `echo ${message} | ${commitLintBinPath} --config ${commitLineConfigPath}`],
{
stdio: 'inherit'
}
);

if (result.status !== 0) {
process.exit(1);
}
}

if (!bumpType) {
console.log(chalk.green(`[Notice] no bumpType is supplied, we'll use default bumpType: ${chalk.red.bold('patch')}`));
bumpType = 'patch';
}

spawnSync('sh', ['-c', `rush change --bulk --bump-type '${bumpType}' --message '${message}'`], {
stdio: 'inherit',
shell: false,
});

if (!notCommit) {
spawnSync('sh', ['-c', 'git add --all'], {
stdio: 'inherit',
shell: false,
});

spawnSync('sh', ['-c', `git commit -m 'docs: update changlog of rush'`], {
stdio: 'inherit',
shell: false,
});
}

}

run();
1 change: 1 addition & 0 deletions common/autoinstallers/lint/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@commitlint/cli": "17.0.3",
"@commitlint/config-conventional": "17.0.3",
"@microsoft/rush-lib": "5.94.1",
"chalk": "4.1.2",
"commitizen": "4.2.5",
"eslint": "~8.18.0",
"lint-staged": "13.0.3",
Expand Down
3 changes: 3 additions & 0 deletions common/autoinstallers/lint/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

73 changes: 56 additions & 17 deletions common/config/rush/command-line.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,31 +76,36 @@
"shellCommand": "ts-node common/autoinstallers/create/src/cli.ts"
},
{
"name": "start",
"commandKind": "global",
"name": "components",
"summary": "Start the development server of VRender components",
"description": "Run this command to start VRender components development server",
"shellCommand": "rush run -p @visactor/vrender-components -s start"
"summary": "Start the development server",
"description": "Run this command to start VRender development server",
"shellCommand": "rush run -p @internal/dev-demos -s start"
},
{
"name": "change-all",
"commandKind": "global",
"autoinstallerName": "run-script",
"summary": "Run rush change width lint",
"description": "Run this command to start VRender development server",
"safeForSimultaneousRushProcesses": true,
"shellCommand": "ts-node common/autoinstallers/lint/change-all.ts"
}
],
"parameters": [
{
"parameterKind": "string",
"longName": "--dir",
"description": "Specify which dir will handle",
"associatedCommands": [
"prettier"
],
"associatedCommands": ["prettier"],
"argumentName": "DIR",
"required": false
},
{
"parameterKind": "string",
"longName": "--ext",
"description": "Specify which file type will handle, example `rush prettier --ext 'tsx,scss'`",
"associatedCommands": [
"prettier"
],
"associatedCommands": ["prettier"],
"argumentName": "EXT",
"required": false
},
Expand All @@ -109,9 +114,7 @@
"longName": "--project",
"shortName": "-p",
"description": "Specify the name of the main Rush project to be run",
"associatedCommands": [
"run"
],
"associatedCommands": ["run"],
"argumentName": "PROJECT_NAME",
"required": true
},
Expand All @@ -120,11 +123,47 @@
"longName": "--script",
"shortName": "-s",
"description": "Specify script name in project",
"associatedCommands": [
"run"
],
"associatedCommands": ["run"],
"argumentName": "SCRIPT_NAME",
"required": true
},
{
"parameterKind": "string",
"longName": "--message",
"shortName": "-m",
"description": "Write a message for change",
"associatedCommands": ["change-all"],
"argumentName": "MESSAGE",
"required": false
},
{
"parameterKind": "flag",
"longName": "--not-commit",
"shortName": "-n",
"description": "not commit after run rush change",
"associatedCommands": ["change-all"],
"required": false
},
{
"parameterKind": "choice",
"longName": "--type",
"shortName": "-t",
"description": "The bump type of change: major, minor, patch, none",
"associatedCommands": ["change-all"],
"alternatives": [
{
"name": "patch",
"description": "A patch change"
},
{
"name": "minor",
"description": "A minor change"
},
{
"name": "major",
"description": "A major change"
}
]
}
]
}
}
Loading