mirror of
https://github.com/idrawjs/idraw
synced 2026-05-24 10:08:34 +00:00
chore: bump version 0.4.0-beta.2
This commit is contained in:
parent
f8fddba4ae
commit
282eebf615
15 changed files with 89 additions and 92 deletions
48
.github/workflows/coverage.yml
vendored
48
.github/workflows/coverage.yml
vendored
|
|
@ -5,40 +5,38 @@ name: Coverage
|
|||
|
||||
on:
|
||||
push:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
strategy:
|
||||
matrix:
|
||||
node-version: [18.x]
|
||||
node-version: [20.x]
|
||||
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm config set registry https://registry.yarnpkg.com/
|
||||
# - run: npm install
|
||||
- run: npm install --global pnpm
|
||||
- run: pnpm i
|
||||
- run: npm run beforetest
|
||||
- run: npm run cover
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
||||
files: /home/runner/work/idraw/idraw/reports/clover.xml # optional
|
||||
flags: unittests # optional
|
||||
name: codecov-umbrella # optional
|
||||
fail_ci_if_error: true # optional (default = false)
|
||||
verbose: true # optional (default = false)
|
||||
|
||||
- uses: actions/checkout@v2
|
||||
- name: Use Node.js ${{ matrix.node-version }}
|
||||
uses: actions/setup-node@v1
|
||||
with:
|
||||
node-version: ${{ matrix.node-version }}
|
||||
- run: npm config set registry https://registry.yarnpkg.com/
|
||||
# - run: npm install
|
||||
- run: npm install --global pnpm
|
||||
- run: pnpm i
|
||||
- run: npm run beforetest
|
||||
- run: npm run cover
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
||||
files: /home/runner/work/idraw/idraw/reports/clover.xml # optional
|
||||
flags: unittests # optional
|
||||
name: codecov-umbrella # optional
|
||||
fail_ci_if_error: true # optional (default = false)
|
||||
verbose: true # optional (default = false)
|
||||
|
||||
|
|
|
|||
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -19,21 +19,22 @@ jobs:
|
|||
- run: pnpm i
|
||||
- run: npm run test
|
||||
- run: npm run build
|
||||
- run: npm publish --provenance --access public -w ./packages/types --tag next
|
||||
# - run: npm publish --provenance --access public -w ./packages/types --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/types
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public -w ./packages/util --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/util
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public -w ./packages/renderer --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/renderer
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public -w ./packages/board --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/board
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public -w ./packages/core --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/core
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
- run: npm publish --provenance --access public -w ./packages/idraw --tag next
|
||||
- run: npm publish --provenance --access public -w ./packages/idraw
|
||||
env:
|
||||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
|
|
|
|||
36
README.md
36
README.md
|
|
@ -14,9 +14,9 @@
|
|||
<img src="https://github.com/idrawjs/idraw/actions/workflows/node.js.yml/badge.svg?branch=main" alt="CI">
|
||||
<a>
|
||||
|
||||
<a href="https://codecov.io/gh/idrawjs/idraw">
|
||||
<!-- <a href="https://codecov.io/gh/idrawjs/idraw">
|
||||
<img src="https://codecov.io/gh/idrawjs/idraw/branch/main/graph/badge.svg?token=MICIC9SCKY"/>
|
||||
</a>
|
||||
</a> -->
|
||||
|
||||
<a href="https://www.npmjs.com/package/idraw">
|
||||
<img src="https://img.shields.io/npm/v/idraw.svg?sanitize=idraw" alt="Version">
|
||||
|
|
@ -54,7 +54,11 @@
|
|||
The preview of `@idraw/studo`. Click [here](https://github.com/idrawjs/studio) to get it.
|
||||
|
||||
<div style="text-align: center">
|
||||
<img src="./assets/preview/idraw-studio-preview.png" width="700" />
|
||||
<img src="./assets/preview/idraw-studio-dark.png" width="700" />
|
||||
</div>
|
||||
|
||||
<div style="text-align: center">
|
||||
<img src="./assets/preview/idraw-studio-light.png" width="700" />
|
||||
</div>
|
||||
|
||||
## Install
|
||||
|
|
@ -75,8 +79,6 @@ const idraw = new iDraw(
|
|||
{
|
||||
width: 600,
|
||||
height: 400,
|
||||
contextWidth: 600,
|
||||
contextHeight: 400,
|
||||
devicePixelRatio: 1,
|
||||
}
|
||||
);
|
||||
|
|
@ -87,8 +89,8 @@ idraw.addElement({
|
|||
w: 200,
|
||||
h: 100,
|
||||
type: "rect",
|
||||
desc: {
|
||||
bgColor: "#f7d3c1",
|
||||
detail: {
|
||||
background: "#f7d3c1",
|
||||
borderRadius: 20,
|
||||
borderWidth: 4,
|
||||
borderColor: "#ff6032",
|
||||
|
|
@ -107,9 +109,7 @@ function Demo() {
|
|||
useEffect(() => {
|
||||
const idraw = new iDraw(ref.current, {
|
||||
width: 600,
|
||||
height: 400,
|
||||
contextWidth: 600,
|
||||
contextHeight: 400,
|
||||
height: 400,
|
||||
devicePixelRatio: 1,
|
||||
});
|
||||
idraw.addElement({
|
||||
|
|
@ -119,8 +119,8 @@ function Demo() {
|
|||
w: 200,
|
||||
h: 100,
|
||||
type: "rect",
|
||||
desc: {
|
||||
bgColor: "#f7d3c1",
|
||||
detail: {
|
||||
background: "#f7d3c1",
|
||||
borderRadius: 20,
|
||||
borderWidth: 4,
|
||||
borderColor: "#ff6032",
|
||||
|
|
@ -149,9 +149,7 @@ const mount = ref();
|
|||
onMounted(() => {
|
||||
const idraw = new iDraw(mount.value, {
|
||||
width: 600,
|
||||
height: 400,
|
||||
contextWidth: 600,
|
||||
contextHeight: 400,
|
||||
height: 400,
|
||||
devicePixelRatio: 1,
|
||||
});
|
||||
idraw.addElement({
|
||||
|
|
@ -161,8 +159,8 @@ onMounted(() => {
|
|||
w: 200,
|
||||
h: 100,
|
||||
type: "rect",
|
||||
desc: {
|
||||
bgColor: "#f7d3c1",
|
||||
detail: {
|
||||
background: "#f7d3c1",
|
||||
borderRadius: 20,
|
||||
borderWidth: 4,
|
||||
borderColor: "#ff6032",
|
||||
|
|
@ -183,8 +181,8 @@ To contribute, please follow the steps:
|
|||
|
||||
- `git clone git@github.com:idrawjs/idraw.git`
|
||||
- `cd idraw`
|
||||
- `npm i`
|
||||
- `npm run init`
|
||||
- `pnpm i`
|
||||
- `npm run dev`
|
||||
|
||||
### Step 2: Development
|
||||
|
||||
|
|
|
|||
BIN
assets/preview/idraw-studio-dark.png
Normal file
BIN
assets/preview/idraw-studio-dark.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 408 KiB |
BIN
assets/preview/idraw-studio-light.png
Normal file
BIN
assets/preview/idraw-studio-light.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 410 KiB |
Binary file not shown.
|
Before Width: | Height: | Size: 722 KiB |
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"private": false,
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"workspaces": [
|
||||
"packages/*"
|
||||
],
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@idraw/board",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "dist/esm/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
@ -21,12 +21,12 @@
|
|||
"author": "chenshenhai",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@idraw/types": "^0.4.0-beta.1"
|
||||
"@idraw/types": "^0.4.0-beta.2"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@idraw/util": "^0.4.0-beta.1",
|
||||
"@idraw/renderer": "^0.4.0-beta.1"
|
||||
"@idraw/util": "^0.4.0-beta.2",
|
||||
"@idraw/renderer": "^0.4.0-beta.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@idraw/core",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "dist/esm/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
@ -21,13 +21,13 @@
|
|||
"author": "chenshenhai",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@idraw/types": "^0.4.0-beta.1"
|
||||
"@idraw/types": "^0.4.0-beta.2"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@idraw/board": "^0.4.0-beta.1",
|
||||
"@idraw/renderer": "^0.4.0-beta.1",
|
||||
"@idraw/util": "^0.4.0-beta.1"
|
||||
"@idraw/board": "^0.4.0-beta.2",
|
||||
"@idraw/renderer": "^0.4.0-beta.2",
|
||||
"@idraw/util": "^0.4.0-beta.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "idraw",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "dist/esm/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
@ -22,11 +22,11 @@
|
|||
"license": "MIT",
|
||||
"devDependencies": {},
|
||||
"dependencies": {
|
||||
"@idraw/board": "^0.4.0-beta.1",
|
||||
"@idraw/core": "^0.4.0-beta.1",
|
||||
"@idraw/renderer": "^0.4.0-beta.1",
|
||||
"@idraw/types": "^0.4.0-beta.1",
|
||||
"@idraw/util": "^0.4.0-beta.1"
|
||||
"@idraw/board": "^0.4.0-beta.2",
|
||||
"@idraw/core": "^0.4.0-beta.2",
|
||||
"@idraw/renderer": "^0.4.0-beta.2",
|
||||
"@idraw/types": "^0.4.0-beta.2",
|
||||
"@idraw/util": "^0.4.0-beta.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
|
|
|||
|
|
@ -1,17 +1,17 @@
|
|||
{
|
||||
"name": "@idraw/lab",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"dependencies": {
|
||||
"@ant-design/icons": "^5.1.3",
|
||||
"@idraw/core": "^0.4.0-beta.1",
|
||||
"@idraw/util": "^0.4.0-beta.1",
|
||||
"@idraw/core": "^0.4.0-beta.2",
|
||||
"@idraw/util": "^0.4.0-beta.2",
|
||||
"antd": "^5.5.0",
|
||||
"classnames": "^2.3.2",
|
||||
"react": "^18.2.0",
|
||||
"react-dom": "^18.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@idraw/types": "^0.4.0-beta.1",
|
||||
"@idraw/types": "^0.4.0-beta.2",
|
||||
"@types/react": "^18.2.0",
|
||||
"@types/react-dom": "^18.2.1"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@idraw/renderer",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "dist/esm/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
@ -21,11 +21,11 @@
|
|||
"author": "chenshenhai",
|
||||
"license": "MIT",
|
||||
"devDependencies": {
|
||||
"@idraw/types": "^0.4.0-beta.1"
|
||||
"@idraw/types": "^0.4.0-beta.2"
|
||||
},
|
||||
"dependencies": {},
|
||||
"peerDependencies": {
|
||||
"@idraw/util": "^0.4.0-beta.1"
|
||||
"@idraw/util": "^0.4.0-beta.2"
|
||||
},
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@idraw/types",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "src/index.ts",
|
||||
"types": "src/index.ts",
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "@idraw/util",
|
||||
"version": "0.4.0-beta.1",
|
||||
"version": "0.4.0-beta.2",
|
||||
"description": "",
|
||||
"main": "dist/esm/index.js",
|
||||
"module": "dist/esm/index.js",
|
||||
|
|
|
|||
|
|
@ -144,48 +144,48 @@ importers:
|
|||
packages/board:
|
||||
dependencies:
|
||||
'@idraw/renderer':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../renderer
|
||||
'@idraw/util':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../util
|
||||
devDependencies:
|
||||
'@idraw/types':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../types
|
||||
|
||||
packages/core:
|
||||
dependencies:
|
||||
'@idraw/board':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../board
|
||||
'@idraw/renderer':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../renderer
|
||||
'@idraw/util':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../util
|
||||
devDependencies:
|
||||
'@idraw/types':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../types
|
||||
|
||||
packages/idraw:
|
||||
dependencies:
|
||||
'@idraw/board':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../board
|
||||
'@idraw/core':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../core
|
||||
'@idraw/renderer':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../renderer
|
||||
'@idraw/types':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../types
|
||||
'@idraw/util':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../util
|
||||
|
||||
packages/lab:
|
||||
|
|
@ -194,10 +194,10 @@ importers:
|
|||
specifier: ^5.1.3
|
||||
version: 5.1.3(react-dom@18.2.0)(react@18.2.0)
|
||||
'@idraw/core':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../core
|
||||
'@idraw/util':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../util
|
||||
antd:
|
||||
specifier: ^5.5.0
|
||||
|
|
@ -213,7 +213,7 @@ importers:
|
|||
version: 18.2.0(react@18.2.0)
|
||||
devDependencies:
|
||||
'@idraw/types':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../types
|
||||
'@types/react':
|
||||
specifier: ^18.2.0
|
||||
|
|
@ -225,11 +225,11 @@ importers:
|
|||
packages/renderer:
|
||||
dependencies:
|
||||
'@idraw/util':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../util
|
||||
devDependencies:
|
||||
'@idraw/types':
|
||||
specifier: ^0.4.0-beta.1
|
||||
specifier: ^0.4.0-beta.2
|
||||
version: link:../types
|
||||
|
||||
packages/types: {}
|
||||
|
|
|
|||
Loading…
Reference in a new issue