Skip to content

Commit ebd5340

Browse files
authored
chore: various improvements to repo setup (facebook#6471)
* chore: various improvements to repo setup * fix again * fix
1 parent 83fb3a8 commit ebd5340

File tree

12 files changed

+81
-55
lines changed

12 files changed

+81
-55
lines changed

.github/workflows/lighthouse-report.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
with:
2424
urls: |
2525
https://deploy-preview-$PR_NUMBER--docusaurus-2.netlify.app/
26-
configPath: ./.github/workflows/lighthousesrc.json
26+
configPath: ./.github/workflows/lighthouserc.json
2727
uploadArtifacts: true
2828
temporaryPublicStorage: true
2929
env:
File renamed without changes.

.github/workflows/tests.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ jobs:
2727
- name: Test
2828
run: yarn test
2929
- name: TypeCheck website
30-
run: yarn workspace website tsc
30+
run: yarn workspace website typecheck

.stylelintrc.js

+1
Original file line numberDiff line numberDiff line change
@@ -31,5 +31,6 @@ module.exports = {
3131
'selector-id-pattern': null,
3232
'declaration-empty-line-before': null,
3333
'comment-empty-line-before': null,
34+
'value-keyword-case': ['lower', {camelCaseSvgKeywords: true}],
3435
},
3536
};

package.json

+4-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
{
22
"name": "root",
3+
"version": "0.0.0",
4+
"license": "MIT",
35
"private": true,
46
"workspaces": [
57
"packages/*",
@@ -103,7 +105,7 @@
103105
"react-test-renderer": "^17.0.2",
104106
"rimraf": "^3.0.2",
105107
"sharp": "^0.29.1",
106-
"stylelint": "^14.2.0",
108+
"stylelint": "^14.3.0",
107109
"stylelint-config-prettier": "^9.0.3",
108110
"stylelint-config-standard": "^24.0.0",
109111
"tslib": "^2.3.1",
@@ -118,7 +120,7 @@
118120
],
119121
"*": [
120122
"prettier --ignore-unknown --write",
121-
"cspell --no-progress"
123+
"cspell --no-must-find-files --no-progress"
122124
]
123125
},
124126
"engines": {

packages/create-docusaurus/package.json

+1-3
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
"build": "tsc",
1616
"watch": "tsc --watch"
1717
},
18-
"bin": {
19-
"create-docusaurus": "bin/index.js"
20-
},
18+
"bin": "bin/index.js",
2119
"publishConfig": {
2220
"access": "public"
2321
},

packages/docusaurus-plugin-ideal-image/package.json

+7-1
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@
2323
"dependencies": {
2424
"@docusaurus/core": "2.0.0-beta.14",
2525
"@docusaurus/lqip-loader": "2.0.0-beta.14",
26-
"@docusaurus/utils-validation": "2.0.0-beta.14",
2726
"@docusaurus/responsive-loader": "1.5.0",
2827
"@docusaurus/theme-translations": "2.0.0-beta.14",
28+
"@docusaurus/utils-validation": "2.0.0-beta.14",
2929
"@endiliey/react-ideal-image": "^0.0.11",
3030
"react-waypoint": "^10.1.0",
3131
"sharp": "^0.29.1",
@@ -38,9 +38,15 @@
3838
"fs-extra": "^10.0.0"
3939
},
4040
"peerDependencies": {
41+
"jimp": "*",
4142
"react": "^16.8.4 || ^17.0.0",
4243
"react-dom": "^16.8.4 || ^17.0.0"
4344
},
45+
"peerDependenciesMeta": {
46+
"jimp": {
47+
"optional": true
48+
}
49+
},
4450
"engines": {
4551
"node": ">=14"
4652
}

packages/docusaurus-theme-classic/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747
"@types/parse-numeric-range": "^0.0.1",
4848
"@types/prismjs": "^1.16.2",
4949
"@types/rtlcss": "^3.1.1",
50+
"cross-env": "^7.0.3",
5051
"fs-extra": "^10.0.0",
5152
"react-test-renderer": "^17.0.2",
5253
"utility-types": "^3.10.0"

packages/docusaurus-utils/package.json

