mirror of
https://github.com/Keycapsss/awesome-mechanical-keyboard.git
synced 2024-12-01 03:46:44 +03:00
build: fix build error
- update required node version to 16 - update all npm packages to latest - fix quotation style in gridsome.config.js
This commit is contained in:
parent
5fdcd815c0
commit
46e26aa978
@ -1 +1 @@
|
|||||||
14
|
16
|
@ -5,78 +5,75 @@
|
|||||||
// To restart press CTRL + C in terminal and run `gridsome develop`
|
// To restart press CTRL + C in terminal and run `gridsome develop`
|
||||||
|
|
||||||
module.exports = {
|
module.exports = {
|
||||||
siteName: 'Keebfol.io',
|
siteName: "Keebfol.io",
|
||||||
siteDescription: 'Curated list of mechanical keyboard resources.',
|
siteDescription: "Curated list of mechanical keyboard resources.",
|
||||||
siteUrl: 'https://keebfol.io',
|
siteUrl: "https://keebfol.io",
|
||||||
chainWebpack(config) {
|
chainWebpack(config) {
|
||||||
config.mode('development')
|
config.mode("development");
|
||||||
const svgRule = config.module.rule('svg')
|
const svgRule = config.module.rule("svg");
|
||||||
svgRule.uses.clear()
|
svgRule.uses.clear();
|
||||||
svgRule
|
svgRule.use("vue-svg-loader").loader("vue-svg-loader");
|
||||||
.use('vue-svg-loader')
|
|
||||||
.loader('vue-svg-loader')
|
|
||||||
},
|
},
|
||||||
plugins: [{
|
plugins: [
|
||||||
use: 'gridsome-plugin-tailwindcss',
|
{
|
||||||
|
use: "gridsome-plugin-tailwindcss",
|
||||||
options: {
|
options: {
|
||||||
// tailwindConfig: './some/file/js',
|
tailwindConfig: "./tailwind.config.js",
|
||||||
// purgeConfig: {},
|
presetEnvConfig: {},
|
||||||
// presetEnvConfig: {},
|
shouldImport: false,
|
||||||
shouldPurge: false, // https://www.purgecss.com/with-postcss
|
shouldTimeTravel: false,
|
||||||
shouldImport: true, // https://github.com/postcss/postcss-import
|
},
|
||||||
shouldTimeTravel: true, // https://github.com/csstools/postcss-preset-env
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
use: '@gridsome/source-filesystem',
|
use: "@gridsome/source-filesystem",
|
||||||
options: {
|
options: {
|
||||||
index: ['README'],
|
index: ["README"],
|
||||||
path: '**/*.md',
|
path: "**/*.md",
|
||||||
baseDir: './docs',
|
baseDir: "./docs",
|
||||||
typeName: 'DocPage',
|
typeName: "DocPage",
|
||||||
remark: {
|
remark: {
|
||||||
autolinkHeadings: {
|
autolinkHeadings: {
|
||||||
content: {
|
content: {
|
||||||
type: 'text',
|
type: "text",
|
||||||
value: '#',
|
value: "#",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
use: 'gridsome-plugin-rss',
|
use: "gridsome-plugin-rss",
|
||||||
options: {
|
options: {
|
||||||
contentTypeName: 'CommitMessages',
|
contentTypeName: "CommitMessages",
|
||||||
feedOptions: {
|
feedOptions: {
|
||||||
title: 'Keebfol.io - A Mechanical Keyboard Wiki',
|
title: "Keebfol.io - A Mechanical Keyboard Wiki",
|
||||||
feed_url: 'https://keebfol.io/rss.xml',
|
feed_url: "https://keebfol.io/rss.xml",
|
||||||
site_url: 'https://keebfol.io',
|
site_url: "https://keebfol.io",
|
||||||
},
|
},
|
||||||
feedItemOptions: node => ({
|
feedItemOptions: (node) => ({
|
||||||
guid: node.id,
|
guid: node.id,
|
||||||
date: node.date,
|
date: node.date,
|
||||||
title: node.message,
|
title: node.message,
|
||||||
description: node.body,
|
description: node.body,
|
||||||
author: node.author,
|
author: node.author,
|
||||||
url: 'https://keebfol.io/',
|
url: "https://keebfol.io/",
|
||||||
}),
|
}),
|
||||||
output: {
|
output: {
|
||||||
dir: './static/',
|
dir: "./static/",
|
||||||
name: 'rss.xml',
|
name: "rss.xml",
|
||||||
},
|
},
|
||||||
latest: true,
|
latest: true,
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
use: 'gridsome-plugin-modal',
|
use: "gridsome-plugin-modal",
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
transformers: {
|
transformers: {
|
||||||
remark: {
|
remark: {
|
||||||
externalLinksTarget: '_blank',
|
externalLinksTarget: "_blank",
|
||||||
externalLinksRel: ['nofollow', 'noopener', 'noreferrer'],
|
externalLinksRel: ["nofollow", "noopener", "noreferrer"],
|
||||||
anchorClassName: 'icon icon-link',
|
anchorClassName: "icon icon-link",
|
||||||
}
|
},
|
||||||
}
|
},
|
||||||
}
|
};
|
||||||
|
28804
package-lock.json
generated
28804
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -23,21 +23,19 @@
|
|||||||
"explore": "gridsome explore"
|
"explore": "gridsome explore"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@fortawesome/fontawesome-svg-core": "^1.2.34",
|
"@fortawesome/fontawesome-svg-core": "^1.2.36",
|
||||||
"@fortawesome/free-brands-svg-icons": "^5.15.2",
|
"@fortawesome/free-brands-svg-icons": "^5.15.4",
|
||||||
"@fortawesome/free-regular-svg-icons": "^5.15.2",
|
"@fortawesome/free-regular-svg-icons": "^5.15.4",
|
||||||
"@fortawesome/free-solid-svg-icons": "^5.15.2",
|
"@fortawesome/free-solid-svg-icons": "^5.15.4",
|
||||||
"@fortawesome/vue-fontawesome": "^2.0.2",
|
"@fortawesome/vue-fontawesome": "^2.0.3",
|
||||||
"@tailwindcss/postcss7-compat": "^2.0.2",
|
"@tailwindcss/postcss7-compat": "^2.2.17",
|
||||||
"autoprefixer": "^9.8.6",
|
"autoprefixer": "^10.3.7",
|
||||||
"axios": "^0.21.1",
|
"axios": "^0.23.0",
|
||||||
"gridsome": "^0.7.23",
|
"gridsome": "^0.7.23",
|
||||||
"gridsome-plugin-modal": "^0.1.1",
|
"gridsome-plugin-modal": "^0.1.1",
|
||||||
"gridsome-plugin-tailwindcss": "^3.0.1",
|
"lodash": "^4.17.21",
|
||||||
"lodash": "^4.17.19",
|
"postcss": "^8.3.9",
|
||||||
"postcss": "^7.0.35",
|
"vue-js-modal": "^2.0.1",
|
||||||
"tailwindcss": "npm:@tailwindcss/postcss7-compat@^2.0.2",
|
|
||||||
"vue-js-modal": "^1.3.35",
|
|
||||||
"vuetable-2": "^2.0.0-beta.4"
|
"vuetable-2": "^2.0.0-beta.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -46,10 +44,14 @@
|
|||||||
"@gridsome/transformer-csv": "^0.2.2",
|
"@gridsome/transformer-csv": "^0.2.2",
|
||||||
"@gridsome/transformer-remark": "^0.6.4",
|
"@gridsome/transformer-remark": "^0.6.4",
|
||||||
"@gridsome/transformer-yaml": "^0.2.1",
|
"@gridsome/transformer-yaml": "^0.2.1",
|
||||||
"fs-extra": "^9.1.0",
|
"fs-extra": "^10.0.0",
|
||||||
"graphql-request": "^3.4.0",
|
"graphql-request": "^3.6.0",
|
||||||
"gridsome-plugin-rss": "^1.2.0",
|
"gridsome-plugin-rss": "^1.2.0",
|
||||||
"js-yaml": "^4.0.0",
|
"gridsome-plugin-tailwindcss": "^4.1.1",
|
||||||
|
"js-yaml": "^4.1.0",
|
||||||
|
"postcss-import": "^14.0.2",
|
||||||
|
"postcss-preset-env": "^6.7.0",
|
||||||
|
"tailwindcss": "^2.2.17",
|
||||||
"vue-svg-loader": "^0.16.0"
|
"vue-svg-loader": "^0.16.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user