mirror of
https://github.com/estruyf/vscode-front-matter.git
synced 2026-03-28 17:42:40 +01:00
307 lines
9.1 KiB
JSON
307 lines
9.1 KiB
JSON
{
|
||
"name": "vscode-front-matter",
|
||
"displayName": "Front Matter",
|
||
"description": "Simplifies working with front matter of your articles. Useful extension when you are using a static site generator like: Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...",
|
||
"icon": "assets/front-matter.png",
|
||
"version": "2.1.0",
|
||
"preview": false,
|
||
"publisher": "eliostruyf",
|
||
"galleryBanner": {
|
||
"color": "#011627",
|
||
"theme": "dark"
|
||
},
|
||
"badges": [
|
||
{
|
||
"description": "version",
|
||
"url": "https://img.shields.io/github/package-json/v/estruyf/vscode-front-matter?color=green&label=vscode-front-matter&style=flat-square",
|
||
"href": "https://github.com/estruyf/vscode-front-matter"
|
||
},
|
||
{
|
||
"description": "Buy me a coffee",
|
||
"url": "https://img.shields.io/badge/Buy%20me%20a%20coffee-€%203-blue?logo=buy-me-a-coffee&style=flat-square",
|
||
"href": "https://www.buymeacoffee.com/zMeFRy9"
|
||
}
|
||
],
|
||
"engines": {
|
||
"vscode": "^1.51.0"
|
||
},
|
||
"categories": [
|
||
"Other"
|
||
],
|
||
"keywords": [
|
||
"Front Matter",
|
||
"Hugo",
|
||
"Jekyll",
|
||
"Gatsby",
|
||
"Hexo",
|
||
"Taxonomy"
|
||
],
|
||
"license": "MIT",
|
||
"repository": {
|
||
"type": "git",
|
||
"url": "https://github.com/estruyf/vscode-front-matter"
|
||
},
|
||
"activationEvents": [
|
||
"*",
|
||
"onCommand:frontMatter.insertTags",
|
||
"onCommand:frontMatter.insertCategories",
|
||
"onCommand:frontMatter.createTag",
|
||
"onCommand:frontMatter.createCategory",
|
||
"onCommand:frontMatter.exportTaxonomy",
|
||
"onCommand:frontMatter.remap",
|
||
"onCommand:frontMatter.setDate",
|
||
"onCommand:frontMatter.setLastModifiedDate",
|
||
"onCommand:frontMatter.generateSlug",
|
||
"onCommand:frontMatter.createFromTemplate",
|
||
"onCommand:frontMatter.registerFolder",
|
||
"onCommand:frontMatter.unregisterFolder",
|
||
"onCommand:frontMatter.createContent",
|
||
"onView:frontMatter.explorer"
|
||
],
|
||
"main": "./dist/extension",
|
||
"contributes": {
|
||
"viewsContainers": {
|
||
"activitybar": [
|
||
{
|
||
"id": "frontmatter-explorer",
|
||
"title": "FrontMatter",
|
||
"icon": "assets/frontmatter.svg"
|
||
}
|
||
]
|
||
},
|
||
"views": {
|
||
"frontmatter-explorer": [
|
||
{
|
||
"id": "frontMatter.explorer",
|
||
"name": "FrontMatter",
|
||
"icon": "assets/frontmatter.svg",
|
||
"contextualTitle": "FrontMatter",
|
||
"type": "webview"
|
||
}
|
||
]
|
||
},
|
||
"configuration": {
|
||
"title": "Front Matter: Configuration",
|
||
"properties": {
|
||
"frontMatter.taxonomy.dateField": {
|
||
"type": "string",
|
||
"default": "date",
|
||
"description": "Specifies the date field name to use in your Front Matter"
|
||
},
|
||
"frontMatter.taxonomy.modifiedField": {
|
||
"type": "string",
|
||
"default": "lastmod",
|
||
"description": "Specifies the modified date field name to use in your Front Matter"
|
||
},
|
||
"frontMatter.taxonomy.tags": {
|
||
"type": "array",
|
||
"description": "Specifies the tags which can be used in the Front Matter"
|
||
},
|
||
"frontMatter.taxonomy.categories": {
|
||
"type": "array",
|
||
"description": "Specifies the categories which can be used in the Front Matter"
|
||
},
|
||
"frontMatter.taxonomy.dateFormat": {
|
||
"type": "string",
|
||
"markdownDescription": "Specify the date format for your articles. Check [date-fns formating](https://date-fns.org/v2.0.1/docs/format) for more information."
|
||
},
|
||
"frontMatter.taxonomy.slugPrefix": {
|
||
"type": "string",
|
||
"markdownDescription": "Specify a prefix for the slug"
|
||
},
|
||
"frontMatter.taxonomy.slugSuffix": {
|
||
"type": "string",
|
||
"markdownDescription": "Specify a suffix for the slug"
|
||
},
|
||
"frontMatter.taxonomy.indentArrays": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"markdownDescription": "Specify if arrays in front matter are indented. Default: true."
|
||
},
|
||
"frontMatter.taxonomy.noPropertyValueQuotes": {
|
||
"type": "array",
|
||
"default": [],
|
||
"markdownDescription": "Specify the properties from which quotes need to be removed."
|
||
},
|
||
"frontMatter.taxonomy.frontMatterType": {
|
||
"type": "string",
|
||
"default": "YAML",
|
||
"enum": [
|
||
"YAML",
|
||
"TOML"
|
||
],
|
||
"enumDescriptions": [
|
||
"Specifies you want to use YAML markup for the front matter (default)",
|
||
"Specifies you want to use TOML markup for the front matter"
|
||
]
|
||
},
|
||
"frontMatter.taxonomy.seoTitleLength": {
|
||
"type": "number",
|
||
"default": 60,
|
||
"description": "Specifies the optimal title length for SEO (set to `-1` to turn it off)."
|
||
},
|
||
"frontMatter.taxonomy.seoDescriptionLength": {
|
||
"type": "number",
|
||
"default": 160,
|
||
"description": "Specifies the optimal description length for SEO (set to `-1` to turn it off)."
|
||
},
|
||
"frontMatter.taxonomy.seoContentLengh": {
|
||
"type": "number",
|
||
"default": 1760,
|
||
"description": "Specifies the optimal minimum length for your articles. Between 1,760 words – 2,400 is the absolute ideal article length for SEO in 2021. (set to `-1` to turn it off)."
|
||
},
|
||
"frontMatter.taxonomy.seoDescriptionField": {
|
||
"type": "string",
|
||
"default": "description",
|
||
"description": "Specifies the name of the SEO description field for your page. Default is 'description'."
|
||
},
|
||
"frontMatter.templates.folder": {
|
||
"type": "string",
|
||
"default": ".templates",
|
||
"description": "Specify the folder to use for your article templates."
|
||
},
|
||
"frontMatter.templates.prefix": {
|
||
"type": "string",
|
||
"default": "yyyy-MM-dd",
|
||
"description": "Specify the prefix you want to add for your new article filenames."
|
||
},
|
||
"frontMatter.panel.freeform": {
|
||
"type": "boolean",
|
||
"default": true,
|
||
"markdownDescription": "Specifies if you want to allow yourself from entering unknown tags/categories in the tag picker (when enabled, you will have the option to store them afterwards). Default: true."
|
||
},
|
||
"frontMatter.custom.scripts": {
|
||
"type": "array",
|
||
"default": [],
|
||
"markdownDescription": "Specify the path to a Node.js script to execute. The current file path will be provided as an argument."
|
||
},
|
||
"frontMatter.content.folders": {
|
||
"type": "array",
|
||
"default": [],
|
||
"markdownDescription": "This array of folders defines where the extension can easily create new content by running the create article command."
|
||
}
|
||
}
|
||
},
|
||
"commands": [
|
||
{
|
||
"command": "frontMatter.insertTags",
|
||
"title": "Front Matter: Insert tags"
|
||
},
|
||
{
|
||
"command": "frontMatter.insertCategories",
|
||
"title": "Front Matter: Insert categories"
|
||
},
|
||
{
|
||
"command": "frontMatter.createTag",
|
||
"title": "Front Matter: Create tag"
|
||
},
|
||
{
|
||
"command": "frontMatter.createCategory",
|
||
"title": "Front Matter: Create category"
|
||
},
|
||
{
|
||
"command": "frontMatter.exportTaxonomy",
|
||
"title": "Front Matter: Export all tags & categories to your settings"
|
||
},
|
||
{
|
||
"command": "frontMatter.remap",
|
||
"title": "Front Matter: Remap or remove tag/category in all articles"
|
||
},
|
||
{
|
||
"command": "frontMatter.setDate",
|
||
"title": "Front Matter: Set current date"
|
||
},
|
||
{
|
||
"command": "frontMatter.setLastModifiedDate",
|
||
"title": "Front Matter: Set lastmod date"
|
||
},
|
||
{
|
||
"command": "frontMatter.generateSlug",
|
||
"title": "Front Matter: Generate slug based on article title"
|
||
},
|
||
{
|
||
"command": "frontMatter.createFromTemplate",
|
||
"title": "Front Matter: New article from template"
|
||
},
|
||
{
|
||
"command": "frontMatter.registerFolder",
|
||
"title": "Front Matter: Register folder"
|
||
},
|
||
{
|
||
"command": "frontMatter.unregisterFolder",
|
||
"title": "Front Matter: Unregister folder"
|
||
},
|
||
{
|
||
"command": "frontMatter.createContent",
|
||
"title": "Front Matter: Create content"
|
||
}
|
||
],
|
||
"menus": {
|
||
"explorer/context": [
|
||
{
|
||
"command": "frontMatter.createFromTemplate",
|
||
"when": "explorerResourceIsFolder",
|
||
"group": "Front Matter@1"
|
||
},
|
||
{
|
||
"command": "frontMatter.registerFolder",
|
||
"when": "explorerResourceIsFolder",
|
||
"group": "Front Matter@2"
|
||
},
|
||
{
|
||
"command": "frontMatter.unregisterFolder",
|
||
"when": "explorerResourceIsFolder && resourcePath in frontMatter.registeredFolders",
|
||
"group": "Front Matter@3"
|
||
}
|
||
]
|
||
},
|
||
"grammars": [
|
||
{
|
||
"path": "./syntaxes/hugo.tmLanguage.json",
|
||
"scopeName": "frontmatter.markdown.hugo",
|
||
"injectTo": [
|
||
"text.html.markdown"
|
||
]
|
||
}
|
||
]
|
||
},
|
||
"scripts": {
|
||
"vscode:prepublish": "npm run clean && webpack --mode production",
|
||
"build:ext": "webpack --mode development",
|
||
"dev:ext": "webpack --mode development --watch",
|
||
"test-compile": "tsc -p ./",
|
||
"clean": "rm -rf dist"
|
||
},
|
||
"devDependencies": {
|
||
"@bendera/vscode-webview-elements": "0.5.0",
|
||
"@iarna/toml": "2.2.3",
|
||
"@types/glob": "7.1.3",
|
||
"@types/js-yaml": "3.12.1",
|
||
"@types/lodash.uniqby": "4.7.6",
|
||
"@types/mocha": "^5.2.6",
|
||
"@types/node": "10.17.48",
|
||
"@types/react": "17.0.0",
|
||
"@types/react-dom": "17.0.0",
|
||
"@types/vscode": "1.51.0",
|
||
"@vscode/codicons": "0.0.20",
|
||
"date-fns": "2.0.1",
|
||
"downshift": "6.0.6",
|
||
"glob": "7.1.6",
|
||
"gray-matter": "4.0.2",
|
||
"html-loader": "1.3.2",
|
||
"html-webpack-plugin": "4.5.0",
|
||
"mdast-util-from-markdown": "1.0.0",
|
||
"react": "17.0.1",
|
||
"react-dom": "17.0.1",
|
||
"ts-loader": "8.0.3",
|
||
"tslint": "6.1.3",
|
||
"typescript": "4.0.2",
|
||
"wc-react": "github:estruyf/wc-react",
|
||
"webpack": "4.44.2",
|
||
"webpack-cli": "3.3.12"
|
||
},
|
||
"dependencies": {
|
||
"lodash.uniqby": "4.7.0"
|
||
}
|
||
}
|