-
-
Notifications
You must be signed in to change notification settings - Fork 10
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 #55 from kremalicious/gatsby
Migrate to Gatsby
- Loading branch information
Showing
942 changed files
with
8,468 additions
and
8,009 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,5 @@ | ||
version: '2' | ||
checks: | ||
method-lines: | ||
config: | ||
threshold: 55 # Gatsby's StaticQuery makes render functions pretty long |
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,13 +1,14 @@ | ||
|
||
# EditorConfig is awesome: http://EditorConfig.org | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 4 | ||
indent_size = 2 | ||
end_of_line = lf | ||
insert_final_newline = true | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
|
||
[*.json] | ||
indent_size = 2 | ||
[*.scss] | ||
indent_size = 4 |
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,27 @@ | ||
{ | ||
"parser": "babel-eslint", | ||
"extends": [ | ||
"eslint:recommended", | ||
"plugin:react/recommended", | ||
"plugin:prettier/recommended" | ||
], | ||
"plugins": ["react", "graphql", "prettier"], | ||
"parserOptions": { | ||
"sourceType": "module", | ||
"ecmaFeatures": { | ||
"jsx": true, | ||
"modules": true | ||
} | ||
}, | ||
"env": { | ||
"browser": true, | ||
"node": true, | ||
"es6": true | ||
}, | ||
"rules": { | ||
"quotes": ["error", "single"], | ||
"semi": ["error", "never"], | ||
"object-curly-spacing": ["error", "always"], | ||
"prettier/prettier": "error" | ||
} | ||
} |
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,8 +1,8 @@ | ||
node_modules | ||
_site | ||
_build | ||
Gemfile.lock | ||
_src/.jekyll-metadata | ||
yarn.lock | ||
.yarnclean | ||
package-lock.json | ||
public | ||
.cache | ||
src/components/svg | ||
plugins/gatsby-redirect-from |
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,8 @@ | ||
{ | ||
"default": true, | ||
"line_length": false, | ||
"no-inline-html": false, | ||
"fenced-code-language": false, | ||
"first-line-h1": false, | ||
"first-heading-h1": false | ||
} |
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,5 @@ | ||
node_modules/ | ||
.cache/ | ||
static/ | ||
public/ | ||
content/ |
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,5 @@ | ||
{ | ||
"semi": false, | ||
"singleQuote": true, | ||
"trailingComma": "none" | ||
} |
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,13 @@ | ||
{ | ||
"extends": [ | ||
"stylelint-config-standard", | ||
"stylelint-config-css-modules", | ||
"./node_modules/prettier-stylelint/config.js" | ||
], | ||
"syntax": "scss", | ||
"rules": { | ||
"indentation": 4, | ||
"number-leading-zero": "never", | ||
"at-rule-no-unknown": null | ||
} | ||
} |
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,37 +1,23 @@ | ||
language: ruby | ||
rvm: | ||
- 2.5 | ||
language: node_js | ||
node_js: node | ||
|
||
cache: | ||
bundler: true | ||
directories: | ||
- $TRAVIS_BUILD_DIR/node_modules | ||
- $TRAVIS_BUILD_DIR/_site/media | ||
- node_modules | ||
- public | ||
|
||
addons: | ||
artifacts: | ||
paths: | ||
- $TRAVIS_BUILD_DIR/_site/media | ||
apt: | ||
update: true | ||
packages: | ||
- libgsl0ldbl | ||
- libgsl0-dev | ||
install: | ||
- npm i | ||
|
||
before_install: | ||
- nvm install 10 | ||
|
||
before_script: "_ci/setup.sh" | ||
script: "_ci/build.sh" | ||
|
||
deploy: | ||
skip_cleanup: true | ||
provider: script | ||
script: "_ci/deploy.sh" | ||
on: | ||
branch: master | ||
script: | ||
- npm test | ||
- npm run build | ||
|
||
after_success: | ||
- pip install --user awscli | ||
- export PATH=$PATH:$HOME/.local/bin | ||
- npm run deploy | ||
|
||
notifications: | ||
email: false | ||
slack: kremalicious:LXLUCjkY5yaZaC9vHl9vIORr | ||
email: false | ||
slack: kremalicious:LXLUCjkY5yaZaC9vHl9vIORr |
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 |
---|---|---|
@@ -1,5 +1,3 @@ | ||
All post content under `_src/_posts` is licensed under a | ||
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International | ||
License. | ||
All post content under `./content/posts` is licensed under a Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License. | ||
|
||
http://creativecommons.org/licenses/by-nc-sa/4.0/. |
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,7 +1,6 @@ | ||
All photos & image assets under `_src/_media`, `_src/assets/img`, and | ||
`assets sheet.psd` are plain ol' copyright. | ||
All photos & image assets under `./content/media`, `./src/images`, and `assets sheet.psd` are plain ol' copyright. | ||
|
||
Copyright (c) 2008–2017 Matthias Kretschmann | ||
Copyright (c) 2008–2018 Matthias Kretschmann | ||
|
||
Don't care if you fork & play with it, but you're not allowed to publish | ||
anything from it as a whole without my written permission. |
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,75 +1,50 @@ | ||
kremalicious3 | ||
================== | ||
# blog | ||
|
||
> [kremalicious.com](http://kremalicious.com) based on [Jekyll](http://jekyllrb.com). Neat. | ||
> 🍭 My blog [kremalicious.com](http://kremalicious.com) built with [Gatsby](http://gatsbyjs.org). Neat. | ||
[![Build Status](https://travis-ci.com/kremalicious/kremalicious3.svg?branch=master)](https://travis-ci.com/kremalicious/kremalicious3) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/kremalicious/kremalicious3.svg)](https://greenkeeper.io/) | ||
[![Build Status](https://travis-ci.com/kremalicious/blog.svg?branch=master)](https://travis-ci.com/kremalicious/blog) | ||
[![Maintainability](https://api.codeclimate.com/v1/badges/4e86c791349cd12368cd/maintainability)](https://codeclimate.com/github/kremalicious/blog/maintainability) | ||
[![Codacy Badge](https://api.codacy.com/project/badge/Grade/22716f4e00d14df8991af76384193953)](https://www.codacy.com/app/kremalicious/blog) | ||
[![Greenkeeper badge](https://badges.greenkeeper.io/kremalicious/blog.svg)](https://greenkeeper.io/) | ||
|
||
|
||
Requirements | ||
------------------ | ||
## Requirements | ||
|
||
You need to have the following tools installed on your development machine before moving on: | ||
|
||
- [node.js](http://nodejs.org/) & [npm](https://npmjs.org/) | ||
- [Ruby](https://www.ruby-lang.org) (for sanity, install with [rvm](https://rvm.io/)) and [Bundler](http://bundler.io/) | ||
|
||
|
||
Content Creation | ||
------------------ | ||
|
||
Some handy rake tasks creating the correct front matter for each content type: | ||
|
||
New Content | Command | ||
----------- | ----------- | ||
Post | `rake post -- Title` | ||
Photo | `rake photo -- Title` | ||
Link | `rake link -- Title` | ||
|
||
|
||
Get up and running | ||
------------------ | ||
|
||
|
||
### Install dependencies | ||
- [Node.js](http://nodejs.org/) | ||
- [npm](https://npmjs.org/) | ||
|
||
Run the following command from the repository's root folder to install all dependencies. | ||
## Development | ||
|
||
```bash | ||
npm install && bundle install | ||
npm i | ||
npm start | ||
``` | ||
|
||
### Development server | ||
|
||
This generates the site with the dev build task `gulp build` and starts a local dev server combined with a livereloading watch task under `http://localhost:1337`. | ||
## Production build | ||
|
||
```bash | ||
gulp | ||
npm run build | ||
``` | ||
|
||
### Production build | ||
|
||
```bash | ||
gulp build --production | ||
``` | ||
## Licenses | ||
|
||
The MIT License (MIT) | ||
|
||
Licenses | ||
------------------ | ||
except for: | ||
|
||
### Posts | ||
|
||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png" /></a><br />All post content under `_src/_posts` is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. | ||
<a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/"> | ||
<img alt="Creative Commons License" style="border-width:0;" src="https://i.creativecommons.org/l/by-nc-sa/4.0/80x15.png" /> | ||
</a> | ||
|
||
All post content under `./content/posts` is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by-nc-sa/4.0/">Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License</a>. | ||
|
||
### Photos & images | ||
|
||
All photos & image assets under `_src/_media`, `_src/assets/img`, and `assets sheet.psd` are plain ol' copyright. | ||
All photos & image assets under `./content/media`, `./src/images`, and `assets sheet.psd` are plain ol' copyright. | ||
|
||
Copyright (c) 2008–2017 Matthias Kretschmann | ||
Copyright (c) 2008–2018 Matthias Kretschmann | ||
|
||
Don't care if you fork & play with it, but you're not allowed to publish anything from it as a whole without my written permission. | ||
|
||
### Everything else | ||
|
||
The MIT License (MIT) |
Oops, something went wrong.