diff --git a/.eslintrc b/.eslintrc index 1e9ad3b..8cf65df 100644 --- a/.eslintrc +++ b/.eslintrc @@ -11,6 +11,9 @@ "browser": true, "node": true }, + "globals": { + "graphql": true + }, "extends": ["eslint:recommended", "plugin:react/recommended"], "rules": { "quotes": ["error", "single"], diff --git a/.gitignore b/.gitignore index d8105c3..5cebd59 100644 --- a/.gitignore +++ b/.gitignore @@ -10,4 +10,3 @@ npm-debug.log* yarn-debug.log* yarn.lock package-lock.json -src/**/*.css diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 3ef8885..8184d4f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -7,6 +7,7 @@ cache: testing: stage: test script: - - npm install + - npm i gatsby-cli -g + - npm i - npm test - npm run build diff --git a/.stylelintrc b/.stylelintrc new file mode 100644 index 0000000..f537488 --- /dev/null +++ b/.stylelintrc @@ -0,0 +1,10 @@ +{ + "extends": [ + "stylelint-config-standard" + ], + "syntax": "scss", + "rules": { + "indentation": 4, + "number-leading-zero": "never" + } +} diff --git a/data/meta.json b/data/meta.json index f9c1273..988d9a9 100644 --- a/data/meta.json +++ b/data/meta.json @@ -2,6 +2,7 @@ "title": "Matthias Kretschmann", "tagline": "Designer & Developer", "description": "", + "url": "https://matthiaskretschmann.com", "social": { "Twitter": "https://twitter.com/kremalicious", "GitHub": "https://github.com/kremalicious", diff --git a/gatsby-config.js b/gatsby-config.js index 643d7a1..9e679a4 100644 --- a/gatsby-config.js +++ b/gatsby-config.js @@ -1,10 +1,14 @@ +const meta = require('./data/meta.json') + module.exports = { siteMetadata: { - title: 'Gatsby Default Starter', + siteUrl: `${meta.url}`, }, plugins: [ + 'gatsby-plugin-react-next', 'gatsby-plugin-react-helmet', 'gatsby-transformer-json', + 'gatsby-plugin-sitemap', { resolve: 'gatsby-source-filesystem', options: { @@ -17,9 +21,9 @@ module.exports = { options: { includePaths: [ `${__dirname}/node_modules`, - `${__dirname}/src/styles`, + `${__dirname}/src/styles` ], }, - }, - ], + } + ] } diff --git a/package.json b/package.json index ff2b7f9..0b438ff 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,9 @@ "gatsby": "^1.9.241", "gatsby-link": "^1.6.39", "gatsby-plugin-react-helmet": "^2.0.8", + "gatsby-plugin-react-next": "^1.0.11", "gatsby-plugin-sass": "latest", + "gatsby-plugin-sitemap": "^1.2.20", "gatsby-source-filesystem": "^1.5.28", "gatsby-transformer-json": "^1.0.16", "react-helmet": "^5.2.0", @@ -18,12 +20,17 @@ "eslint": "^4.19.1", "eslint-plugin-graphql": "^1.5.0", "eslint-plugin-react": "^7.7.0", - "prettier": "^1.11.1" + "prettier": "^1.11.1", + "stylelint": "^9.2.0", + "stylelint-config-standard": "^18.2.0" }, "scripts": { + "lint:js": "eslint ./src/**/*.js", + "lint:css": "stylelint ./src/**/*.scss", + "lint": "npm run lint:js && npm run lint:css", "build": "gatsby build", "start": "gatsby develop", "format": "prettier --write 'src/**/*.js'", - "test": "echo \"Error: no test specified\" && exit 1" + "test": "npm run lint" } } diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 53b46f3..0000000 --- a/public/index.html +++ /dev/null @@ -1 +0,0 @@ -