Skip to content

Commit

Permalink
up all dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
aandrewww committed Jun 13, 2020
1 parent 70c8264 commit 53c136a
Show file tree
Hide file tree
Showing 34 changed files with 27,122 additions and 19,263 deletions.
78 changes: 19 additions & 59 deletions .eslintrc
@@ -1,71 +1,31 @@
{
"parser": "babel-eslint",
"extends": [
"airbnb"
"scorum",
"scorum/react",
"scorum/prettier",
"scorum/prettier/react"
],
"rules": {
"padding-line-between-statements": [
"error",
{ "blankLine": "always", "prev": "*", "next": "return" },
{ "blankLine": "always", "prev": "block-like", "next": "*" },
{ "blankLine": "always", "prev": "*", "next": "block-like" }
],
"no-multiple-empty-lines": ["error", { "max": 1 }],
"prefer-destructuring": ["error", { "object": true, "array": false }],
"react/destructuring-assignment": 0,
"react/jsx-filename-extension": [1, { "extensions": [".js", ".jsx"] }],
"no-underscore-dangle": 0,
"lines-between-class-members": 0,
"implicit-arrow-linebreak": 0,
"jsx-a11y/label-has-for": 0,
"no-debugger": 1,
"comma-dangle": ["error", "always-multiline"],
"max-len": [
"error",
120,
2,
{
"ignoreUrls": true,
"ignoreComments": false,
"ignoreRegExpLiterals": true,
"ignoreStrings": true,
"ignoreTemplateLiterals": true
}
],
"no-mixed-operators": 0,
"no-confusing-arrow": 0,
"no-param-reassign": [
2,
{
"props": false
}
],
"import/no-extraneous-dependencies": 0,
"react/sort-comp": 0,
"react/jsx-one-expression-per-line": 0,
"react/jsx-props-no-spreading": 0,
"react/jsx-fragments": 0,
"no-array-constructor": 0,
"import/prefer-default-export": 0,
"react/jsx-no-bind": [2, {
"ignoreRefs": true
}]
},
"settings": {
"import/resolver": {
"babel-module": {
"constants": "./src/constants",
"containers": "./src/containers",
"components": "./src/components",
"pages": "./src/pages",
"helpers": "./src/helpers",
"store": "./src/store",
"modules": "./node_modules"
"alias": {
"constants": "./src/constants",
"containers": "./src/containers",
"components": "./src/components",
"pages": "./src/pages",
"helpers": "./src/helpers",
"store": "./src/store",
"modules": "./node_modules"
}
}
}
},
"env": {
"es6": true,
"browser": true
"rules": {
"react/jsx-filename-extension": [0],
"react/jsx-pascal-case": [0]
},
"globals": {
"__PATH_PREFIX__": true
}
}
17 changes: 13 additions & 4 deletions .gitignore
@@ -1,10 +1,9 @@
# Logs
logs

*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*

deployments.log*
# Runtime data
pids
*.pid
Expand Down Expand Up @@ -62,8 +61,18 @@ public
.DS_Store

# Yarn
yarn-error.log
yarn.lock
.pnp/
.pnp.js
# Yarn Integrity file
.yarn-integrity

# Other
reports
.prettierrc
systemjs.config.js
.npmrc
.storybook/
.empt


15 changes: 9 additions & 6 deletions README.md
Expand Up @@ -60,22 +60,25 @@ gatsby new my-site https://github.com/aandrewww/kseniaavdeeva.art
# Installation with `git clone`
git clone git@github.com:aandrewww/kseniaavdeeva.art.git my-site
cd my-site
yarn install
npm install

# To develop
yarn develop
npm run develop

# To build
yarn build
npm run build

# To test SSR (for Lighthouse etc.)
yarn ssr
npm run ssr

# To format JS
yarn format
npm run format

# To generate favicons (included in `build`)
yarn build:favicons
npm run build:favicons

# Up Dependencies
npm run up
```

## Configuration
Expand Down
6 changes: 1 addition & 5 deletions gatsby-browser.js
Expand Up @@ -4,11 +4,7 @@ import wrapPageElementWithTransition from 'helpers/wrapPageElement';

// React Context in Browser
// eslint-disable-next-line react/prop-types
export const wrapRootElement = ({ element }) => (
<AppProvider>
{element}
</AppProvider>
);
export const wrapRootElement = ({ element }) => <AppProvider>{element}</AppProvider>;

// Page Transitions
export const wrapPageElement = wrapPageElementWithTransition;
14 changes: 5 additions & 9 deletions gatsby-node.js
Expand Up @@ -2,6 +2,7 @@
const path = require('path');
const { createFilePath } = require('gatsby-source-filesystem');
const { fmImagesToRelative } = require('gatsby-remark-relative-images');
const { registerLocalFs } = require('netlify-cms-proxy-server/dist/middlewares');

exports.createPages = ({ actions, graphql }) => {
const { createPage } = actions;
Expand All @@ -17,7 +18,6 @@ exports.createPages = ({ actions, graphql }) => {
}
frontmatter {
tags
path
templateKey
}
}
Expand Down Expand Up @@ -105,19 +105,15 @@ exports.onCreateNode = ({ node, actions, getNode }) => {
}
};

exports.onCreateWebpackConfig = ({
actions,
}) => {
exports.onCreateWebpackConfig = ({ actions }) => {
actions.setWebpackConfig({
resolve: {
modules: [path.resolve(__dirname, 'src'), 'node_modules'],
},
});
};

exports.onCreateDevServer = ({ app }) => {
/* eslint-disable-next-line */
const fsMiddlewareAPI = require('netlify-cms-backend-fs/dist/fs');

fsMiddlewareAPI(app);
exports.onCreateDevServer = async ({ app }) => {
// https://github.com/netlify/netlify-cms/pull/3361
await registerLocalFs(app);
};
4 changes: 0 additions & 4 deletions netlify.toml
@@ -1,7 +1,3 @@
[build]
publish = "public"
command = "npm run build"
[build.environment]
YARN_VERSION = "1.17.3"
YARN_FLAGS = "--no-ignore-optional"

0 comments on commit 53c136a

Please sign in to comment.