Skip to content

Commit

Permalink
Added prettier and pretty-quick
Browse files Browse the repository at this point in the history
Formatted files
Updated setup make
  • Loading branch information
Marvin Heilemann committed Jan 16, 2020
1 parent b0bcb99 commit 5fd3a1a
Show file tree
Hide file tree
Showing 8 changed files with 208 additions and 7 deletions.
4 changes: 3 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
node_modules
.cache
*.json
.git
public
reports
*.json
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,14 @@ restart-nginx:
newcert:
webssl --removeOld --addToKeychain


# ----------------------------
# Setup

create-env:
cp .env.development .env.production

setup: create-env
create-reports-dir:
mkdir -p reports

setup: create-env create-reports-dir
4 changes: 4 additions & 0 deletions TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@
- [ ] Everything pushed to development -> dev.marvin.digital
- [x] replace React with [Preact][1] (check if it works when finished)
- [x] add version to GraphQL data not as file...
- [ ] remove "build brotli from source" with a already finished build
- [ ] always use latest NGINX image
- [ ] test prod build locally with SSL and brotli compression
- [ ] test prod builds Node env
- [ ] new image for start: me while coding
- [ ] new image for start: me while writing
- [ ] MDX pages are not using remark images plugin
Expand Down
188 changes: 187 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@
"test": "echo \"Write tests! -> https://gatsby.app/unit-testing\"",
"lint": "eslint src/**/*.{js,jsx}",
"−−−−−−−−−−−−−−−−− SCRIPTS/TOOLS −−−−−−−−−−−−−−−−–−−": "",
"preinstall": "make setup",
"postinstall": "npm run compose",
"version": "node ./scripts/version.js",
"−−−−−−−−−−−−−−−−−−−− COMMON −−−−−−−−−−−−−−−−–−−−−−−": "",
"pretty": "pretty-quick"
},
"dependencies": {
Expand Down Expand Up @@ -96,6 +97,7 @@
"lighthouse": "^5.6.0",
"npm-run-all": "^4.1.5",
"prettier": "^1.19.1",
"pretty-quick": "^2.0.1",
"prompts": "^2.3.0",
"semver": "^7.1.1",
"taskz": "^1.3.0",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Link.jsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react'
import { Link as NativeLink } from 'gatsby'

const Link = props => {
const Link = (props) => {
const DEFAULT_PROPS = {}
props = { ...props, ...DEFAULT_PROPS }
return <NativeLink {...props}>{props.children}</NativeLink>
Expand Down
2 changes: 1 addition & 1 deletion src/components/SEO.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const SEO = ({
}) => (
<StaticQuery
query={detailsQuery}
render={data => {
render={(data) => {
const metaDescription = description || data.site.siteMetadata.description

// set default social-media images
Expand Down
2 changes: 1 addition & 1 deletion src/storage.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function removeItem(key) {
}

function clearAll() {
return new Promise(resolve => {
return new Promise((resolve) => {
localStorage.clear()
resolve()
})
Expand Down

0 comments on commit 5fd3a1a

Please sign in to comment.