Skip to content

Commit f6c810d

Browse files
authored
Use yarn pnp [POL-215] (#2906)
1 parent a3f6451 commit f6c810d

File tree

1,538 files changed

+33190
-7444
lines changed

Some content is hidden

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

1,538 files changed

+33190
-7444
lines changed

.circleci/config.yml

+12-18
Original file line numberDiff line numberDiff line change
@@ -133,16 +133,10 @@ commands:
133133
at: .
134134
- restore_cache:
135135
keys:
136-
- test-deps9-{{ checksum "integration-tests/package.json" }}-{{ checksum "integration-tests/yarn.lock" }}
137-
- test-deps9-
136+
- deps-{{ .Branch }}-{{ checksum ".pnp.cjs" }}
138137
- run:
139138
working_directory: integration-tests
140-
command: yarn install --immutable
141-
- save_cache:
142-
key: test-deps9-{{ checksum "integration-tests/package.json" }}-{{ checksum "integration-tests/yarn.lock" }}
143-
paths:
144-
- integration-tests/node_modules
145-
- integration-tests/.yarn/cache
139+
command: yarn install --immutable-cache
146140
- when:
147141
condition: << parameters.local >>
148142
steps:
@@ -161,7 +155,7 @@ commands:
161155
command: |
162156
mkdir -p ${SCREENSHOT_DIR}
163157
TESTS_TO_RUN=$(circleci tests glob "jest/**.integration-test.js" | circleci tests split --split-by=timings)
164-
yarn test $TESTS_TO_RUN --ci --maxWorkers=2 --reporters=default --reporters=jest-junit
158+
yarn test $TESTS_TO_RUN --maxWorkers=2 --reporters=default --reporters=jest-junit
165159
- store_test_results:
166160
path: /tmp/test-results
167161
- store_artifacts:
@@ -186,17 +180,17 @@ jobs:
186180
- checkout
187181
- restore_cache:
188182
keys:
189-
- deps8-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
190-
- deps8-
191-
- run: yarn install --immutable
192-
- save_cache:
193-
key: deps8-{{ checksum "package.json" }}-{{ checksum "yarn.lock" }}
194-
paths:
195-
- node_modules
196-
- .yarn/cache
183+
- deps-{{ .Branch }}-{{ checksum ".pnp.cjs" }}
184+
- deps-{{ .Branch }}-
185+
- run: yarn install --immutable-cache
197186
- run: yarn eslint --max-warnings=0 .
198-
- run: yarn test
187+
- run: yarn test --maxWorkers=2
199188
- run: DISABLE_ESLINT_PLUGIN=true yarn build # already linted above
189+
- save_cache:
190+
key: deps-{{ .Branch }}-{{ checksum ".pnp.cjs" }}
191+
paths:
192+
- .yarn/unplugged
193+
- node_modules/.cache
200194
- run: tar -czf build.tgz .gcloudignore app.yaml build config
201195
- store_artifacts:
202196
path: build.tgz

.eslintignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
.yarn
22
node_modules
33
*.min.js
4+
.pnp.*js
45
build

.eslintrc.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* eslint-disable quote-props */
22
module.exports = {
3-
'plugins': ['lodash-fp', 'react', 'react-hooks', 'simple-import-sort', 'import'],
3+
'plugins': ['lodash-fp', 'simple-import-sort'],
44
'extends': 'react-app',
55
'rules': {
66
// Best Practices

.gitattributes

+2-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
.yarn/releases/* binary
1+
/.yarn/releases/** binary
2+
/.yarn/plugins/** binary

.gitignore

+7-6
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,10 @@ saturn-ui.iml
3434
/integration-tests/results
3535
/integration-tests/screenshots
3636

37-
**/.yarn/*
38-
!**/.yarn/patches
39-
!**/.yarn/releases
40-
!**/.yarn/plugins
41-
!**/.yarn/sdks
42-
!**/.yarn/versions
37+
.yarn/*
38+
!.yarn/cache
39+
!.yarn/patches
40+
!.yarn/plugins
41+
!.yarn/releases
42+
!.yarn/sdks
43+
!.yarn/versions

.pnp.cjs

+30,146
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.pnp.loader.mjs

+266
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 commit comments

Comments
 (0)