Skip to content

Commit c9e819d

Browse files
authored
Merge pull request #976 from projectstorm/changeset
V7
2 parents 9b39591 + 8a2f5d1 commit c9e819d

File tree

76 files changed

+14011
-17119
lines changed

Some content is hidden

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

76 files changed

+14011
-17119
lines changed

.changeset/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"fixed": [],
6+
"linked": [],
7+
"access": "restricted",
8+
"baseBranch": "master",
9+
"updateInternalDependencies": "patch",
10+
"ignore": []
11+
}

.changeset/cyan-yaks-rescue.md

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
---
2+
'@projectstorm/react-diagrams-defaults': major
3+
'@projectstorm/react-diagrams-routing': major
4+
'@projectstorm/react-diagrams-core': major
5+
'@projectstorm/react-canvas-core': major
6+
'@projectstorm/react-diagrams': major
7+
'@projectstorm/react-diagrams-gallery': major
8+
'@projectstorm/react-diagrams-demo': major
9+
'@projectstorm/geometry': major
10+
---
11+
12+
- [internal] moves to `Pnpm` (instead of yarn -_-)
13+
- [internal]moves to `Changesets` for releases
14+
- [internal]removes `Lerna`
15+
- [internal] upgrades all dependencies
16+
- [internal] switches to workspace protocol syntax (Changesets will bake in the correct version when a publish occurs)
17+
- [internal] Changesets will open a release PR which can wrap up several changes in 1 go
18+
- [internal] Changesets will run the storybook deploy automatically upon merging the release PR
19+
- [internal] removes a lot of the stuff from the root package.json
20+
- [internal] cleans up the build and clean commands
21+
- [internal] remove E2E tests, they are a nightmare to maintain and the ROI is far too low
22+
- [fix] Wrong type name for react-canvas model listener
23+
- [fix] export more stuff form the main react-diagrams package
24+
- [fix] circular deps with Rectangle and Polygon (turns out this was a problem but only with UMD builds, sorry @everyone who I doubted, but this is also why I could never reproduce the issue)
25+
- [breaking change] compile both ES6 and UMD
26+
- [breaking change] moves dependencies back to each package. (After years of working on libraries, I've come to actually hate peer dependencies, and this is easily solved with build systems / package managers).
27+
- [breaking change] static methods on `Polygon` and `Rectangle` moved to standalone methods
28+
- [breaking change] static construction methods to rather deal with different Rectangle constructor overloads (I now consider this bad design)
29+
- [breaking change] introduce `Bounds` as a simpler point-array type to deal with boundary computation instead

.circleci/config.yml

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

.circleci/images/Dockerfile

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

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Checklist
22

33
- [ ] The code has been run through pretty `yarn run pretty`
4-
- [ ] The tests pass on CircleCI
4+
- [ ] The tests pass
55
- [ ] You have referenced the issue(s) or other PR(s) this fixes/relates-to
66
- [ ] The PR Template has been filled out (see below)
77
- [ ] Had a beer/coffee because you are awesome
@@ -13,7 +13,7 @@
1313

1414

1515
## How?
16-
16+
1717

1818
## Feel good image:
1919

.github/workflows/prettier.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Prettier check
2+
3+
# This action works with pull requests and pushes
4+
on:
5+
pull_request:
6+
7+
jobs:
8+
prettier:
9+
runs-on: ubuntu-latest
10+
11+
steps:
12+
- name: Checkout
13+
uses: actions/checkout@v2
14+
with:
15+
# Make sure the actual branch is checked out when running on pull requests
16+
ref: ${{ github.head_ref }}
17+
18+
19+
- uses: actions/checkout@v2 # Check out the repository first.
20+
- uses: actionsx/prettier@v2
21+
with:
22+
# prettier CLI arguments.
23+
args: --check --ignore-path .prettierignore --config .prettierrc '**/*.{ts,tsx,js,jsx}'

.github/workflows/release.yml

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
concurrency: ${{ github.workflow }}-${{ github.ref }}
9+
10+
jobs:
11+
release:
12+
name: Release
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout Repo
16+
uses: actions/checkout@v2
17+
18+
- name: Read .nvmrc
19+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
20+
id: nvm
21+
22+
- name: Use Node.js (.nvmrc)
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
26+
27+
- name: Install PNPM
28+
uses: pnpm/action-setup@v2
29+
with:
30+
version: latest
31+
32+
- name: Install Dependencies
33+
run: pnpm install
34+
35+
- name: Create Release Pull Request
36+
uses: changesets/action@v1
37+
id: changesets
38+
with:
39+
# This expects you to have a script called release which does a build for your packages and calls changeset publish
40+
publish: pnpm release
41+
env:
42+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
44+
45+
- name: publish storybook
46+
if: steps.changesets.outputs.published == 'true'
47+
run: pnpm release:storybook

.github/workflows/test.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: Build and Test
2+
on:
3+
pull_request:
4+
jobs:
5+
build:
6+
name: Build
7+
runs-on: ubuntu-latest
8+
steps:
9+
- name: Checkout Repo
10+
uses: actions/checkout@v2
11+
12+
- name: Read .nvmrc
13+
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)"
14+
id: nvm
15+
16+
- name: Use Node.js (.nvmrc)
17+
uses: actions/setup-node@v2
18+
with:
19+
node-version: "${{ steps.nvm.outputs.NVMRC }}"
20+
21+
- name: Install PNPM
22+
uses: pnpm/action-setup@v2
23+
with:
24+
version: latest
25+
26+
- name: Install Dependencies
27+
run: pnpm install
28+
29+
- name: Build
30+
run: pnpm build

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,5 @@ dist
55
*.zip
66
.env
77
node_modules
8-
yarn-error.log
98
tsconfig.tsbuildinfo
109
.vscode

0 commit comments

Comments
 (0)