Tools for easier Gridsome development
https://www.npmjs.com/package/eslint-plugin-gridsome
Vetur is Vue tooling for VS Code.
Vetur works perfect with Gridsome.
<page-query>
and <static-query>
Detail is here
settings.json
{
... ,
"vetur.grammar.customBlocks": {
"page-query": "graphql",
"static-query": "graphql"
},
...
}
Vetur: Generate Grammar
Vetur has gridsome-helper-json since version 0.17.0
helper-json can autocomplete tag and attribute.
gridsome-helper-json support <g-image>
, <g-link>
and <Pager>
.
Gridsome can use Webpack's alias.
Vetur provide path mapping.
jsconfig.json
.{
"include": ["./src/**/*"],
"compilerOptions": {
"baseUrl": ".",
"paths": {
"@/*": ["src/*"]
}
}
}
.vue
where import syntax.import VueFile from "@/path/to/VueFile.vue";