Skip to content

Commit 013ca75

Browse files
committed
Migrate to GatsbyJS V3.
1 parent a2f5b1e commit 013ca75

File tree

9 files changed

+3182
-3761
lines changed

9 files changed

+3182
-3761
lines changed

.eslintrc.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,7 @@ module.exports = {
33
browser: true,
44
es6: true,
55
},
6-
extends: [
7-
"airbnb",
8-
"prettier",
9-
"prettier/react",
10-
"plugin:react-hooks/recommended",
11-
],
6+
extends: ["airbnb", "prettier", "plugin:react-hooks/recommended"],
127
plugins: ["react", "prettier", "react-hooks"],
138
rules: { "react/prop-types": 0 },
149
};

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,9 @@
3636

3737
A starter skeleton with advanced features for [Gatsby](https://github.com/gatsbyjs/gatsby/).
3838

39-
**NOTE**: This branch contains Gatsby v2 compatible version of the starter. To get the Gatsby v1 compatible version, use the [`v1`](https://github.com/Vagr9K/gatsby-advanced-starter/tree/v1) branch.
39+
**NOTE**: This branch contains Gatsby 3 compatible version of the starter.
40+
To get the Gatsby v2 compatible version, use the [`v2`](https://github.com/Vagr9K/gatsby-advanced-starter/tree/v2) branch.
41+
To get the Gatsby v1 compatible version, use the [`v1`](https://github.com/Vagr9K/gatsby-advanced-starter/tree/v1) branch.
4042

4143
## Lighthouse Audit Score
4244

@@ -66,7 +68,7 @@ If you are interested in a foundation for building ultra-fast websites, you can
6668

6769
## Features
6870

69-
- Gatsby v2 support
71+
- Gatsby v3 support
7072
- Blazing fast loading times thanks to pre-rendered HTML and automatic chunk loading of JS files
7173
- Posts in Markdown
7274
- Code syntax highlighting

gatsby-config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ module.exports = {
158158
{
159159
allMarkdownRemark(
160160
limit: 1000,
161-
sort: { order: DESC, fields: [fields___date] },
161+
sort: { order: DESC, fields: [frontmatter___date] },
162162
) {
163163
edges {
164164
node {

package.json

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -4,60 +4,60 @@
44
"version": "2.20.11",
55
"author": "Ruben Harutyunyan <vagr9k@gmail.com>",
66
"dependencies": {
7-
"gatsby": "^2.26.1",
8-
"gatsby-image": "^2.5.0",
9-
"gatsby-plugin-catch-links": "^2.4.0",
10-
"gatsby-plugin-feed": "^2.7.0",
11-
"gatsby-plugin-google-analytics": "^2.5.0",
12-
"gatsby-plugin-lodash": "^3.4.0",
13-
"gatsby-plugin-manifest": "^2.6.1",
14-
"gatsby-plugin-netlify-cms": "^4.4.0",
15-
"gatsby-plugin-nprogress": "^2.4.0",
16-
"gatsby-plugin-offline": "^3.4.0",
17-
"gatsby-plugin-react-helmet": "^3.4.0",
18-
"gatsby-plugin-sharp": "^2.8.0",
19-
"gatsby-plugin-sitemap": "^2.6.0",
20-
"gatsby-plugin-twitter": "^2.4.0",
21-
"gatsby-remark-autolink-headers": "^2.5.0",
22-
"gatsby-remark-copy-linked-files": "^2.4.0",
23-
"gatsby-remark-images": "^3.5.1",
24-
"gatsby-remark-prismjs": "^3.7.0",
7+
"gatsby": "^3.0.1",
8+
"gatsby-image": "^3.0.0",
9+
"gatsby-plugin-catch-links": "^3.0.0",
10+
"gatsby-plugin-feed": "^3.0.0",
11+
"gatsby-plugin-google-analytics": "^3.0.0",
12+
"gatsby-plugin-lodash": "^4.0.0",
13+
"gatsby-plugin-manifest": "^3.0.0",
14+
"gatsby-plugin-netlify-cms": "^5.0.0",
15+
"gatsby-plugin-nprogress": "^3.0.0",
16+
"gatsby-plugin-offline": "^4.0.0",
17+
"gatsby-plugin-react-helmet": "^4.0.0",
18+
"gatsby-plugin-sharp": "^3.0.0",
19+
"gatsby-plugin-sitemap": "^3.0.0",
20+
"gatsby-plugin-twitter": "^3.0.0",
21+
"gatsby-remark-autolink-headers": "^3.0.0",
22+
"gatsby-remark-copy-linked-files": "^3.0.0",
23+
"gatsby-remark-images": "^4.0.0",
24+
"gatsby-remark-prismjs": "^4.0.0",
2525
"gatsby-remark-relative-images": "^2.0.2",
26-
"gatsby-remark-responsive-iframe": "^2.5.0",
27-
"gatsby-source-filesystem": "^2.5.0",
28-
"gatsby-transformer-remark": "^2.10.0",
29-
"gatsby-transformer-sharp": "^2.6.0",
30-
"lodash": "^4.17.20",
26+
"gatsby-remark-responsive-iframe": "^3.0.0",
27+
"gatsby-source-filesystem": "^3.0.0",
28+
"gatsby-transformer-remark": "^3.0.0",
29+
"gatsby-transformer-sharp": "^3.0.0",
30+
"lodash": "^4.17.21",
3131
"moment": "^2.29.1",
32-
"netlify-cms-app": "^2.13.3",
32+
"netlify-cms-app": "^2.14.26",
3333
"prismjs": "^1.23.0",
3434
"react": "^17.0.1",
3535
"react-disqus-comments": "^1.4.0",
3636
"react-dom": "^17.0.1",
3737
"react-helmet": "^6.1.0",
38-
"react-share": "^4.3.1",
38+
"react-share": "^4.4.0",
3939
"react-twitter-widgets": "^1.9.5",
4040
"url-join": "^4.0.0"
4141
},
4242
"devDependencies": {
4343
"cli-glob": "^0.1.0",
44-
"eslint": "^7.9.0",
44+
"eslint": "^7.21.0",
4545
"eslint-config-airbnb": "^18.2.0",
46-
"eslint-config-prettier": "^6.15.0",
46+
"eslint-config-prettier": "^8.1.0",
4747
"eslint-plugin-import": "^2.22.0",
4848
"eslint-plugin-jsx-a11y": "^6.3.1",
49-
"eslint-plugin-prettier": "^3.1.4",
50-
"eslint-plugin-react": "^7.21.2",
49+
"eslint-plugin-prettier": "^3.3.1",
50+
"eslint-plugin-react": "^7.22.0",
5151
"eslint-plugin-react-hooks": "^4.2.0",
5252
"gh-pages": "^3.1.0",
53-
"prettier": "^2.1.2",
53+
"prettier": "^2.2.1",
5454
"remark-cli": "^9.0.0",
5555
"remark-preset-lint-recommended": "^5.0.0",
56-
"stylelint": "^13.8.0",
56+
"stylelint": "^13.11.0",
5757
"stylelint-config-prettier": "^8.0.2",
5858
"stylelint-config-standard": "^20.0.0",
59-
"stylelint-prettier": "^1.1.2",
60-
"write-good": "^1.0.3"
59+
"stylelint-prettier": "^1.2.0",
60+
"write-good": "^1.0.8"
6161
},
6262
"keywords": [
6363
"gatsby"

src/templates/category.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export const pageQuery = graphql`
2525
query CategoryPage($category: String) {
2626
allMarkdownRemark(
2727
limit: 1000
28-
sort: { fields: [fields___date], order: DESC }
28+
sort: { fields: [frontmatter___date], order: DESC }
2929
filter: { frontmatter: { category: { eq: $category } } }
3030
) {
3131
totalCount

src/templates/landing.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export default Landing;
2626
/* eslint no-undef: "off" */
2727
export const pageQuery = graphql`
2828
query LandingQuery {
29-
allMarkdownRemark(sort: { fields: [fields___date], order: DESC }) {
29+
allMarkdownRemark(sort: { fields: [frontmatter___date], order: DESC }) {
3030
edges {
3131
node {
3232
fields {

src/templates/listing.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ export default Listing;
5656
export const listingQuery = graphql`
5757
query ListingQuery($skip: Int!, $limit: Int!) {
5858
allMarkdownRemark(
59-
sort: { fields: [fields___date], order: DESC }
59+
sort: { fields: [frontmatter___date], order: DESC }
6060
limit: $limit
6161
skip: $skip
6262
) {

src/templates/tag.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export const pageQuery = graphql`
2323
query TagPage($tag: String) {
2424
allMarkdownRemark(
2525
limit: 1000
26-
sort: { fields: [fields___date], order: DESC }
26+
sort: { fields: [frontmatter___date], order: DESC }
2727
filter: { frontmatter: { tags: { in: [$tag] } } }
2828
) {
2929
totalCount

0 commit comments

Comments
 (0)