Skip to content

Commit a49ae8b

Browse files
committed
Merge branch 'release/1.0.0'
2 parents dc681d0 + 678f83e commit a49ae8b

File tree

97 files changed

+17226
-11060
lines changed

Some content is hidden

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

97 files changed

+17226
-11060
lines changed

.eslintignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
static
3+
public
4+
.cache
5+
gatsby-config.js
6+
gatsby-node.js

.eslintrc.json

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
{
2+
"env": {
3+
"browser": true,
4+
"es2021": true
5+
},
6+
"extends": ["eslint:recommended", "plugin:react/recommended", "prettier"],
7+
"parserOptions": {
8+
"ecmaFeatures": {
9+
"jsx": true
10+
},
11+
"ecmaVersion": 12,
12+
"sourceType": "module"
13+
},
14+
"plugins": ["react"],
15+
"rules": {
16+
"import/prefer-default-export": "off",
17+
"comma-dangle": "off",
18+
"react/prop-types": "warn",
19+
"no-restricted-syntax": "off",
20+
"max-len": ["error", { "code": 200 }],
21+
"react/jsx-props-no-spreading": "off",
22+
"jsx-quotes": "off",
23+
"react/jsx-curly-newline": "off",
24+
"operator-linebreal": "off",
25+
"react/no-unescaped-entities": "warn"
26+
}
27+
}

.husky/.gitignore

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

.husky/pre-commit

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
#!/bin/sh
2+
. "$(dirname "$0")/_/husky.sh"
3+
4+
npx lint-staged --allow-empty

.prettierignore

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

.prettierrc

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"endOfLine": "lf",
3-
"semi": false,
4-
"singleQuote": false,
3+
"singleQuote": true,
54
"tabWidth": 2,
65
"trailingComma": "es5"
76
}

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2019 Daniyil Vasylenko
3+
Copyright (c) 2019 - present Daniyil Vasylenko
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 24 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,33 @@
11
**Based on [Gastby Starter Boilderplate](https://github.com/gatsbyjs/gatsby-starter-hello-world)**
22

3-
### Tech used
3+
You are welcome to use or reuse this project for your purposes, if you reference the original (this repo).
4+
5+
### Run & Build
6+
7+
Development:
8+
9+
```
10+
npm start
11+
```
12+
13+
Production:
14+
15+
```
16+
npm build
17+
npm run serve
18+
```
19+
20+
### Core
21+
422
- [Gatsby](https://github.com/gatsbyjs/gatsby)
523
- [React](https://github.com/facebook/react)
24+
- [React-spring](https://github.com/pmndrs/react-spring) for animations
25+
- [Styled Components](https://www.styled-components.com/)
626

727
### Data
8-
All the website's content is stored in markdown and fetched with [GraphQL](https://graphql.org/)
928

10-
### Styles
11-
Styling was done with [Styled Components](https://www.styled-components.com/)
29+
All the website's content is stored in markdown and fetched with [GraphQL](https://graphql.org/)
1230

1331
### Deployment
14-
Automatically deployed to [Netlify](https://netlify.com/)
32+
33+
Automatically deployed to [Gatsby Cloud](https://www.gatsbyjs.com/dashboard/sites)

gatsby-config.js

Lines changed: 33 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,44 @@
66

77
module.exports = {
88
siteMetadata: {
9-
title: 'Daniyil Vasylenko Portfolio Website',
10-
description: 'Daniyil Vasylenko\'s personal portfolio website',
11-
image: 'https://user-images.githubusercontent.com/4171202/59647385-aebee480-9183-11e9-88fe-4b27c41436b4.png'
9+
title: 'Danv',
10+
description: "Danv's personal website",
1211
},
1312
plugins: [
1413
'gatsby-plugin-react-helmet',
1514
{
1615
resolve: 'gatsby-plugin-manifest',
1716
options: {
18-
name: 'test',
19-
short_name: 'test',
17+
name: 'Danv',
18+
short_name: 'Danv',
2019
start_url: '/',
2120
background_color: '#fff',
2221
theme_color: '#fff',
2322
display: 'standalone',
24-
icon: 'static/icon.png'
25-
}
23+
icon: 'static/icon.png',
24+
},
25+
},
26+
{
27+
resolve: 'gatsby-plugin-react-svg',
28+
options: {
29+
rule: {
30+
include: /assets/,
31+
},
32+
},
2633
},
2734
{
2835
resolve: 'gatsby-source-filesystem',
2936
options: {
3037
name: 'pages',
31-
path: `${__dirname}/src/pages/`
32-
}
38+
path: `${__dirname}/src/pages/`,
39+
},
3340
},
3441
{
3542
resolve: 'gatsby-source-filesystem',
3643
options: {
3744
name: 'content',
38-
path: `${__dirname}/src/content/`
39-
}
45+
path: `${__dirname}/src/content/`,
46+
},
4047
},
4148
{
4249
resolve: 'gatsby-transformer-remark',
@@ -45,33 +52,34 @@ module.exports = {
4552
{
4653
resolve: 'gatsby-remark-images',
4754
options: {
48-
maxWidth: 1000,
49-
linkImagesToOriginal: false
50-
}
55+
maxWidth: 1024,
56+
linkImagesToOriginal: false,
57+
},
5158
},
52-
'gatsby-remark-copy-linked-files'
59+
'gatsby-remark-copy-linked-files',
5360
],
54-
}
61+
},
5562
},
5663
{
5764
resolve: 'gatsby-plugin-nprogress',
5865
options: {
5966
showSpinner: false,
60-
color: '#A9E5BB'
61-
}
67+
color: '#A9E5BB',
68+
},
6269
},
6370
{
64-
resolve: 'gatsby-plugin-google-analytics',
71+
resolve: 'gatsby-plugin-gdpr-cookies',
6572
options: {
66-
trackingId: 'UA-141684888-1',
67-
}
73+
googleAnalytics: {
74+
trackingId: process.env.GA_ID,
75+
},
76+
},
6877
},
69-
'gatsby-plugin-netlify-cache',
7078
'gatsby-transformer-sharp',
7179
'gatsby-plugin-sharp',
7280
'gatsby-plugin-catch-links',
7381
'gatsby-plugin-offline',
7482
'gatsby-plugin-styled-components',
75-
'gatsby-plugin-netlify'
76-
]
77-
}
83+
'gatsby-plugin-gatsby-cloud',
84+
],
85+
};

