Skip to content

Commit

Permalink
init and install core libs
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Frank committed May 16, 2020
1 parent 7a315f6 commit 5d3833d
Show file tree
Hide file tree
Showing 5 changed files with 436 additions and 24 deletions.
7 changes: 7 additions & 0 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"parser": "babel-eslint",
"rules": {
"strict": 0
},
"extends": ["eslint:recommended", "plugin:react/recommended"]
}
25 changes: 25 additions & 0 deletions gatsby-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,31 @@ module.exports = {
icon: `src/images/gatsby-icon.png`, // This path is relative to the root of the site.
},
},
"gatsby-plugin-eslint-v2",
{
resolve: "gatsby-plugin-prettier-eslint",
options: {
prettier: {
patterns: [
// the pattern "**/*.{js,jsx,ts,tsx}" is not used because we will rely on `eslint --fix`
"**/*.{css,scss,less}",
"**/*.{json,json5}",
"**/*.{graphql}",
"**/*.{md,mdx}",
"**/*.{html}",
"**/*.{yaml,yml}",
],
},
eslint: {
patterns: "**/*.{js,jsx,ts,tsx}",
customOptions: {
fix: true,
cache: true,
},
},
},
},

// this (optional) plugin enables Progressive Web App + Offline functionality
// To learn more, visit: https://gatsby.dev/offline
// `gatsby-plugin-offline`,
Expand Down
25 changes: 20 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,39 @@
{
"name": "gatsby-starter-default",
"name": "very-design",
"private": true,
"description": "A simple starter to get up and developing quickly with Gatsby",
"version": "0.1.0",
"author": "Kyle Mathews <mathews.kyle@gmail.com>",
"description": "A theme for the design practice @very",
"version": "0.0.1",
"author": "Andrew Frank <andre@verypossible.com>",
"dependencies": {
"babel-plugin-styled-components": "^1.10.7",
"framer-motion": "^1.11.0",
"gatsby": "^2.21.22",
"gatsby-image": "^2.4.3",
"gatsby-plugin-manifest": "^2.4.2",
"gatsby-plugin-offline": "^3.2.1",
"gatsby-plugin-prettier-eslint": "^1.0.4",
"gatsby-plugin-react-helmet": "^3.3.1",
"gatsby-plugin-sharp": "^2.6.2",
"gatsby-plugin-styled-components": "^3.3.1",
"gatsby-source-filesystem": "^2.3.1",
"gatsby-transformer-sharp": "^2.5.2",
"prop-types": "^15.7.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-helmet": "^6.0.0"
"react-helmet": "^6.0.0",
"styled-components": "^5.1.0"
},
"devDependencies": {
"@types/node": "^14.0.1",
"@types/react": "^16.9.35",
"@types/react-dom": "^16.9.8",
"@types/styled-components": "^5.1.0",
"babel-eslint": "^10.1.0",
"eslint": "^7.0.0",
"eslint-loader": "^4.0.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-react": "^7.20.0",
"gatsby-plugin-eslint-v2": "^2.0.0-beta.0",
"prettier": "2.0.5"
},
"keywords": [
Expand Down
21 changes: 20 additions & 1 deletion src/pages/index.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,39 @@
import React from "react"
import styled from "styled-components"
import { AnimatePresence, motion } from "framer-motion"

import { Link } from "gatsby"

import Layout from "../components/layout"
import Image from "../components/image"
import SEO from "../components/seo"

const Potato = styled.span`
display: flex;
width: 4rem;
height: 4rem;
background: purple;
`

const IndexPage = () => (
<Layout>
<SEO title="Home" />
<h1>Hi people</h1>
<AnimatePresence>
<motion.h1
initial={{ opacity: 0 }}
animate={{ opacity: 1 }}
exit={{ opacity: 0 }}
>
Hi potatos
</motion.h1>
</AnimatePresence>
<p>Welcome to your new Gatsby site.</p>
<p>Now go build something great.</p>
<div style={{ maxWidth: `300px`, marginBottom: `1.45rem` }}>
<Image />
</div>
<Link to="/page-2/">Go to page 2</Link>
<Potato />
</Layout>
)

Expand Down
Loading

0 comments on commit 5d3833d

Please sign in to comment.