Skip to content

Commit 514d8eb

Browse files
committed
chore: rename first and second to 1st and 2nd
1 parent b2e62c6 commit 514d8eb

File tree

2,141 files changed

+820
-820
lines changed

Some content is hidden

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

2,141 files changed

+820
-820
lines changed

.circleci/config.yml

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ commands:
5656
- v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
5757
- restore_cache:
5858
keys:
59-
- v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "first-gen/package.json" }}-
59+
- v4b-<< pipeline.parameters.wireit_cache_name >>-{{ arch }}-{{ checksum "1st-gen/package.json" }}-
6060
- run:
6161
name: Installing Dependencies
6262
command: |
@@ -75,8 +75,8 @@ commands:
7575
key: v4c-dependencies-{{ arch }}-{{ checksum "yarn.lock" }}
7676
- save_cache:
7777
paths:
78-
- first-gen/.wireit
79-
key: v4b-wireit-{{ arch }}-{{ checksum "first-gen/package.json" }}-{{ epoch }}
78+
- 1st-gen/.wireit
79+
key: v4b-wireit-{{ arch }}-{{ checksum "1st-gen/package.json" }}-{{ epoch }}
8080
- attach_workspace:
8181
at: /
8282
run-regressions:
@@ -100,8 +100,8 @@ commands:
100100
- run:
101101
name: Count baseline images
102102
command: |
103-
mkdir -p first-gen/test/visual/screenshots-baseline
104-
baseline_count=$(find first-gen/test/visual/screenshots-baseline -type f | wc -l)
103+
mkdir -p 1st-gen/test/visual/screenshots-baseline
104+
baseline_count=$(find 1st-gen/test/visual/screenshots-baseline -type f | wc -l)
105105
echo "Found $baseline_count baseline images"
106106
echo $baseline_count > count_start.txt
107107
# if [ $baseline_count -eq 0 ]; then
@@ -115,11 +115,11 @@ commands:
115115
yarn workspace @spectrum-web-components/1st-gen test:ci --config web-test-runner.config.vrt.js --group vrt-<< parameters.regression_system >>-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.regression_dir >>
116116
# store results and artifacts before rearranging things for the new cache.
117117
- store_test_results:
118-
path: /root/project/first-gen/results/
118+
path: /root/project/1st-gen/results/
119119
- run:
120120
when: on_success
121121
name: Count current images
122-
command: find first-gen/test/visual/screenshots-actual/updates -type f | wc -l > count_end.txt
122+
command: find 1st-gen/test/visual/screenshots-actual/updates -type f | wc -l > count_end.txt
123123
# prevent removing regression tests without requiring a new golden cache
124124
- run:
125125
when: on_success
@@ -134,7 +134,7 @@ commands:
134134
name: Create review site
135135
command: |
136136
branch=$(git symbolic-ref --short HEAD)
137-
cd first-gen && node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="<< parameters.regression_system >> << parameters.regression_color >> << parameters.regression_scale >> << parameters.regression_dir >>" && yarn rollup -c test/visual/rollup.config.js
137+
cd 1st-gen && node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="<< parameters.regression_system >> << parameters.regression_color >> << parameters.regression_scale >> << parameters.regression_dir >>" && yarn rollup -c test/visual/rollup.config.js
138138
- install-azcopy
139139
- run:
140140
when: always
@@ -181,11 +181,11 @@ commands:
181181
combination="<< parameters.regression_system >>-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.regression_dir >>"
182182
183183
# Prepare files for deployment
184-
cp first-gen/projects/documentation/content/favicon.ico first-gen/test/visual/ || echo "Failed to copy favicon"
184+
cp 1st-gen/projects/documentation/content/favicon.ico 1st-gen/test/visual/ || echo "Failed to copy favicon"
185185
186186
# Upload VRT results to Azure Blob Storage
187187
echo "Uploading VRT results to ${PR_HASH}/${combination}/"
188-
azcopy copy "first-gen/test/visual/*" \
188+
azcopy copy "1st-gen/test/visual/*" \
189189
"https://swcpreviews.blob.core.windows.net/\$web/${PR_HASH}/${combination}/" \
190190
--recursive \
191191
--from-to LocalBlob
@@ -199,18 +199,18 @@ commands:
199199
- run:
200200
when: always
201201
command: |
202-
rm -rf first-gen/test/visual/screenshots-baseline
203-
cp -R first-gen/test/visual/screenshots-actual/updates first-gen/test/visual/screenshots-baseline
202+
rm -rf 1st-gen/test/visual/screenshots-baseline
203+
cp -R 1st-gen/test/visual/screenshots-actual/updates 1st-gen/test/visual/screenshots-baseline
204204
- save_cache:
205205
when: always
206206
name: Build Golden Images Revision Cache
207207
paths:
208-
- first-gen/test/visual/screenshots-baseline
208+
- 1st-gen/test/visual/screenshots-baseline
209209
key: v2-golden-images-{{ .Revision }}-<< parameters.regression_system >>-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.regression_dir >>-{{ epoch }}
210210
- save_cache:
211211
name: Build Golden Images Branch Cache
212212
paths:
213-
- first-gen/test/visual/screenshots-baseline
213+
- 1st-gen/test/visual/screenshots-baseline
214214
key: v2-golden-images-{{ .Branch }}-<< parameters.regression_system >>-<< parameters.regression_color >>-<< parameters.regression_scale >>-<< parameters.regression_dir >>-{{ epoch }}
215215