gatsby-node.js

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,12 @@ exports.onCreateNode = ({ node, getNode, actions }) => {
99
createNodeField({
1010
node,
1111
name: 'slug',
12-
value: slug
12+
value: slug,
1313
});
1414
}
15-
}
15+
};
1616

17-
exports.createPages = ({ graphql, actions}) => {
17+
exports.createPages = ({ graphql, actions }) => {
1818
const { createPage } = actions;
1919
return graphql(`
2020
{
@@ -35,18 +35,35 @@ exports.createPages = ({ graphql, actions}) => {
3535
path: node.fields.slug,
3636
component: path.resolve('./src/templates/cv.jsx'),
3737
context: {
38-
slug: node.fields.slug
39-
}
40-
})
38+
slug: node.fields.slug,
39+
},
40+
});
4141
} else if (node.fields.slug !== '/') {
4242
createPage({
4343
path: node.fields.slug,
4444
component: path.resolve('./src/templates/projects.jsx'),
4545
context: {
46-
slug: node.fields.slug
47-
}
46+
slug: node.fields.slug,
47+
},
4848
});
4949
}
5050
}
5151
});
52-
}
52+
};
53+
54+
// Remove when react-spring becomes stable
55+
// https://github.com/pmndrs/react-spring/issues/1069
56+
exports.onCreateWebpackConfig = ({ stage, actions }) => {
57+
if (stage.startsWith('build-javascript')) {
58+
actions.setWebpackConfig({
59+
module: {
60+
rules: [
61+
{
62+
test: /react-spring/,
63+
sideEffects: true,
64+
},
65+
],
66+
},
67+
});
68+
}
69+
};

0 commit comments

Comments
 (0)