+1
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@
4848
"tslib": "^2.3.1"
4949
},
5050
"peerDependencies": {
51+
"@babel/core": "^7.0.0",
5152
"react": "*",
5253
"react-dom": "*",
5354
"webpack": "5.x"

packages/stylelint-copyright/package.json

+1-4
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,6 @@
1111
"directory": "packages/stylelint-copyright"
1212
},
1313
"dependencies": {
14-
"stylelint": "^13.2.1"
15-
},
16-
"devDependencies": {
17-
"@types/stylelint": "^13.13.3"
14+
"stylelint": "^14.3.0"
1815
}
1916
}

project-words.txt

+12
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ blockquotes
2323
browserslist
2424
browserstack
2525
buble
26+
builtins
2627
caabernathy
2728
cacheable
2829
callouts
@@ -50,6 +51,7 @@ datas
5051
dedup
5152
deduplicated
5253
déja
54+
deps
5355
devto
5456
dmitry
5557
docgen
@@ -100,6 +102,7 @@ infima
100102
inlines
101103
intelli
102104
interpolatable
105+
jakepartusch
103106
jamstack
104107
javadoc
105108
jmarcey
@@ -115,14 +118,17 @@ koyeb
115118
kubernetes
116119
lamana
117120
lifecycles
121+
lighthouserc
118122
linkify
119123
localizable
124+
longpaths
120125
lorber
121126
lowercased
122127
lqip
123128
lunrjs
124129
mapbox
125130
marcey
131+
marocchino
126132
massoud
127133
mathjax
128134
mdast
@@ -131,6 +137,7 @@ mdxhast
131137
metadatum
132138
metastring
133139
middlewares
140+
minifier
134141
mkcert
135142
mkdir
136143
mkdirs
@@ -153,6 +160,7 @@ nojekyll
153160
noninteractive
154161
noreply
155162
npmjs
163+
npmrc
156164
nprogress
157165
ntfs
158166
nuxt
@@ -175,7 +183,9 @@ photoshop
175183
picocolors
176184
pluggable
177185
plushie
186+
pnpm
178187
posthog
188+
preactjs
179189
precache
180190
precached
181191
precaching
@@ -251,7 +261,9 @@ toplevel
251261
transifex
252262
transpiles
253263
treeify
264+
treosh
254265
triaging
266+
typecheck
255267
typesense
256268
unflat
257269
unist

yarn.lock

+51-43
Original file line numberDiff line numberDiff line change
@@ -4271,14 +4271,6 @@
42714271
resolved "https://registry.yarnpkg.com/@types/stringify-object/-/stringify-object-3.3.1.tgz#9ee394931e63468de0412a8e19c9f021a7d1d24d"
42724272
integrity sha512-bpCBW0O+QrMLNFBY/+rkZtGzcYRmc2aTD8qYHOMNUmednqETfEZtFcGEA11l9xqbIeiT1PgXG0eq3zqayVzZSQ==
42734273

4274-
"@types/stylelint@^13.13.3":
4275-
version "13.13.3"
4276-
resolved "https://registry.yarnpkg.com/@types/stylelint/-/stylelint-13.13.3.tgz#29ba9b7179e5632b12853252da191443607d32fc"
4277-
integrity sha512-xvYwobi9L69FXbJTimKYRNHyMwtmcJxMd1woI3U822rkW/f7wcZ6fsV1DqYPT+sNaO0qUtngiBhTQfMeItUvUA==
4278-
dependencies:
4279-
globby "11.x.x"
4280-
postcss "7.x.x"
4281-
42824274
"@types/supports-color@^8.1.1":
42834275
version "8.1.1"
42844276
resolved "https://registry.yarnpkg.com/@types/supports-color/-/supports-color-8.1.1.tgz#1b44b1b096479273adf7f93c75fc4ecc40a61ee4"
@@ -8789,10 +8781,10 @@ fast-glob@^2.2.6:
87898781
merge2 "^1.2.3"
87908782
micromatch "^3.1.10"
87918783