216216
jobs:
@@ -223,12 +223,12 @@ jobs:
223223
- run:
224224
name: Run chromium tests
225225
command: |
226-
TEST=$(circleci tests glob "first-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/first-gen\///')
226+
TEST=$(circleci tests glob "1st-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/1st-gen\///')
227227
yarn workspace @spectrum-web-components/1st-gen test:start --files $TEST --config ./web-test-runner.config.ci-chromium.js --group unit-ci
228228
- store_test_results:
229-
path: /root/project/first-gen/results/
229+
path: /root/project/1st-gen/results/
230230
- store_artifacts:
231-
path: first-gen/coverage
231+
path: 1st-gen/coverage
232232

233233
test-chromium-coverage:
234234
executor: node
@@ -239,7 +239,7 @@ jobs:
239239
name: Run chromium tests with coverage
240240
command: yarn workspace @spectrum-web-components/1st-gen test:focus unit --config web-test-runner.config.ci-chromium.js --coverage
241241
- store_test_results:
242-
path: /root/project/first-gen/results/
242+
path: /root/project/1st-gen/results/
243243

244244
test-chromium-memory:
245245
executor: node
@@ -250,7 +250,7 @@ jobs:
250250
- run:
251251
name: Run memory tests
252252
command: |
253-
TEST=$(circleci tests glob "first-gen/{packages,tools}/*/test/*-memory.test.js" | grep -v "packages/color-.*/test/.*-memory\.test\.js" | grep -v "tools/grid/test/.*-memory\.test\.js" | circleci tests split --split-by=timings | sed 's/first-gen\///')
253+
TEST=$(circleci tests glob "1st-gen/{packages,tools}/*/test/*-memory.test.js" | grep -v "packages/color-.*/test/.*-memory\.test\.js" | grep -v "tools/grid/test/.*-memory\.test\.js" | circleci tests split --split-by=timings | sed 's/1st-gen\///')
254254
echo $TEST
255255
yarn workspace @spectrum-web-components/1st-gen test:start --files $TEST --config web-test-runner.config.ci-chromium-memory.js --group unit-ci
256256
- store_test_results:
@@ -265,7 +265,7 @@ jobs:
265265
- run:
266266
name: Run firefox tests
267267
command: |
268-
TEST=$(circleci tests glob "first-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/first-gen\///')
268+
TEST=$(circleci tests glob "1st-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/1st-gen\///')
269269
yarn workspace @spectrum-web-components/1st-gen test:start --files $TEST --config web-test-runner.config.ci-firefox.js --group unit-ci
270270
- store_test_results:
271271
path: /root/project/results/
@@ -279,7 +279,7 @@ jobs:
279279
- run:
280280
name: Run webkit tests
281281
command: |
282-
TEST=$(circleci tests glob "first-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/first-gen\///')
282+
TEST=$(circleci tests glob "1st-gen/{packages,tools}/*/test/*.test.js" | grep -v ".*-memory\.test\.js$" | circleci tests split --split-by=timings | sed 's/1st-gen\///')
283283
yarn workspace @spectrum-web-components/1st-gen test:start --files $TEST --config web-test-runner.config.ci-webkit.js --group unit-ci
284284
- store_test_results:
285285
path: /root/project/results/
@@ -294,7 +294,7 @@ jobs:
294294
command: yarn workspace @spectrum-web-components/1st-gen docs:analyze
295295
- run:
296296
name: Move CEM to Storybook directory
297-
command: cp first-gen/projects/documentation/custom-elements.json first-gen/storybook/
297+
command: cp 1st-gen/projects/documentation/custom-elements.json 1st-gen/storybook/
298298
- run:
299299
name: Build documentation with path prefix
300300
command: echo "SWC_DIR=beta/docs" >> $BASH_ENV
@@ -310,14 +310,14 @@ jobs:
310310
command: |
311311
# Upload documentation to beta path
312312
echo "Uploading documentation to beta/docs/"
313-
azcopy copy "first-gen/projects/documentation/dist/*" \
313+
azcopy copy "1st-gen/projects/documentation/dist/*" \
314314
"https://swcpreviews.blob.core.windows.net/\$web/beta/docs/" \
315315
--recursive \
316316
--from-to LocalBlob
317317
318318
# Upload Storybook to beta path
319319
echo "Uploading Storybook to beta/docs/storybook/"
320-
azcopy copy "first-gen/storybook-static/*" \
320+
azcopy copy "1st-gen/storybook-static/*" \
321321
"https://swcpreviews.blob.core.windows.net/\$web/beta/docs/storybook/" \
322322
--recursive \
323323
--from-to LocalBlob
@@ -341,8 +341,8 @@ jobs:
341341
- run:
342342
name: Count baseline images
343343
command: |
344-
mkdir -p first-gen/test/visual/screenshots-baseline
345-
baseline_count=$(find first-gen/test/visual/screenshots-baseline -type f | wc -l)
344+
mkdir -p 1st-gen/test/visual/screenshots-baseline
345+
baseline_count=$(find 1st-gen/test/visual/screenshots-baseline -type f | wc -l)
346346
echo "Found $baseline_count baseline images"
347347
echo $baseline_count > count_start.txt
348348
# if [ $baseline_count -eq 0 ]; then
@@ -356,11 +356,11 @@ jobs:
356356
yarn workspace @spectrum-web-components/1st-gen test:ci --config web-test-runner.config.vrt.js --group vrt-hcm
357357
# store results and artifacts before rearranging things for the new cache.
358358
- store_test_results:
359-
path: /root/project/first-gen/results/
359+
path: /root/project/1st-gen/results/
360360
- run:
361361
when: on_success
362362
name: Count current images
363-
command: find first-gen/test/visual/screenshots-actual/updates -type f | wc -l > count_end.txt
363+
command: find 1st-gen/test/visual/screenshots-actual/updates -type f | wc -l > count_end.txt
364364
# prevent removing regression tests without requiring a new golden cache
365365
- run:
366366
when: on_success
@@ -375,7 +375,7 @@ jobs:
375375
name: Create review site
376376
command: |
377377
branch=$(git symbolic-ref --short HEAD)
378-
cd first-gen && node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="hcm" && yarn rollup -c test/visual/rollup.config.js
378+
cd 1st-gen && node test/visual/review.js --branch=$branch --commit=<< pipeline.git.revision >> --system="hcm" && yarn rollup -c test/visual/rollup.config.js
379379
- install-azcopy
380380
- run:
381381
when: always
@@ -419,11 +419,11 @@ jobs:
419419
fi
420420
421421
# Prepare files for deployment
422-
cp first-gen/projects/documentation/content/favicon.ico first-gen/test/visual/
422+
cp 1st-gen/projects/documentation/content/favicon.ico 1st-gen/test/visual/
423423
424424
# Upload HCM VRT results to Azure Blob Storage
425425
echo "Uploading HCM VRT to ${PR_HASH}/hcm/"
426-
azcopy copy "first-gen/test/visual/*" \
426+
azcopy copy "1st-gen/test/visual/*" \
427427
"https://swcpreviews.blob.core.windows.net/\$web/${PR_HASH}/hcm/" \
428428
--recursive \
429429
--from-to LocalBlob
@@ -437,18 +437,18 @@ jobs:
437437
- run:
438438
when: always
439439
command: |
440-
rm -rf first-gen/test/visual/screenshots-baseline
441-
cp -R first-gen/test/visual/screenshots-actual/updates first-gen/test/visual/screenshots-baseline
440+
rm -rf 1st-gen/test/visual/screenshots-baseline
441+
cp -R 1st-gen/test/visual/screenshots-actual/updates 1st-gen/test/visual/screenshots-baseline
442442
- save_cache:
443443
when: always
444444
name: Build Golden Images Revision Cache
445445
paths:
446-
- first-gen/test/visual/screenshots-baseline
446+
- 1st-gen/test/visual/screenshots-baseline
447447
key: v2-golden-images-{{ .Revision }}-hcm-{{ epoch }}
448448
- save_cache:
449449
name: Build Golden Images Branch Cache
450450
paths:
451-
- first-gen/test/visual/screenshots-baseline
451+
- 1st-gen/test/visual/screenshots-baseline
452452
key: v2-golden-images-{{ .Branch }}-hcm-{{ epoch }}
453453

454454
visual:

.eslintrc.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@
8181
}
8282
},
8383
{
84-
"extends": ["./first-gen/.eslintrc.json"],
85-
"files": ["first-gen/**/*"],
84+
"extends": ["./1st-gen/.eslintrc.json"],
85+
"files": ["1st-gen/**/*"],
8686
"rules": {
8787
"notice/notice": [
8888
"error",
@@ -94,8 +94,8 @@
9494
}
9595
},
9696
{
97-
"extends": ["./second-gen/.eslintrc.json"],
98-
"files": ["second-gen/**/*"],
97+
"extends": ["./2nd-gen/.eslintrc.json"],
98+
"files": ["2nd-gen/**/*"],
9999
"rules": {
100100
"notice/notice": [
101101
"error",

0 commit comments

Comments
 (0)