{ "name": "vscode-front-matter", "displayName": "Front Matter", "description": "An essential Visual Studio Code extension when you want to manage the markdown pages of your static site like: Hugo, Jekyll, Hexo, NextJs, Gatsby, and many more...", "icon": "assets/frontmatter-128x128.png", "version": "2.5.1", "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", "onCommand:frontMatter.init", "onCommand:frontMatter.collapseSections", "onCommand:frontMatter.preview", "onCommand:frontMatter.dashboard", "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.content.autoUpdateDate": { "type": "boolean", "default": false, "description": "Specify if you want to automatically update the modified date of your article/page." }, "frontMatter.content.fmHighlight": { "type": "boolean", "default": true, "description": "Specify if you want to highlight the Front Matter in the Markdown file." }, "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." }, "frontMatter.content.publicFolder": { "type": "string", "default": "", "markdownDescription": "Specify the folder name where all your assets are located. For instance in Hugo this is the `static` folder." }, "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.dashboard.openOnStart": { "type": "boolean", "default": null, "description": "Specify if you want to open the dashboard when you start VS Code." }, "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.preview.host": { "type": "string", "default": "", "markdownDescription": "Specify the host URL (example: http://localhost:1313) to be used when opening the preview." }, "frontMatter.preview.pathName": { "type": "string", "default": "", "markdownDescription": "Specify the path you want to add after the host and before your slug. This can be used for instance to include the year/month like: `yyyy/MM`. The date will be generated based on the article its date field value." }, "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.alignFilename": { "type": "boolean", "default": false, "markdownDescription": "Align the filename with the new slug when it gets generated." }, "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." } } }, "commands": [ { "command": "frontMatter.insertTags", "title": "Insert tags", "category": "Front matter" }, { "command": "frontMatter.insertCategories", "title": "Insert categories", "category": "Front matter" }, { "command": "frontMatter.createTag", "title": "Create tag", "category": "Front matter" }, { "command": "frontMatter.createCategory", "title": "Create category", "category": "Front matter" }, { "command": "frontMatter.exportTaxonomy", "title": "Export all tags & categories to your settings", "category": "Front matter" }, { "command": "frontMatter.remap", "title": "Remap or remove tag/category in all articles", "category": "Front matter" }, { "command": "frontMatter.setDate", "title": "Set current date", "category": "Front matter" }, { "command": "frontMatter.setLastModifiedDate", "title": "Set lastmod date", "category": "Front matter" }, { "command": "frontMatter.generateSlug", "title": "Generate slug based on article title", "category": "Front matter" }, { "command": "frontMatter.createFromTemplate", "title": "New article from template", "category": "Front matter" }, { "command": "frontMatter.registerFolder", "title": "Register folder", "category": "Front matter" }, { "command": "frontMatter.unregisterFolder", "title": "Unregister folder", "category": "Front matter" }, { "command": "frontMatter.createContent", "title": "New article from template", "category": "Front matter" }, { "command": "frontMatter.init", "title": "Initialize project", "category": "Front matter" }, { "command": "frontMatter.createTemplate", "title": "Create a template from current file", "category": "Front matter" }, { "command": "frontMatter.collapseSections", "title": "Collapse sections", "category": "Front matter", "icon": { "light": "assets/icons/close-light.svg", "dark": "assets/icons/close-dark.svg" } }, { "command": "frontMatter.preview", "title": "Preview article", "category": "Front matter" }, { "command": "frontMatter.dashboard", "title": "Open pages dashboard", "category": "Front matter" } ], "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" } ], "commandPalette": [ { "command": "frontMatter.init", "when": "frontMatterCanInit" }, { "command": "frontMatter.createTemplate", "when": "!frontMatterCanInit" }, { "command": "frontMatter.preview", "when": "frontMatterCanOpenPreview" }, { "command": "frontMatter.collapseSections", "when": "false" } ], "view/title": [ { "command": "frontMatter.collapseSections", "group": "navigation" } ] }, "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.6.2", "@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", "autoprefixer": "^10.3.2", "css-loader": "5.2.7", "date-fns": "2.23.0", "downshift": "6.0.6", "fuse.js": "6.4.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", "postcss": "^8.3.6", "postcss-loader": "4.3.0", "react": "17.0.1", "react-dom": "17.0.1", "style-loader": "2.0.0", "tailwindcss": "^2.2.7", "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": { "@headlessui/react": "1.4.0", "@heroicons/react": "1.0.4", "lodash.uniqby": "4.7.0" } }