8792-
fast-glob@^3.0.3, fast-glob@^3.2.5, fast-glob@^3.2.7, fast-glob@^3.2.9:
8793-
version "3.2.10"
8794-
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.10.tgz#2734f83baa7f43b7fd41e13bc34438f4ffe284ee"
8795-
integrity sha512-s9nFhFnvR63wls6/kM88kQqDhMu0AfdjqouE2l5GVQPbqLgyFjjU5ry/r2yKsJxpb9Py1EYNqieFrmMaX4v++A==
8784+
fast-glob@^3.0.3, fast-glob@^3.2.11, fast-glob@^3.2.5, fast-glob@^3.2.7, fast-glob@^3.2.9:
8785+
version "3.2.11"
8786+
resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.2.11.tgz#a1172ad95ceb8a16e20caa5c5e56480e5129c1d9"
8787+
integrity sha512-xrO3+1bxSo3ZVHAnqzyuewYT6aMFHRAd4Kcs92MAonjwQZLsK9d0SF1IyQ3k5PoirxTW0Oe/RqFgMQ6TcNE5Ew==
87968788
dependencies:
87978789
"@nodelib/fs.stat" "^2.0.2"
87988790
"@nodelib/fs.walk" "^1.2.3"
@@ -9674,18 +9666,6 @@ globals@^13.6.0, globals@^13.9.0:
96749666
dependencies:
96759667
type-fest "^0.20.2"
96769668

9677-
[email protected], globby@^11.0.0, globby@^11.0.1, globby@^11.0.2, globby@^11.0.3, globby@^11.0.4:
9678-
version "11.1.0"
9679-
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
9680-
integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
9681-
dependencies:
9682-
array-union "^2.1.0"
9683-
dir-glob "^3.0.1"
9684-
fast-glob "^3.2.9"
9685-
ignore "^5.2.0"
9686-
merge2 "^1.4.1"
9687-
slash "^3.0.0"
9688-
96899669
globby@^10.0.1:
96909670
version "10.0.2"
96919671
resolved "https://registry.yarnpkg.com/globby/-/globby-10.0.2.tgz#277593e745acaa4646c3ab411289ec47a0392543"
@@ -9700,6 +9680,18 @@ globby@^10.0.1:
97009680
merge2 "^1.2.3"
97019681
slash "^3.0.0"
97029682

9683+
globby@^11.0.0, globby@^11.0.1, globby@^11.0.2, globby@^11.0.3, globby@^11.0.4, globby@^11.1.0:
9684+
version "11.1.0"
9685+
resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b"
9686+
integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==
9687+
dependencies:
9688+
array-union "^2.1.0"
9689+
dir-glob "^3.0.1"
9690+
fast-glob "^3.2.9"
9691+
ignore "^5.2.0"
9692+
merge2 "^1.4.1"
9693+
slash "^3.0.0"
9694+
97039695
globby@^12.0.2:
97049696
version "12.0.2"
97059697
resolved "https://registry.yarnpkg.com/globby/-/globby-12.0.2.tgz#53788b2adf235602ed4cabfea5c70a1139e1ab11"
@@ -15078,10 +15070,10 @@ postcss-scss@^2.1.1:
1507815070
dependencies:
1507915071
postcss "^7.0.6"
1508015072

15081-
postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.7:
15082-
version "6.0.8"
15083-
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.8.tgz#f023ed7a9ea736cd7ef70342996e8e78645a7914"
15084-
integrity sha512-D5PG53d209Z1Uhcc0qAZ5U3t5HagH3cxu+WLZ22jt3gLUpXM4eXXfiO14jiDWST3NNooX/E8wISfOhZ9eIjGTQ==
15073+
postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4, postcss-selector-parser@^6.0.5, postcss-selector-parser@^6.0.9:
15074+
version "6.0.9"
15075+
resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.9.tgz#ee71c3b9ff63d9cd130838876c13a2ec1a992b2f"
15076+
integrity sha512-UO3SgnZOVTwu4kyLR22UQ1xZh086RyNZppb7lLAKBFK8a32ttG5i87Y/P3+2bRSjZNyJ1B7hfFNo273tKe9YxQ==
1508515077
dependencies:
1508615078
cssesc "^3.0.0"
1508715079
util-deprecate "^1.0.2"
@@ -15133,15 +15125,15 @@ postcss-zindex@^5.0.1:
1513315125
resolved "https://registry.yarnpkg.com/postcss-zindex/-/postcss-zindex-5.0.1.tgz#c585724beb69d356af8c7e68847b28d6298ece03"
1513415126
integrity sha512-nwgtJJys+XmmSGoYCcgkf/VczP8Mp/0OfSv3v0+fw0uABY4yxw+eFs0Xp9nAZHIKnS5j+e9ywQ+RD+ONyvl5pA==
1513515127

