Skip to content

Commit 73343f6

Browse files
Chore/undo monorepo setup (#2099)
* chore: undo the monorepo setup * v5.3.0-alpha.1 * chore: minor touch ups during manual testing steps * fix: remove unused CircleCI test, format it
1 parent 1d600ed commit 73343f6

File tree

235 files changed

+24040
-28395
lines changed

Some content is hidden

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

235 files changed

+24040
-28395
lines changed

.circleci/config.yml

+88-102
Original file line numberDiff line numberDiff line change
@@ -1,113 +1,99 @@
11
version: 2.1
22

33
executors:
4-
my-executor:
5-
docker:
6-
- image: cimg/node:14.18.1
7-
environment:
8-
CI: true
4+
my-executor:
5+
docker:
6+
- image: cimg/node:14.18.1
7+
environment:
8+
CI: true
99

1010
orbs:
11-
node: circleci/[email protected]
11+
node: circleci/[email protected]
1212

1313
jobs:
14-
# mobx-state-tree build
15-
build:
16-
executor: my-executor
17-
steps:
18-
- checkout
19-
20-
- node/install-packages:
21-
pkg-manager: yarn
22-
23-
- run: yarn build
24-
25-
- persist_to_workspace:
26-
root: .
27-
paths:
28-
- ./*
29-
30-
# mobx-state-tree tests
31-
test-mst-dev:
32-
executor: my-executor
33-
steps:
34-
- attach_workspace:
35-
at: .
36-
37-
- run: yarn test:mst:dev -i --coverage
38-
- store_test_results:
39-
path: ./test-results
40-
41-
- persist_to_workspace:
42-
root: .
43-
paths:
44-
- packages/mobx-state-tree/coverage/*
45-
46-
test-mst-prod:
47-
executor: my-executor
48-
steps:
49-
- attach_workspace:
50-
at: .
51-
52-
- run: yarn test:mst:prod -i
53-
- store_test_results:
54-
path: ./test-results
55-
56-
test-mst-others:
57-
executor: my-executor
58-
steps:
59-
- attach_workspace:
60-
at: .
61-
62-
- run: yarn test:mst:others
63-
- store_test_results:
64-
path: ./test-results
65-
66-
test-size:
67-
executor: my-executor
68-
steps:
69-
- attach_workspace:
70-
at: .
71-
72-
- run: yarn size
73-
74-
# upload coverage
75-
upload-codecov:
76-
executor: my-executor
77-
steps:
78-
- attach_workspace:
79-
at: .
80-
# only run codecov if the token is present (it is not present for fork PRs for security reasons)
81-
- run:
82-
name: upload codecov
83-
command: |
84-
if [[ -v CODECOV_TOKEN ]]
85-
then
86-
./node_modules/.bin/codecov
87-
else
88-
echo "Warning - Codecov info could NOT be uploaded since the CODECOV_TOKEN was not available"
89-
fi
14+
# mobx-state-tree build
15+
build:
16+
executor: my-executor
17+
steps:
18+
- checkout
19+
20+
- node/install-packages:
21+
pkg-manager: yarn
22+
23+
- run: yarn build
24+
25+
- persist_to_workspace:
26+
root: .
27+
paths:
28+
- ./*
29+
30+
# mobx-state-tree tests
31+
test-mst-dev:
32+
executor: my-executor
33+
steps:
34+
- attach_workspace:
35+
at: .
36+
37+
- run: yarn test:dev -i --coverage
38+
- store_test_results:
39+
path: ./test-results
40+
41+
- persist_to_workspace:
42+
root: .
43+
paths:
44+
- ./coverage/*
45+
46+
test-mst-prod:
47+
executor: my-executor
48+
steps:
49+
- attach_workspace:
50+
at: .
51+
52+
- run: yarn test:prod -i
53+
- store_test_results:
54+
path: ./test-results
55+
56+
test-size:
57+
executor: my-executor
58+
steps:
59+
- attach_workspace:
60+
at: .
61+
62+
- run: yarn size
63+
64+
# upload coverage
65+
upload-codecov:
66+
executor: my-executor
67+
steps:
68+
- attach_workspace:
69+
at: .
70+
# only run codecov if the token is present (it is not present for fork PRs for security reasons)
71+
- run:
72+
name: upload codecov
73+
command: |
74+
if [[ -v CODECOV_TOKEN ]]
75+
then
76+
./node_modules/.bin/codecov
77+
else
78+
echo "Warning - Codecov info could NOT be uploaded since the CODECOV_TOKEN was not available"
79+
fi
9080
9181
workflows:
92-
version: 2
93-
build-and-test:
94-
jobs:
82+
version: 2
83+
build-and-test:
84+
jobs:
85+
- build
86+
87+
- test-mst-dev:
88+
requires:
89+
- build
90+
- test-mst-prod:
91+
requires:
92+
- build
93+
- test-size:
94+
requires:
9595
- build
9696

97-
- test-mst-dev:
98-
requires:
99-
- build
100-
- test-mst-prod:
101-
requires:
102-
- build
103-
- test-mst-others:
104-
requires:
105-
- build
106-
107-
- test-size:
108-
requires:
109-
- build
110-
111-
- upload-codecov:
112-
requires:
113-
- test-mst-dev
97+
- upload-codecov:
98+
requires:
99+
- test-mst-dev

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ package-lock.json
1212
/test-results/**/*.xml
1313
/website/build
1414
.DS_Store
15+
junit.xml

.prettierrc

-7
This file was deleted.

.size-limit.json

-8
This file was deleted.

.watchmanconfig

-1
This file was deleted.

0 commit comments

Comments
 (0)