1
0
mirror of https://github.com/kremalicious/portfolio.git synced 2024-12-22 17:23:22 +01:00

package updates

This commit is contained in:
Matthias Kretschmann 2018-04-27 21:19:19 +02:00
parent b3c266f821
commit 9d668b99cb
Signed by: m
GPG Key ID: 606EEEF3C479A91F
2 changed files with 16 additions and 15 deletions

View File

@ -1,5 +1,19 @@
const path = require('path')
// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js
exports.modifyWebpackConfig = ({ config, stage }) => {
switch (stage) {
case 'develop':
config.preLoader('eslint-loader', {
test: /\.(js|jsx)$/,
exclude: /node_modules/,
})
break
}
return config
}
exports.createPages = ({ boundActionCreators, graphql }) => {
const { createPage } = boundActionCreators
@ -59,17 +73,3 @@ exports.createPages = ({ boundActionCreators, graphql }) => {
}))
})
}
// https://github.com/saschajullmann/gatsby-starter-gatsbythemes/blob/master/gatsby-node.js
exports.modifyWebpackConfig = ({ config, stage }) => {
switch (stage) {
case 'develop':
config.preLoader('eslint-loader', {
test: /\.(js|jsx)$/,
exclude: /node_modules/,
})
break
}
return config
}

View File

@ -13,7 +13,7 @@
"deploy": "./deploy.sh"
},
"dependencies": {
"gatsby": "^1.9.254",
"gatsby": "^1.9.255",
"gatsby-link": "^1.6.41",
"gatsby-plugin-google-analytics": "^1.0.31",
"gatsby-plugin-react-helmet": "^2.0.11",
@ -30,6 +30,7 @@
"devDependencies": {
"babel-eslint": "^8.2.3",
"eslint": "^4.19.1",
"eslint-loader": "^2.0.0",
"eslint-plugin-compat": "^2.2.0",
"eslint-plugin-graphql": "^2.1.0",
"eslint-plugin-prettier": "^2.6.0",