Skip to content

Commit 1fff512

Browse files
committed
chore:clear unused packages
1 parent 203655c commit 1fff512

File tree

6 files changed

+191
-2767
lines changed

6 files changed

+191
-2767
lines changed

gatsby-config.js

Lines changed: 3 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -36,24 +36,6 @@ module.exports = {
3636
rootFolder: './',
3737
},
3838
},
39-
'gatsby-plugin-react-helmet',
40-
{
41-
resolve: 'gatsby-transformer-remark',
42-
options: {
43-
plugins: [
44-
'gatsby-remark-responsive-iframe',
45-
'gatsby-remark-smartypants',
46-
'gatsby-remark-widows',
47-
'gatsby-remark-external-links',
48-
{
49-
resolve: 'gatsby-remark-autolink-headers',
50-
options: {
51-
className: 'header-link',
52-
},
53-
},
54-
],
55-
},
56-
},
5739
{
5840
resolve: 'gatsby-plugin-sass',
5941
options: {
@@ -79,20 +61,11 @@ module.exports = {
7961
name: 'gatsby-starter-default',
8062
short_name: 'starter',
8163
start_url: '/',
82-
background_color: '#e1e1e1',
83-
theme_color: '#e1e1e1',
64+
background_color: '#1A1A1A',
65+
theme_color: '#1A1A1A',
8466
display: 'minimal-ui',
8567
icon: 'src/images/favicon.png', // This path is relative to the root of the site.
8668
},
8769
},
88-
'gatsby-transformer-sharp',
89-
'gatsby-plugin-sharp',
90-
'gatsby-plugin-sitemap',
91-
{
92-
resolve: 'gatsby-plugin-robots-txt',
93-
options: {
94-
policy: [{ userAgent: '*', allow: '/' }],
95-
},
96-
},
9770
],
98-
};
71+
}

package.json

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -4,50 +4,31 @@
44
"version": "1.0.0",
55
"author": "Yi Hong <zouzou0208@gmail.com>",
66
"dependencies": {
7-
"@mapbox/mapbox-gl-language": "^0.10.1",
7+
"@mapbox/mapbox-gl-language": "^1.0.0",
88
"@mapbox/polyline": "^1.1.1",
9-
"classnames": "^2.2.6",
10-
"date-fns": "^2.14.0",
11-
"gatsby": "^4.6.2",
9+
"classnames": "^2.3.1",
10+
"date-fns": "^2.28.0",
11+
"gatsby": "^4.16.0",
1212
"gatsby-alias-imports": "^1.0.6",
13-
"gatsby-image": "^3.0.0",
14-
"gatsby-plugin-feed": "^4.6.0",
15-
"gatsby-plugin-manifest": "^4.6.0",
16-
"gatsby-plugin-meta-redirect": "^1.1.1",
17-
"gatsby-plugin-offline": "^5.6.0",
18-
"gatsby-plugin-react-helmet": "^5.6.0",
19-
"gatsby-plugin-react-svg": "^3.0.0",
20-
"gatsby-plugin-robots-txt": "^1.5.1",
21-
"gatsby-plugin-sass": "^5.6.0",
22-
"gatsby-plugin-sharp": "^4.6.0",
23-
"gatsby-plugin-sitemap": "^5.6.0",
24-
"gatsby-redirect-from": "^0.4.3",
25-
"gatsby-remark-autolink-headers": "^5.6.0",
26-
"gatsby-remark-classes": "^1.0.0",
27-
"gatsby-remark-external-links": "^0.0.4",
28-
"gatsby-remark-images": "^6.6.0",
29-
"gatsby-remark-responsive-iframe": "^5.6.0",
30-
"gatsby-remark-smartypants": "^5.6.0",
31-
"gatsby-remark-widows": "^1.0.0",
32-
"gatsby-source-filesystem": "^4.6.0",
33-
"gatsby-transformer-json": "^4.6.0",
34-
"gatsby-transformer-remark": "^5.6.0",
35-
"gatsby-transformer-sharp": "^4.6.0",
36-
"gatsby-transformer-yaml": "^4.6.0",
13+
"gatsby-plugin-manifest": "^4.16.0",
14+
"gatsby-plugin-react-svg": "^3.1.0",
15+
"gatsby-plugin-sass": "^5.16.0",
16+
"gatsby-source-filesystem": "^4.16.0",
17+
"gatsby-transformer-json": "^4.16.0",
3718
"gcoord": "^0.3.2",
38-
"pngquant-bin": "^6.0.0",
39-
"prettier": "^2.2.1",
40-
"prop-types": "^15.7.2",
41-
"react": "^17.0.1",
42-
"react-dom": "^17.0.1",
19+
"mapbox-gl": "^2.8.2",
20+
"prop-types": "^15.8.1",
21+
"react": "^18.1.0",
22+
"react-dom": "^18.1.0",
4323
"react-helmet": "^6.1.0",
44-
"react-map-gl": "^5.2.11",
45-
"sass": "^1.50.0",
46-
"sass-mq": "^5.0.1",
47-
"styled-components": "^4.4.1",
24+
"react-map-gl": "^6.1.16",
25+
"sass": "^1.52.3",
26+
"sass-mq": "^6.0.0",
27+
"styled-components": "^5.3.5",
4828
"tachyons": "^4.12.0",
4929
"tachyons-sass": "https://github.com/tachyons-css/tachyons-sass.git",
50-
"webpack": "^5.11.0"
30+
"viewport-mercator-project": "^7.0.4",
31+
"webpack": "^5.73.0"
5132
},
5233
"license": "MIT",
5334
"private": true,

src/components/Header/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const Header = () => {
2121
<div className="dib w-75 v-mid tr">
2222
{navLinks.map((n, i) => (
2323
<a
24-
key={i.name}
24+
key={i}
2525
href={n.url}
2626
className="light-gray link dim f6 f5-l mr3 mr4-l"
2727
>

src/styles/index.scss

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
@import "~tachyons/css/tachyons.css";
2-
32
@import "~tachyons-sass/tachyons.scss";
4-
53
@import "./variables";
64
@import "./themes";
75

src/styles/themes.scss

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
@import "~tachyons-sass/tachyons.scss";
21
@import "./variables.scss";
32

43
$avenir: "avenir next", avenir, sans-serif;

0 commit comments

Comments
 (0)