15136-
postcss@7.x.x, postcss@^7.0.14, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.39, postcss@^7.0.6:
15128+
postcss@^7.0.14, postcss@^7.0.18, postcss@^7.0.2, postcss@^7.0.21, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.35, postcss@^7.0.39, postcss@^7.0.6:
1513715129
version "7.0.39"
1513815130
resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309"
1513915131
integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA==
1514015132
dependencies:
1514115133
picocolors "^0.2.1"
1514215134
source-map "^0.6.1"
1514315135

15144-
postcss@^8.1.7, postcss@^8.2.15, postcss@^8.2.x, postcss@^8.3.11, postcss@^8.3.5, postcss@^8.3.7:
15136+
postcss@^8.1.7, postcss@^8.2.15, postcss@^8.2.x, postcss@^8.3.11, postcss@^8.3.5, postcss@^8.3.7, postcss@^8.4.5:
1514515137
version "8.4.5"
1514615138
resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.5.tgz#bae665764dfd4c6fcc24dc0fdf7e7aa00cc77f95"
1514715139
integrity sha512-jBDboWM8qpaqwkMwItqTQTiFikhs/67OYVvblFFTM7MrZjt6yMKd6r2kgXizEbTTljacm4NldIlZnhbjr84QYg==
@@ -17791,22 +17783,22 @@ stylelint@^13.2.1:
1779117783
v8-compile-cache "^2.3.0"
1779217784
write-file-atomic "^3.0.3"
1779317785

17794-
stylelint@^14.2.0:
17795-
version "14.2.0"
17796-
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.2.0.tgz#da4f0f4580e66911c38c376ed82447b78e32b0fb"
17797-
integrity sha512-i0DrmDXFNpDsWiwx6SPRs4/pyw4kvZgqpDGvsTslQMY7hpUl6r33aQvNSn6cnTg2wtZ9rreFElI7XAKpOWi1vQ==
17786+
stylelint@^14.3.0:
17787+
version "14.3.0"
17788+
resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.3.0.tgz#26b62730da7b3dc320021fc469d80048d7b77ebe"
17789+
integrity sha512-PZXSwtJe4f4qBPWBwAbHL0M0Qjrv8iHN+cLpUNsffaVMS3YzpDDRI73+2lsqLAYfQEzxRwpll6BDKImREbpHWA==
1779817790
dependencies:
1779917791
balanced-match "^2.0.0"
1780017792
colord "^2.9.2"
1780117793
cosmiconfig "^7.0.1"
1780217794
debug "^4.3.3"
1780317795
execall "^2.0.0"
17804-
fast-glob "^3.2.7"
17796+
fast-glob "^3.2.11"
1780517797
fastest-levenshtein "^1.0.12"
1780617798
file-entry-cache "^6.0.1"
1780717799
get-stdin "^8.0.0"
1780817800
global-modules "^2.0.0"
17809-
globby "^11.0.4"
17801+
globby "^11.1.0"
1781017802
globjoin "^0.1.4"
1781117803
html-tags "^3.1.0"
1781217804
ignore "^5.2.0"
@@ -17820,21 +17812,22 @@ stylelint@^14.2.0:
1782017812
normalize-path "^3.0.0"
1782117813
normalize-selector "^0.2.0"
1782217814
picocolors "^1.0.0"
17823-
postcss "^8.3.11"
17815+
postcss "^8.4.5"
1782417816
postcss-media-query-parser "^0.2.3"
1782517817
postcss-resolve-nested-selector "^0.1.1"
1782617818
postcss-safe-parser "^6.0.0"
17827-
postcss-selector-parser "^6.0.7"
17828-
postcss-value-parser "^4.1.0"
17819+
postcss-selector-parser "^6.0.9"
17820+
postcss-value-parser "^4.2.0"
1782917821
resolve-from "^5.0.0"
1783017822
specificity "^0.4.1"
1783117823
string-width "^4.2.3"
1783217824
strip-ansi "^6.0.1"
1783317825
style-search "^0.1.0"
17826+
supports-hyperlinks "^2.2.0"
1783417827
svg-tags "^1.0.0"
17835-
table "^6.7.5"
17828+
table "^6.8.0"
1783617829
v8-compile-cache "^2.3.0"
17837-
write-file-atomic "^3.0.3"
17830+
write-file-atomic "^4.0.0"
1783817831

