Upgrade to Gatsby 0.12.0

This commit is contained in:
wpioneer 2016-07-30 02:05:32 +03:00
parent 3ea9799f76
commit e8f183226f
6 changed files with 692 additions and 25 deletions

View File

@ -5,6 +5,7 @@ import { config } from 'config'
import SiteNav from '../SiteNav'
import SiteLinks from '../SiteLinks'
import './style.css'
import profilePic from '../../pages/photo.jpg'
class SiteSidebar extends React.Component {
render() {
@ -14,7 +15,7 @@ class SiteSidebar extends React.Component {
let header = (
<header>
<Link style={ { textDecoration: 'none', borderBottom: 'none', outline: 'none'} } to={ prefixLink('/') }>
<img src='./photo.jpg' width='75' height='75' />
<img src={prefixLink(profilePic)} width='75' height='75' />
</Link>
{ isHome ? (
<h1><Link style={ { textDecoration: 'none', borderBottom: 'none', color: 'inherit'} } to={ prefixLink('/') }> { config.siteAuthor } </Link></h1>

View File

@ -9,4 +9,4 @@ siteEmailUrl = "#"
siteRssUrl = "#"
siteVkUrl = "#"
linkPrefix = "/lumen"
linkPrefix = "/gatsby-starter-lumen"

View File

@ -13,5 +13,10 @@ exports.modifyWebpackConfig = function(config, env) {
]
})
config.loader('svg', {
test: /\.(svg)(\?v=[0-9]\.[0-9]\.[0-9])?$/,
loader: 'file-loader',
})
return config
};

View File

@ -15,7 +15,7 @@ module.exports = React.createClass({
const font = <link href='https://fonts.googleapis.com/css?family=Roboto:400,400italic,500,700&subset=latin,cyrillic' rel='stylesheet' type='text/css' />
let css
if (process.env.NODE_ENV === 'production') {
css = <style dangerouslySetInnerHTML={ { __html: require('!raw!postcss!./public/styles.css')} } />
css = <style dangerouslySetInnerHTML={ { __html: require('!raw!./public/styles.css')} } />
}
return (

View File

@ -5,11 +5,14 @@
"main": "n/a",
"scripts": {
"develop": "gatsby develop",
"build": "npm run clean & gatsby build",
"build": "npm run clean & gatsby build & copy",
"clean:public": "rm -rf public",
"clean": "npm run clean:public",
"copy:files": "cp pages/*.{pdf,txt,png,jpg,jpeg,gif} public/",
"copy": "npm run copy:files",
"lint": "./node_modules/.bin/eslint --ext .js,.jsx --ignore-pattern public .",
"test": "echo \"Error: no test specified\" && exit 1"
"test": "echo \"Error: no test specified\" && exit 1",
"deploy": "gatsby build --prefix-links && gh-pages -d public"
},
"keywords": [
"gatsby",
@ -19,34 +22,47 @@
"author": "Alexander Shelepenok <a.shelepenok@gmail.com>",
"license": "MIT",
"dependencies": {
"babel-plugin-add-module-exports": "^0.2.0",
"babel-preset-es2015": "^6.6.0",
"babel-preset-react": "^6.5.0",
"babel-plugin-add-module-exports": "^0.2.1",
"babel-preset-es2015": "^6.9.0",
"babel-preset-react": "^6.11.1",
"babel-preset-stage-0": "^6.5.0",
"babel-preset-stage-1": "^6.5.0",
"classnames": "^2.1.2",
"front-matter": "^2.0.8",
"gatsby": "^0.11.2",
"gatsby": "^0.12.0",
"history": "^2.1.1",
"lodash": "^4.12.0",
"moment": "^2.12.0",
"lodash": "^4.13.1",
"moment": "^2.14.1",
"markdown-it": "^6.0.2",
"react-document-title": "^2.0.1",
"react": "^15.2.1",
"react-document-title": "^2.0.2",
"react-dom": "^15.2.1",
"react-google-analytics": "^0.2.0",
"react-router": "^2.4.0",
"react-router": "^2.6.0",
"safe-access": "^0.1.0",
"underscore.string": "^3.2.3"
},
"devDependencies": {
"autoprefixer": "^6.3.6",
"file-loader": "^0.8.5",
"rucksack-css": "^0.8.5",
"lost": "^6.7.2",
"babel-core": "^6.10.4",
"babel-loader": "^6.2.4",
"babel-preset-react-hmre": "^1.1.1",
"eslint": "^2.9.0",
"css-loader": "^0.23.1",
"eslint": "^2.11.1",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.8.0",
"eslint-plugin-jsx-a11y": "^1.2.0",
"eslint-plugin-react": "^5.1.1"
"eslint-plugin-import": "^1.11.0",
"eslint-plugin-jsx-a11y": "^2.0.1",
"eslint-plugin-react": "^5.2.2",
"gh-pages": "^0.11.0",
"image-webpack-loader": "^2.0.0",
"null-loader": "^0.1.1",
"postcss-loader": "^0.9.1",
"react-transform-catch-errors": "^1.0.2",
"react-transform-hmr": "^1.0.4",
"redbox-react": "^1.2.10",
"style-loader": "^0.13.1",
"webpack": "^1.13.1",
"autoprefixer": "^6.3.7",
"file-loader": "^0.9.0",
"rucksack-css": "^0.8.5",
"lost": "^6.7.2"
}
}

File diff suppressed because it is too large Load Diff