Skip to content

Commit

Permalink
Upgrade to Gatsby v2
Browse files Browse the repository at this point in the history
  • Loading branch information
alxshelepenok committed Nov 9, 2018
1 parent e83dfc6 commit 8b92891
Show file tree
Hide file tree
Showing 204 changed files with 18,707 additions and 3,903 deletions.
4 changes: 0 additions & 4 deletions .babelrc

This file was deleted.

5 changes: 0 additions & 5 deletions .browserslistrc

This file was deleted.

43 changes: 43 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
version: 2

defaults: &defaults
working_directory: ~/repo
docker:
- image: circleci/node:8.9.1

jobs:
test:
<<: *defaults
steps:
- checkout
- restore_cache:
keys:
- v1-dependencies-{{ checksum "yarn.lock" }}
# fallback to using the latest cache if no exact match is found
- v1-dependencies-

- run:
name: Install and build package
command: yarn install --frozen-lockfile

- run:
name: "Lint"
command: yarn lint:all

- run:
name: Coverage
command: yarn test:coverage --runInBand --no-cache

- run:
name: Unit tests
command: yarn test --runInBand --no-cache

- save_cache:
paths:
- node_modules
key: v1-dependencies-{{ checksum "yarn.lock" }}
workflows:
version: 2
build_test:
jobs:
- test
27 changes: 0 additions & 27 deletions .codeclimate.yml

This file was deleted.

64 changes: 52 additions & 12 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,25 +1,65 @@
{
"parser": "babel-eslint",
"extends": "airbnb",
"extends": "airbnb-base",
"env": {
"browser": true,
"node": true,
"es6": true,
"jest/globals": true
},
"plugins": [
"react",
"jest",
"jsx-a11y",
"import"
],
"globals": {
"graphql": true
},
"rules": {
"react/jsx-filename-extension": [0],
"react/prefer-stateless-function": [0],
"react/prop-types": [0],
"import/no-extraneous-dependencies": [0],
"comma-dangle": ["error", "never"],
"jsx-a11y/anchor-is-valid": [0],
"prefer-destructuring": [0],
"object-curly-newline": ["error", { "multiline": true, "minProperties": 5 }],
"arrow-body-style": ["error", "as-needed", { "requireReturnForObjectLiteral": true }],
"import/extensions": [0],
"no-console": "off"
"comma-dangle": 0,
"import/imports-first": 0,
"global-require": 0,
"class-methods-use-this": 0,
"arrow-body-style": [
2,
"as-needed"
],
"arrow-parens": [
"error",
"always"
],
"import/no-extraneous-dependencies": [
"error",
{
"devDependencies": true
}
],
"no-debugger": 0,
"dot-notation": 0,
"no-console": 0,
"new-cap": 0,
"strict": 0,
"no-param-reassign": [
"error",
{
"props": false
}
],
"no-underscore-dangle": 0,
"no-use-before-define": 0,
"eol-last": 0,
"no-shadow": 0,
"quotes": [
2,
"single"
],
"jsx-quotes": [
0,
"prefer-single"
],
"react/jsx-no-undef": 1,
"react/jsx-uses-react": 1,
"react/jsx-uses-vars": 1
}
}
8 changes: 5 additions & 3 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
*.jsx linguist-language=JavaScript
public linguist-vendored
src/assets/fonts linguist-vendored
/.github export-ignore
/.gitattributes export-ignore
/.editorconfig export-ignore
/.travis.yml export-ignore
**/*.js.snap export-ignore
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,4 @@ npm-debug.log
.eslintcache
.gatsby-context.js
.idea
gatsby-starter-lumen.iml
gatsby-starter-lumen.iml
3 changes: 0 additions & 3 deletions .prettierignore

This file was deleted.

5 changes: 0 additions & 5 deletions .prettierrc

This file was deleted.

25 changes: 25 additions & 0 deletions .stylelintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
{
"extends": "stylelint-config-recommended-scss",
"rules": {
"color-named": "never",
"font-family-name-quotes": "always-where-required",
"font-weight-notation": "named-where-possible",
"function-url-no-scheme-relative": true,
"function-url-quotes": "always",
"string-quotes": "single",
"value-keyword-case": "lower",
"unit-blacklist": [],
"max-empty-lines": 2,
"no-descending-specificity": true,
"no-duplicate-selectors": true,
"font-family-no-missing-generic-family-keyword": null,
"property-no-unknown": [true, {
ignoreProperties: ["/^lost-/"]
}]
},
"ignoreFiles": [
"node_modules/*",
"src/assets/**"
],
"defaultSeverity": "error"
}
37 changes: 37 additions & 0 deletions config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
'use strict';

module.exports = {
url: 'https://lumen.netlify.com',
title: 'Blog by John Doe',
subtitle: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
copyright: '© All rights reserved.',
disqusShortname: '',
postsPerPage: 1,
googleAnalyticsId: 'UA-73379983-2',
menu: [
{
label: 'Articles',
path: '/'
},
{
label: 'About me',
path: '/about/'
},
{
label: 'Contact me',
path: '/contact/'
}
],
author: {
name: 'John Doe',
bio: 'Pellentesque odio nisi, euismod in, pharetra a, ultricies in, diam. Sed arcu.',
contacts: {
email: '#',
telegram: '#',
twitter: '#',
github: '#',
rss: '#',
vkontakte: '#'
}
}
};
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
5 changes: 5 additions & 0 deletions gatsby-browser.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
'use strict';

require('./src/assets/scss/init.scss');

exports.onClientEntry = () => {};
Loading

0 comments on commit 8b92891

Please sign in to comment.