1783917832
stylis@^4.0.6:
1784017833
version "4.0.13"
@@ -17884,7 +17877,7 @@ supports-color@^9.2.1:
1788417877
resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-9.2.1.tgz#599dc9d45acf74c6176e0d880bab1d7d718fe891"
1788517878
integrity sha512-Obv7ycoCTG51N7y175StI9BlAXrmgZrFhZOb0/PyjHBher/NmsdBgbbQ1Inhq+gIhz6+7Gb+jWF2Vqi7Mf1xnQ==
1788617879

17887-
supports-hyperlinks@^2.0.0:
17880+
supports-hyperlinks@^2.0.0, supports-hyperlinks@^2.2.0:
1788817881
version "2.2.0"
1788917882
resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.2.0.tgz#4f77b42488765891774b70c79babd87f9bd594bb"
1789017883
integrity sha512-6sXEzV5+I5j8Bmq9/vUphGRM/RJNT9SCURJLjwfOg51heRtguGWDzcaBlgAzKhQa0EVNpPEKzQuBwZ8S8WaCeQ==
@@ -17930,7 +17923,7 @@ symbol-tree@^3.2.4:
1793017923
resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.4.tgz#430637d248ba77e078883951fb9aa0eed7c63fa2"
1793117924
integrity sha512-9QNk5KwDF+Bvz+PyObkmSYjI5ksVUYtjW7AU22r2NKcfLJcXp96hkDWU3+XndOsUb+AQ9QhfzfCT2O+CNWT5Tw==
1793217925

17933-
table@^6.6.0, table@^6.7.5:
17926+
table@^6.6.0, table@^6.8.0:
1793417927
version "6.8.0"
1793517928
resolved "https://registry.yarnpkg.com/table/-/table-6.8.0.tgz#87e28f14fa4321c3377ba286f07b79b281a3b3ca"
1793617929
integrity sha512-s/fitrbVeEyHKFa7mFdkuQMWlH1Wgw/yEXMt5xACT4ZpzWFluehAxRtUUQKPuWhaLAWhFcVx6w3oC8VKaUfPGA==
@@ -18560,6 +18553,11 @@ typedarray-to-buffer@^3.1.5:
1856018553
dependencies:
1856118554
is-typedarray "^1.0.0"
1856218555

18556+
typedarray-to-buffer@^4.0.0:
18557+
version "4.0.0"
18558+
resolved "https://registry.yarnpkg.com/typedarray-to-buffer/-/typedarray-to-buffer-4.0.0.tgz#cdd2933c61dd3f5f02eda5d012d441f95bfeb50a"
18559+
integrity sha512-6dOYeZfS3O9RtRD1caom0sMxgK59b27+IwoNy8RDPsmslSGOyU+mpTamlaIW7aNKi90ZQZ9DFaZL3YRoiSCULQ==
18560+
1856318561
typedarray@^0.0.6:
1856418562
version "0.0.6"
1856518563
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
@@ -19771,6 +19769,16 @@ write-file-atomic@^3.0.0, write-file-atomic@^3.0.3:
1977119769
signal-exit "^3.0.2"
1977219770
typedarray-to-buffer "^3.1.5"
1977319771

19772+
write-file-atomic@^4.0.0:
19773+
version "4.0.0"
19774+
resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.0.tgz#0eff5dc687d3e22535ca3fca8558124645a4b053"
19775+
integrity sha512-JhcWoKffJNF7ivO9yflBhc7tn3wKnokMUfWpBriM9yCXj4ePQnRPcWglBkkg1AHC8nsW/EfxwwhqsLtOy59djA==
19776+
dependencies:
19777+
imurmurhash "^0.1.4"
19778+
is-typedarray "^1.0.0"
19779+
signal-exit "^3.0.2"
19780+
typedarray-to-buffer "^4.0.0"
19781+
1977419782
write-json-file@^3.2.0:
1977519783
version "3.2.0"
1977619784
resolved "https://registry.yarnpkg.com/write-json-file/-/write-json-file-3.2.0.tgz#65bbdc9ecd8a1458e15952770ccbadfcff5fe62a"

0 commit comments

Comments
 (0)