Skip to content
This repository was archived by the owner on Jun 20, 2022. It is now read-only.

Commit 9600b48

Browse files
authored
Merge pull request #157 from smooth-code/bundle-analyzer
chore: setup bundle-analyzer
2 parents 0881cb1 + 2fc8b3d commit 9600b48

File tree

5 files changed

+79
-2
lines changed

5 files changed

+79
-2
lines changed

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

website/.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
12

website/gatsby-config.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,11 @@ module.exports = {
2323
component: require.resolve(`./src/components/layout`),
2424
},
2525
},
26+
{
27+
resolve: '@bundle-analyzer/gatsby-plugin',
28+
options: {
29+
token: '0f76d516797d28b3eac9999c701186d94360c766',
30+
},
31+
},
2632
],
2733
}

website/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
"serve": "gatsby serve"
88
},
99
"dependencies": {
10+
"@bundle-analyzer/gatsby-plugin": "^0.4.0",
1011
"@emotion/core": "^10.0.16",
1112
"@emotion/styled": "^10.0.15",
1213
"@smooth-ui/core-sc": "^10.1.0",

website/yarn.lock

Lines changed: 70 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -763,6 +763,31 @@
763763
lodash "^4.17.13"
764764
to-fast-properties "^2.0.0"
765765

766+
"@bundle-analyzer/core@^0.4.0":
767+
version "0.4.0"
768+
resolved "https://registry.yarnpkg.com/@bundle-analyzer/core/-/core-0.4.0.tgz#8cf972668d92dfd6a7cbfe8e159cb4a926d9d572"
769+
integrity sha512-dJT8BUTDbSFIX2ynKOLf7IYFRff5bIkB8GHAoF+thkhNLptl33+YZplOpQLAI++/ZNJlIJuPw//l/UpPEUERQw==
770+
dependencies:
771+
axios "^0.19.0"
772+
brotli-size "^1.0.0"
773+
cosmiconfig "^5.2.1"
774+
gzip-size "^5.1.1"
775+
omit-deep "^0.3.0"
776+
777+
"@bundle-analyzer/gatsby-plugin@^0.4.0":
778+
version "0.4.0"
779+
resolved "https://registry.yarnpkg.com/@bundle-analyzer/gatsby-plugin/-/gatsby-plugin-0.4.0.tgz#7d481ae7d0a2567c667f5be2e90baf893e29376e"
780+
integrity sha512-D/iGCfv/veLhwDdZyUqnLK0tCmH0YQF/2P3GL6ZbOeeIw8g6jKxDZdzBLXMiwweTIUZFCDoDjnEX1W4xYMI/Tg==
781+
dependencies:
782+
"@bundle-analyzer/webpack-plugin" "^0.4.0"
783+
784+
"@bundle-analyzer/webpack-plugin@^0.4.0":
785+
version "0.4.0"
786+
resolved "https://registry.yarnpkg.com/@bundle-analyzer/webpack-plugin/-/webpack-plugin-0.4.0.tgz#220a90a00277e170fc271a2f587f4e61db224d05"
787+
integrity sha512-Ak88ObUJVTRTO3u0WDfg38YwEfOpmT9YMjnpX8SAuWW6KuQmBVN/frtt4RkzBc+UfgxVIJ0mPjUV967WRLOsnQ==
788+
dependencies:
789+
"@bundle-analyzer/core" "^0.4.0"
790+
766791
"@emotion/cache@^10.0.15":
767792
version "10.0.15"
768793
resolved "https://registry.yarnpkg.com/@emotion/cache/-/cache-10.0.15.tgz#b81767b48015aae2689c60373992145c67b8de02"
@@ -2539,6 +2564,14 @@ brorand@^1.0.1:
25392564
resolved "https://registry.yarnpkg.com/brorand/-/brorand-1.1.0.tgz#12c25efe40a45e3c323eb8675a0a0ce57b22371f"
25402565
integrity sha1-EsJe/kCkXjwyPrhnWgoM5XsiNx8=
25412566

2567+
brotli-size@^1.0.0:
2568+
version "1.0.0"
2569+
resolved "https://registry.yarnpkg.com/brotli-size/-/brotli-size-1.0.0.tgz#9dde191db7c5519cf21eb872c58794ec12811a5a"
2570+
integrity sha512-vLc7vUKuDh1GsxeWW+X0epesdhxVRG5h2uuF6YlV67xlI/r5tRWSXeiZRNX7GpuYr8p1LLKGsxt/MyQ+o0zG6Q==
2571+
dependencies:
2572+
duplexer "^0.1.1"
2573+
iltorb "^2.4.3"
2574+
25422575
browserify-aes@^1.0.0, browserify-aes@^1.0.4:
25432576
version "1.2.0"
25442577
resolved "https://registry.yarnpkg.com/browserify-aes/-/browserify-aes-1.2.0.tgz#326734642f403dabc3003209853bb70ad428ef48"
@@ -6350,6 +6383,14 @@ gzip-size@3.0.0:
63506383
dependencies:
63516384
duplexer "^0.1.1"
63526385

6386+
gzip-size@^5.1.1:
6387+
version "5.1.1"
6388+
resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-5.1.1.tgz#cb9bee692f87c0612b232840a873904e4c135274"
6389+
integrity sha512-FNHi6mmoHvs1mxZAds4PpdCS6QG8B4C1krxJsMutgxl5t3+GlRTzzI3NEkifXx2pVsOvJdOGSmIgDhQ55FwdPA==
6390+
dependencies:
6391+
duplexer "^0.1.1"
6392+
pify "^4.0.1"
6393+
63536394
handle-thing@^2.0.0:
63546395
version "2.0.0"
63556396
resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.0.tgz#0e039695ff50c93fc288557d696f3c1dc6776754"
@@ -6757,6 +6798,17 @@ ignore@^5.1.1:
67576798
resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.1.4.tgz#84b7b3dbe64552b6ef0eca99f6743dbec6d97adf"
67586799
integrity sha512-MzbUSahkTW1u7JpKKjY7LCARd1fU5W2rLdxlM4kdkayuCwZImjkpluF9CM1aLewYJguPDqewLam18Y6AU69A8A==
67596800

6801+
iltorb@^2.4.3:
6802+
version "2.4.3"
6803+
resolved "https://registry.yarnpkg.com/iltorb/-/iltorb-2.4.3.tgz#b489689d24c8a25a2cf170c515f97954edd45577"
6804+
integrity sha512-cr/kC07Cf9sW3TWH7yUxV2QkNjby4LMCsXGmxPCQs5x//QzTpF3GLPNY7L66G+DkNGaTRCgY+vYZ+dyAcuDOnQ==
6805+
dependencies:
6806+
detect-libc "^1.0.3"
6807+
nan "^2.13.2"
6808+
npmlog "^4.1.2"
6809+
prebuild-install "^5.3.0"
6810+
which-pm-runs "^1.0.0"
6811+
67606812
imagemin-mozjpeg@^8.0.0:
67616813
version "8.0.0"
67626814
resolved "https://registry.yarnpkg.com/imagemin-mozjpeg/-/imagemin-mozjpeg-8.0.0.tgz#d2ca4e8c982c7c6eda55069af89dee4c1cebcdfd"
@@ -7394,7 +7446,7 @@ is-plain-obj@^2.0.0:
73947446
resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-2.0.0.tgz#7fd1a7f1b69e160cde9181d2313f445c68aa2679"
73957447
integrity sha512-EYisGhpgSCwspmIuRHGjROWTon2Xp8Z7U03Wubk/bTL5TTRC5R1rGVgyjzBrk9+ULdH6cRD06KRcw/xfqhVYKQ==
73967448

7397-
is-plain-object@^2.0.3, is-plain-object@^2.0.4:
7449+
is-plain-object@^2.0.1, is-plain-object@^2.0.3, is-plain-object@^2.0.4:
73987450
version "2.0.4"
73997451
resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677"
74007452
integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og==
@@ -8662,7 +8714,7 @@ name-all-modules-plugin@^1.0.1:
86628714
resolved "https://registry.yarnpkg.com/name-all-modules-plugin/-/name-all-modules-plugin-1.0.1.tgz#0abfb6ad835718b9fb4def0674e06657a954375c"
86638715
integrity sha1-Cr+2rYNXGLn7Te8GdOBmV6lUN1w=
86648716

8665-
nan@^2.12.1, nan@^2.14.0:
8717+
nan@^2.12.1, nan@^2.13.2, nan@^2.14.0:
86668718
version "2.14.0"
86678719
resolved "https://registry.yarnpkg.com/nan/-/nan-2.14.0.tgz#7818f722027b2459a86f0295d434d1fc2336c52c"
86688720
integrity sha512-INOFj37C7k3AfaNTtX8RhsTw7qRy7eLET14cROi9+5HAVbbHuIWUHEauBv5qT4Av2tWasiTY1Jw6puUNqRJXQg==
@@ -9087,6 +9139,14 @@ omggif@^1.0.9:
90879139
resolved "https://registry.yarnpkg.com/omggif/-/omggif-1.0.10.tgz#ddaaf90d4a42f532e9e7cb3a95ecdd47f17c7b19"
90889140
integrity sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==
90899141

9142+
omit-deep@^0.3.0:
9143+
version "0.3.0"
9144+
resolved "https://registry.yarnpkg.com/omit-deep/-/omit-deep-0.3.0.tgz#21c8af3499bcadd29651a232cbcacbc52445ebec"
9145+
integrity sha1-IcivNJm8rdKWUaIyy8rLxSRF6+w=
9146+
dependencies:
9147+
is-plain-object "^2.0.1"
9148+
unset-value "^0.1.1"
9149+
90909150
on-finished@~2.3.0:
90919151
version "2.3.0"
90929152
resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947"
@@ -12937,6 +12997,14 @@ unquote@~1.1.1:
1293712997
resolved "https://registry.yarnpkg.com/unquote/-/unquote-1.1.1.tgz#8fded7324ec6e88a0ff8b905e7c098cdc086d544"
1293812998
integrity sha1-j97XMk7G6IoP+LkF58CYzcCG1UQ=
1293912999

13000+
unset-value@^0.1.1:
13001+
version "0.1.2"
13002+
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-0.1.2.tgz#506810b867f27c2a5a6e9b04833631f6de58d310"
13003+
integrity sha1-UGgQuGfyfCpabpsEgzYx9t5Y0xA=
13004+
dependencies:
13005+
has-value "^0.3.1"
13006+
isobject "^3.0.0"
13007+
1294013008
unset-value@^1.0.0:
1294113009
version "1.0.0"
1294213010
resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559"

0 commit comments

Comments
 (0)