1
0
mirror of https://github.com/kremalicious/blog.git synced 2024-06-30 05:31:56 +02:00

Merge pull request #119 from kremalicious/feature/package-updates

package updates
This commit is contained in:
Matthias Kretschmann 2019-02-03 21:38:46 +01:00 committed by GitHub
commit bd4fe063a9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 38 deletions

View File

@ -27,15 +27,13 @@ exports.createPages = async ({ graphql, actions }) => {
const result = await graphql(`
{
allMarkdownRemark(sort: { fields: [fields___date], order: DESC }) {
allMarkdownRemark {
edges {
node {
fields {
slug
date
}
frontmatter {
type
tags
}
}

View File

@ -24,12 +24,11 @@ exports.createMarkdownFields = (node, createNodeField, getNode) => {
})
// date
let date
// grab date from file path
let date = new Date(slugOriginal.substring(1, 11)).toISOString() // grab date from file path
if (node.frontmatter.date) {
date = `${node.frontmatter.date}`
} else {
date = `${slugOriginal.substring(1, 10)}` // grab date from file path
date = new Date(node.frontmatter.date).toISOString()
}
createNodeField({

View File

@ -33,32 +33,32 @@
"dms2dec": "^1.1.0",
"fast-exif": "^1.0.1",
"fraction.js": "^4.0.12",
"gatsby": "^2.0.89",
"gatsby-image": "^2.0.25",
"gatsby-plugin-catch-links": "^2.0.9",
"gatsby": "^2.0.111",
"gatsby-image": "^2.0.29",
"gatsby-plugin-catch-links": "^2.0.10",
"gatsby-plugin-favicon": "^3.1.5",
"gatsby-plugin-feed": "^2.0.11",
"gatsby-plugin-feed": "^2.0.13",
"gatsby-plugin-lunr": "^1.3.0",
"gatsby-plugin-matomo": "^0.6.0",
"gatsby-plugin-meta-redirect": "^1.1.1",
"gatsby-plugin-offline": "^2.0.21",
"gatsby-plugin-react-helmet": "^3.0.5",
"gatsby-plugin-sass": "^2.0.7",
"gatsby-plugin-sharp": "^2.0.17",
"gatsby-plugin-sitemap": "^2.0.4",
"gatsby-plugin-offline": "^2.0.22",
"gatsby-plugin-react-helmet": "^3.0.6",
"gatsby-plugin-sass": "^2.0.10",
"gatsby-plugin-sharp": "^2.0.20",
"gatsby-plugin-sitemap": "^2.0.5",
"gatsby-plugin-svgr": "^2.0.1",
"gatsby-plugin-webpack-size": "^0.0.3",
"gatsby-redirect-from": "^0.1.1",
"gatsby-remark-autolink-headers": "^2.0.12",
"gatsby-remark-copy-linked-files": "^2.0.8",
"gatsby-remark-autolink-headers": "^2.0.13",
"gatsby-remark-copy-linked-files": "^2.0.9",
"gatsby-remark-highlights": "^1.3.4",
"gatsby-remark-images": "^3.0.1",
"gatsby-remark-smartypants": "^2.0.7",
"gatsby-source-filesystem": "^2.0.13",
"gatsby-source-graphql": "^2.0.8",
"gatsby-transformer-remark": "^2.2.0",
"gatsby-transformer-sharp": "^2.1.10",
"graphql": "^0.13.2",
"gatsby-remark-images": "^3.0.3",
"gatsby-remark-smartypants": "^2.0.8",
"gatsby-source-filesystem": "^2.0.20",
"gatsby-source-graphql": "^2.0.10",
"gatsby-transformer-remark": "^2.2.3",
"gatsby-transformer-sharp": "^2.1.13",
"graphql": "^14.1.1",
"intersection-observer": "^0.5.1",
"js-scrypt": "^0.2.0",
"load-script": "^1.0.0",
@ -67,42 +67,43 @@
"pigeon-maps": "^0.11.10",
"pigeon-marker": "^0.3.4",
"react": "^16.7.0",
"react-blockies": "^1.4.0",
"react-blockies": "^1.4.1",
"react-clipboard.js": "^2.0.2",
"react-dom": "^16.7.0",
"react-helmet": "^5.2.0",
"react-modal": "^3.8.1",
"react-pose": "^4.0.5",
"react-pose": "^4.0.6",
"react-qr-svg": "^2.1.0",
"react-time": "^4.3.0",
"react-transition-group": "^2.5.2",
"react-transition-group": "^2.5.3",
"remark": "^10.0.1",
"remark-react": "^5.0.1",
"slugify": "^1.3.4",
"web3": "^1.0.0-beta.37"
"terser": "3.14.1",
"web3": "^1.0.0-beta.41"
},
"devDependencies": {
"@babel/node": "^7.2.2",
"@babel/preset-env": "^7.2.3",
"@babel/preset-env": "^7.3.1",
"@svgr/webpack": "^4.1.0",
"babel-eslint": "^10.0.1",
"eslint": "^5.12.0",
"eslint-config-prettier": "^3.3.0",
"eslint": "^5.13.0",
"eslint-config-prettier": "^4.0.0",
"eslint-loader": "^2.1.1",
"eslint-plugin-graphql": "^3.0.1",
"eslint-plugin-jsx-a11y": "^6.1.2",
"eslint-plugin-graphql": "^3.0.3",
"eslint-plugin-jsx-a11y": "^6.2.0",
"eslint-plugin-prettier": "^3.0.1",
"eslint-plugin-react": "^7.12.3",
"eslint-plugin-react": "^7.12.4",
"fs-extra": "^7.0.1",
"markdownlint-cli": "^0.13.0",
"npm-run-all": "^4.1.5",
"ora": "^3.0.0",
"prettier": "^1.15.3",
"prettier": "^1.16.4",
"prettier-stylelint": "^0.4.2",
"stylelint": "^9.9.0",
"stylelint": "^9.10.1",
"stylelint-config-css-modules": "^1.3.0",
"stylelint-config-standard": "^18.2.0",
"stylelint-scss": "^3.4.4",
"stylelint-scss": "^3.5.2",
"why-did-you-update": "^1.0.6"
},
"engines": {