This repository has been archived by the owner on Nov 10, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3870 from ONRR/dev
Release of gatsby v2
- Loading branch information
Showing
2,791 changed files
with
64,905 additions
and
485,214 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"presets": ["babel-preset-gatsby"], | ||
"plugins": [ | ||
"@babel/plugin-proposal-export-default-from", | ||
"@babel/plugin-proposal-object-rest-spread" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
version: 2 | ||
jobs: | ||
build: | ||
docker: | ||
- image: circleci/node:11.7.0 | ||
steps: | ||
- checkout | ||
- restore_cache: | ||
key: v2-node-modules-{{ checksum "package-lock.json" }} | ||
- run: | ||
name: Install node dependencies | ||
command: npm install | ||
- save_cache: | ||
key: v2-node-modules-{{ checksum "package-lock.json" }} | ||
paths: | ||
- node_modules | ||
- run: | ||
name: Build gatsby | ||
command: npm run build | ||
- run: | ||
name: Run tests | ||
command: npm test | ||
|
||
workflows: | ||
version: 2 | ||
commit: | ||
jobs: | ||
- build |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,10 @@ | ||
js/vendor/*.js | ||
js/**/*.min.js | ||
js/**/*.min.js.map | ||
js/lib/main.js | ||
/src/img | ||
/src/styles | ||
/src/styles/fonts | ||
*.css | ||
*.md | ||
*.scss | ||
*.svg | ||
*.xlsx | ||
*.yml | ||
**/__tests__/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
module.exports = { | ||
extends: ["standard", "plugin:css-modules/recommended"], | ||
plugins: ["standard", "react", "css-modules"], | ||
rules: { | ||
"no-var": "error", // optional, recommended when using es6+ | ||
"no-unused-vars": 1, // recommended | ||
"no-tabs": ["error", { allowIndentationTabs: true }], | ||
"no-mixed-spaces-and-tabs": ["error", "smart-tabs"], | ||
"arrow-spacing": ["error", { before: true, after: true }], // recommended | ||
"brace-style": ["error", "stroustrup"], | ||
"indent": ["error", "tab", { "SwitchCase": 1 }], | ||
|
||
indent: ["error", 2], | ||
"comma-dangle": [ | ||
"error", | ||
{ | ||
objects: "only-multiline", | ||
arrays: "only-multiline", | ||
imports: "never", | ||
exports: "never", | ||
functions: "never", | ||
}, | ||
], | ||
|
||
// options to emulate prettier setup | ||
semi: ["error", "never"], | ||
"max-len": ["warn", { code: 170 }], | ||
"template-curly-spacing": ["error", "always"], | ||
"arrow-parens": ["error", "as-needed"], | ||
|
||
// standard.js | ||
"space-before-function-paren": [ | ||
"error", | ||
{ | ||
named: "always", | ||
anonymous: "always", | ||
asyncArrow: "always", | ||
}, | ||
], | ||
|
||
// standard plugin - options | ||
"standard/object-curly-even-spacing": ["error", "either"], | ||
"standard/array-bracket-even-spacing": ["error", "either"], | ||
"standard/computed-property-even-spacing": ["error", "even"], | ||
"standard/no-callback-literal": ["error", ["cb", "callback"]], | ||
|
||
// react plugin - options | ||
"react/jsx-uses-react": "error", | ||
"react/jsx-uses-vars": "error", | ||
|
||
"import/no-webpack-loader-syntax": "off", | ||
|
||
"css-modules/no-unused-class": 1, | ||
}, | ||
parser: "babel-eslint", | ||
parserOptions: { | ||
ecmaVersion: 8, // optional, recommended 6+ | ||
}, | ||
} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,10 @@ | ||
# Project dependencies | ||
.cache | ||
node_modules | ||
yarn-error.log | ||
yarn.lock | ||
|
||
gatsby-public*.css.map | ||
*.db | ||
*.db-journal | ||
*.log | ||
.*.sw? | ||
# Build directory | ||
/public | ||
.DS_Store | ||
.env | ||
.jekyll-metadata | ||
.sass-cache | ||
patterns | ||
/public/ | ||
_site | ||
node_modules | ||
tmp | ||
yarn* | ||
styleguide | ||
.brackets.json | ||
.clasp.json | ||
.npmrc | ||
/.project | ||
gatsby-public | ||
blog |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
8.9 | ||
11.7.0 |
Oops, something went wrong.