Skip to content

Commit

Permalink
Merge pull request #55 from kremalicious/gatsby
Browse files Browse the repository at this point in the history
Migrate to Gatsby
  • Loading branch information
kremalicious authored Sep 27, 2018
2 parents e634199 + 8d9fe8d commit 135ec51
Show file tree
Hide file tree
Showing 942 changed files with 8,468 additions and 8,009 deletions.
3 changes: 0 additions & 3 deletions .babelrc

This file was deleted.

5 changes: 5 additions & 0 deletions .codeclimate.yml
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
7 changes: 4 additions & 3 deletions .editorconfig
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
27 changes: 27 additions & 0 deletions .eslintrc
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"
}
}
8 changes: 4 additions & 4 deletions .gitignore
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
8 changes: 8 additions & 0 deletions .markdownlint.json
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
}
5 changes: 5 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
node_modules/
.cache/
static/
public/
content/
5 changes: 5 additions & 0 deletions .prettierrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"semi": false,
"singleQuote": true,
"trailingComma": "none"
}
13 changes: 13 additions & 0 deletions .stylelintrc
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
}
}
44 changes: 15 additions & 29 deletions .travis.yml
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
20 changes: 0 additions & 20 deletions Gemfile

This file was deleted.

2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
MIT License

Copyright (c) 2008-2017 Matthias Kretschmann
Copyright (c) 2008-2018 Matthias Kretschmann

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

Expand Down
4 changes: 1 addition & 3 deletions LICENSE-content
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/.
5 changes: 2 additions & 3 deletions LICENSE-photos
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.
73 changes: 24 additions & 49 deletions README.md
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)
93 changes: 0 additions & 93 deletions Rakefile

This file was deleted.

Loading

0 comments on commit 135ec51

Please sign in to comment.