mirror of
https://github.com/alrayyes/my-opinionated-gatsby-starter
synced 2023-11-14 15:56:29 +00:00
Compare commits
12 Commits
8e386d0020
...
62c71671d3
Author | SHA1 | Date | |
---|---|---|---|
62c71671d3 | |||
2458d27c16 | |||
2185a6b209 | |||
8299db815d | |||
f511032043 | |||
d1ea156a31 | |||
f9e8c3b165 | |||
981fc0d68c | |||
032da7e69e | |||
0afb0258d9 | |||
66e0439395 | |||
32ef4b1327 |
25
.circleci/config.yml
Normal file
25
.circleci/config.yml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
version: 2.1
|
||||||
|
orbs:
|
||||||
|
node: circleci/node@1.1.6
|
||||||
|
codecov: codecov/codecov@1.0.2
|
||||||
|
jobs:
|
||||||
|
build-and-test:
|
||||||
|
executor:
|
||||||
|
name: node/default
|
||||||
|
steps:
|
||||||
|
- checkout
|
||||||
|
- node/with-cache:
|
||||||
|
steps:
|
||||||
|
- run: yarn install
|
||||||
|
- run: yarn test:coverage
|
||||||
|
- run: yarn build
|
||||||
|
- store_artifacts:
|
||||||
|
path: coverage
|
||||||
|
- store_artifacts:
|
||||||
|
path: public
|
||||||
|
- codecov/upload:
|
||||||
|
file: coverage/cobertura-coverage.xml
|
||||||
|
workflows:
|
||||||
|
build-and-test:
|
||||||
|
jobs:
|
||||||
|
- build-and-test
|
@ -1,5 +1,9 @@
|
|||||||
# My opinionated Gatsby starter
|
# My opinionated Gatsby starter
|
||||||
|
|
||||||
|
[![Netlify Status](https://api.netlify.com/api/v1/badges/ea7b92e1-7878-4f24-8b94-97ac079fbafd/deploy-status)](https://app.netlify.com/sites/my-opinionated-gatsby-starter/deploys)
|
||||||
|
[![<alrayyes>](https://circleci.com/gh/alrayyes/my-opinionated-gatsby-starter.svg?style=svg)](https://app.circleci.com/pipelines/github/alrayyes/my-opinionated-gatsby-starter)
|
||||||
|
[![codecov](https://codecov.io/gh/alrayyes/my-opinionated-gatsby-starter/branch/master/graph/badge.svg)](https://codecov.io/gh/alrayyes/my-opinionated-gatsby-starter)
|
||||||
|
|
||||||
Kick off your project with this opinionated boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
|
Kick off your project with this opinionated boilerplate. This starter ships with the main Gatsby configuration files you might need to get up and running blazing fast with the blazing fast app generator for React.
|
||||||
|
|
||||||
## Stuff I added
|
## Stuff I added
|
||||||
|
@ -31,6 +31,14 @@ module.exports = {
|
|||||||
},
|
},
|
||||||
"gatsby-plugin-emotion",
|
"gatsby-plugin-emotion",
|
||||||
`gatsby-plugin-postcss`,
|
`gatsby-plugin-postcss`,
|
||||||
|
{
|
||||||
|
resolve: `gatsby-plugin-github-ribbon`,
|
||||||
|
options: {
|
||||||
|
project: `https://github.com/alrayyes/my-opinionated-gatsby-starter`,
|
||||||
|
color: `gray`, //`red`, `green`, `darkblue`, `orange`, `gray`, or `white`.
|
||||||
|
position: `right`, //`left` or `right`
|
||||||
|
},
|
||||||
|
},
|
||||||
// this (optional) plugin enables Progressive Web App + Offline functionality
|
// this (optional) plugin enables Progressive Web App + Offline functionality
|
||||||
// To learn more, visit: https://gatsby.dev/offline
|
// To learn more, visit: https://gatsby.dev/offline
|
||||||
// `gatsby-plugin-offline`,
|
// `gatsby-plugin-offline`,
|
||||||
|
47
package.json
47
package.json
@ -2,22 +2,23 @@
|
|||||||
"name": "gatsby-starter-default",
|
"name": "gatsby-starter-default",
|
||||||
"private": true,
|
"private": true,
|
||||||
"description": "Opinionated gatsby starter with stuff I use",
|
"description": "Opinionated gatsby starter with stuff I use",
|
||||||
"version": "0.1.0",
|
"version": "1.0.0",
|
||||||
"author": "Ryan Kes<alias+gatsbystarter@ryankes.eu>",
|
"author": "Ryan Kes<alias+gatsbystarter@ryankes.eu>",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@emotion/core": "^10.0.28",
|
"@emotion/core": "^10.0.28",
|
||||||
"@emotion/styled": "^10.0.27",
|
"@emotion/styled": "^10.0.27",
|
||||||
"autoprefixer": "^9.8.0",
|
"autoprefixer": "^9.8.3",
|
||||||
"gatsby": "^2.21.37",
|
"gatsby": "^2.23.10",
|
||||||
"gatsby-image": "^2.4.4",
|
"gatsby-image": "^2.4.8",
|
||||||
"gatsby-plugin-emotion": "^4.3.3",
|
"gatsby-plugin-emotion": "^4.3.5",
|
||||||
"gatsby-plugin-manifest": "^2.4.5",
|
"gatsby-plugin-github-ribbon": "^1.1.0",
|
||||||
"gatsby-plugin-offline": "^3.2.3",
|
"gatsby-plugin-manifest": "^2.4.13",
|
||||||
"gatsby-plugin-postcss": "^2.3.3",
|
"gatsby-plugin-offline": "^3.2.12",
|
||||||
"gatsby-plugin-react-helmet": "^3.3.1",
|
"gatsby-plugin-postcss": "^2.3.5",
|
||||||
"gatsby-plugin-sharp": "^2.6.4",
|
"gatsby-plugin-react-helmet": "^3.3.5",
|
||||||
"gatsby-source-filesystem": "^2.3.4",
|
"gatsby-plugin-sharp": "^2.6.13",
|
||||||
"gatsby-transformer-sharp": "^2.5.2",
|
"gatsby-source-filesystem": "^2.3.13",
|
||||||
|
"gatsby-transformer-sharp": "^2.5.6",
|
||||||
"precss": "^4.0.0",
|
"precss": "^4.0.0",
|
||||||
"react": "^16.12.0",
|
"react": "^16.12.0",
|
||||||
"react-dom": "^16.12.0",
|
"react-dom": "^16.12.0",
|
||||||
@ -26,39 +27,39 @@
|
|||||||
"twin.macro": "^1.3.0"
|
"twin.macro": "^1.3.0"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@babel/core": "^7.10.2",
|
"@babel/core": "^7.10.3",
|
||||||
"@babel/preset-typescript": "^7.10.1",
|
"@babel/preset-typescript": "^7.10.1",
|
||||||
"@storybook/addon-actions": "^5.3.19",
|
"@storybook/addon-actions": "^5.3.19",
|
||||||
"@storybook/addon-links": "^5.3.19",
|
"@storybook/addon-links": "^5.3.19",
|
||||||
"@storybook/addons": "^5.3.19",
|
"@storybook/addons": "^5.3.19",
|
||||||
"@storybook/react": "^5.3.19",
|
"@storybook/react": "^5.3.19",
|
||||||
"@types/react": "^16.9.35",
|
"@types/react": "^16.9.38",
|
||||||
"@types/react-dom": "^16.9.8",
|
"@types/react-dom": "^16.9.8",
|
||||||
"@types/react-helmet": "^6.0.0",
|
"@types/react-helmet": "^6.0.0",
|
||||||
"@types/react-test-renderer": "^16.9.2",
|
"@types/react-test-renderer": "^16.9.2",
|
||||||
"@typescript-eslint/eslint-plugin": "^3.1.0",
|
"@typescript-eslint/eslint-plugin": "^3.4.0",
|
||||||
"@typescript-eslint/parser": "^3.1.0",
|
"@typescript-eslint/parser": "^3.4.0",
|
||||||
"babel-jest": "^26.0.1",
|
"babel-jest": "^26.1.0",
|
||||||
"babel-loader": "^8.1.0",
|
"babel-loader": "^8.1.0",
|
||||||
"babel-plugin-emotion": "^10.0.33",
|
"babel-plugin-emotion": "^10.0.33",
|
||||||
"babel-preset-gatsby": "^0.4.8",
|
"babel-preset-gatsby": "^0.4.11",
|
||||||
"babel-preset-react-app": "^9.1.2",
|
"babel-preset-react-app": "^9.1.2",
|
||||||
"eslint": "^7.1.0",
|
"eslint": "^7.3.1",
|
||||||
"eslint-config-prettier": "^6.11.0",
|
"eslint-config-prettier": "^6.11.0",
|
||||||
"eslint-config-react-app": "^5.2.1",
|
"eslint-config-react-app": "^5.2.1",
|
||||||
"eslint-loader": "^4.0.2",
|
"eslint-loader": "^4.0.2",
|
||||||
"eslint-plugin-flowtype": "^5.1.3",
|
"eslint-plugin-flowtype": "^5.1.3",
|
||||||
"eslint-plugin-import": "^2.20.2",
|
"eslint-plugin-import": "^2.20.2",
|
||||||
"eslint-plugin-jest": "^23.13.2",
|
"eslint-plugin-jest": "^23.17.1",
|
||||||
"eslint-plugin-jsx-a11y": "^6.2.3",
|
"eslint-plugin-jsx-a11y": "^6.3.1",
|
||||||
"eslint-plugin-prettier": "^3.1.3",
|
"eslint-plugin-prettier": "^3.1.3",
|
||||||
"eslint-plugin-react": "^7.20.0",
|
"eslint-plugin-react": "^7.20.0",
|
||||||
"eslint-plugin-react-hooks": "^4.0.4",
|
"eslint-plugin-react-hooks": "^4.0.4",
|
||||||
"husky": ">=4",
|
"husky": ">=4",
|
||||||
"identity-obj-proxy": "^3.0.0",
|
"identity-obj-proxy": "^3.0.0",
|
||||||
"jest": "^26.0.1",
|
"jest": "^26.1.0",
|
||||||
"jest-emotion": "^10.0.32",
|
"jest-emotion": "^10.0.32",
|
||||||
"lint-staged": ">=10",
|
"lint-staged": ">=10.2.11",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"react-test-renderer": "^16.13.1",
|
"react-test-renderer": "^16.13.1",
|
||||||
"typescript": "^3.9.3"
|
"typescript": "^3.9.3"
|
||||||
|
23
src/@types/components/seo.d.ts
vendored
23
src/@types/components/seo.d.ts
vendored
@ -1,18 +1,17 @@
|
|||||||
interface SEOMetaNameInterface {
|
|
||||||
name: string
|
|
||||||
content: string
|
|
||||||
}
|
|
||||||
|
|
||||||
interface SEOMetaPropertyInterface {
|
|
||||||
property: string
|
|
||||||
content: string
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface SEOInterface {
|
export interface SEOInterface {
|
||||||
|
title: string
|
||||||
description?: string
|
description?: string
|
||||||
lang?: string
|
lang?: string
|
||||||
meta?: Array<SEOMetaNameInterface | SEOMetaPropertyInterface>
|
meta?: Array<
|
||||||
title: string
|
| {
|
||||||
|
property: string
|
||||||
|
content: string
|
||||||
|
}
|
||||||
|
| {
|
||||||
|
name: string
|
||||||
|
content: string
|
||||||
|
}
|
||||||
|
>
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface SEODataInterface {
|
export interface SEODataInterface {
|
||||||
|
@ -20,7 +20,7 @@ const Image: React.FC = () => {
|
|||||||
placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
|
placeholderImage: file(relativePath: { eq: "gatsby-astronaut.png" }) {
|
||||||
childImageSharp {
|
childImageSharp {
|
||||||
fluid(maxWidth: 300) {
|
fluid(maxWidth: 300) {
|
||||||
...GatsbyImageSharpFluid
|
...GatsbyImageSharpFluid_withWebp_tracedSVG
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user