282 lines
No EOL
8.7 KiB
JSON
282 lines
No EOL
8.7 KiB
JSON
{
|
|
"name": "gram-lang",
|
|
"displayName": "Gram - Recipe Language",
|
|
"description": "Syntax highlighting and language intelligence for Gram recipe files",
|
|
"version": "1.5.0",
|
|
"private": true,
|
|
"qna": false,
|
|
"publisher": "gram-lang",
|
|
"license": "GPL-3.0",
|
|
"author": "gram-lang",
|
|
"main": "./dist/extension.cjs",
|
|
"icon": "media/icon.png",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://git.gram-lang.org/gram-lang/gram.git",
|
|
"directory": "packages/vscode-extension"
|
|
},
|
|
"bugs": {
|
|
"url": "https://git.gram-lang.org/gram-lang/gram/issues"
|
|
},
|
|
"homepage": "https://gram-lang.org/",
|
|
"engines": {
|
|
"vscode": "^1.75.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages"
|
|
],
|
|
"keywords": [
|
|
"gram",
|
|
"recipe",
|
|
"cooking",
|
|
"language server",
|
|
"syntax highlighting"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "gram.showView",
|
|
"title": "Gram: Show View...",
|
|
"icon": "$(layout-panel)"
|
|
},
|
|
{
|
|
"command": "gram.showPreview",
|
|
"title": "Gram: Live Preview",
|
|
"icon": "$(open-preview)"
|
|
},
|
|
{
|
|
"command": "gram.showNutrition",
|
|
"title": "Gram: Macros",
|
|
"icon": "$(symbol-numeric)"
|
|
},
|
|
{
|
|
"command": "gram.showRunSheet",
|
|
"title": "Gram: Run Sheet",
|
|
"icon": "$(checklist)"
|
|
},
|
|
{
|
|
"command": "gram.showGantt",
|
|
"title": "Gram: Gantt Chart (deprecated, opens the run sheet)",
|
|
"icon": "$(graph)"
|
|
}
|
|
],
|
|
"menus": {
|
|
"editor/title": [
|
|
{
|
|
"command": "gram.showPreview",
|
|
"when": "resourceLangId == gram",
|
|
"group": "navigation@1"
|
|
},
|
|
{
|
|
"command": "gram.showRunSheet",
|
|
"when": "resourceLangId == gram",
|
|
"group": "navigation@2"
|
|
}
|
|
]
|
|
},
|
|
"languages": [
|
|
{
|
|
"id": "gram",
|
|
"aliases": [
|
|
"Gram",
|
|
"gram"
|
|
],
|
|
"extensions": [
|
|
".gram"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "gram",
|
|
"scopeName": "source.gram",
|
|
"path": "./dist/syntaxes/gram.tmLanguage.json"
|
|
}
|
|
],
|
|
"snippets": [
|
|
{
|
|
"language": "gram",
|
|
"path": "./snippets/gram.json"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"title": "Gram",
|
|
"properties": {
|
|
"gram.ingredientDatabase.path": {
|
|
"type": "string",
|
|
"default": "",
|
|
"description": "Path to a YAML ingredient database file. Leave empty to auto-detect .gram/ingredients.yaml in the workspace root."
|
|
},
|
|
"gram.miseEnPlace": {
|
|
"type": "string",
|
|
"enum": [
|
|
"perSection",
|
|
"upfront",
|
|
"perDay"
|
|
],
|
|
"enumDescriptions": [
|
|
"Each section's mise en place happens right before that section.",
|
|
"All the mise en place happens at the start of the recipe.",
|
|
"The mise en place of each working day happens at the start of that day (days come from the sections' ~{-Nd} anchors)."
|
|
],
|
|
"default": "perSection",
|
|
"description": "When the mise en place (gathering and preparing ingredients and cookware) is planned. Drives the total time in the preview, the run sheet and the title hint."
|
|
},
|
|
"gram.rests": {
|
|
"type": "string",
|
|
"enum": [
|
|
"shortest",
|
|
"balanced",
|
|
"longest"
|
|
],
|
|
"enumDescriptions": [
|
|
"A rest written as a range (~_{12-24h}) lasts the shortest of it: ready as early as it can be.",
|
|
"A rest written as a range lasts the middle of it.",
|
|
"A rest written as a range lasts the longest of it."
|
|
],
|
|
"default": "shortest",
|
|
"description": "How long a rest written as a range lasts. An exact rest and an active timer (~{20-25min}, planned on its longest figure) are not affected. Drives the total time in the preview, the run sheet and the title hint."
|
|
},
|
|
"gram.comments": {
|
|
"type": "string",
|
|
"enum": [
|
|
"show",
|
|
"hide"
|
|
],
|
|
"enumDescriptions": [
|
|
"The comments of the recipe (// like this) are shown in the preview and the run sheet, discreetly in the run sheet.",
|
|
"The comments of the recipe are left out of the preview and the run sheet."
|
|
],
|
|
"default": "show",
|
|
"description": "Whether the preview and the run sheet show the comments of the recipe: the notes alone on a line and the ones at the end of a line."
|
|
},
|
|
"gram.nutritionBasis": {
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"total",
|
|
"perPortion",
|
|
"per100g"
|
|
],
|
|
"enumDescriptions": [
|
|
"Per 100 g and per portion side by side, with the whole recipe under them.",
|
|
"Always the whole recipe.",
|
|
"Always per portion (the whole recipe when the recipe declares no portions).",
|
|
"Always per 100 g."
|
|
],
|
|
"default": "auto",
|
|
"description": "Which nutrition basis the preview shows. With auto, per 100 g and per portion side by side; any other value pins one."
|
|
},
|
|
"gram.bakersMathOnly": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Show only the baker's percentages in the preview, without the weights."
|
|
},
|
|
"gram.stepQuantities": {
|
|
"type": "string",
|
|
"enum": [
|
|
"show",
|
|
"hide"
|
|
],
|
|
"enumDescriptions": [
|
|
"The quantity of each ingredient is written in the text of the steps, after its name.",
|
|
"The steps name the ingredients only; their quantities stay in the ingredient lists and in the tooltip."
|
|
],
|
|
"default": "show",
|
|
"description": "Whether the preview writes the quantities of the ingredients in the text of the steps."
|
|
},
|
|
"gram.clock": {
|
|
"type": "string",
|
|
"enum": [
|
|
"auto",
|
|
"12h",
|
|
"24h"
|
|
],
|
|
"enumDescriptions": [
|
|
"As your system's region writes the time. Without auto, the `clock` setting of the project's .gram/config.yaml is used when it sets one.",
|
|
"12 hours: 1:00 PM.",
|
|
"24 hours: 13:00."
|
|
],
|
|
"default": "auto",
|
|
"description": "How the run sheet and the serving time suggestions write the times of day."
|
|
},
|
|
"gram.bakersMath": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Compute the baker's percentages, from the ingredient marked with * in the recipe."
|
|
},
|
|
"gram.massStandardization": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Convert the quantities to grams with the ingredient database."
|
|
},
|
|
"gram.yieldCalculation": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Account for the part of an ingredient lost when it is prepared (peel, stones), so the weight to buy differs from the weight used."
|
|
},
|
|
"gram.nutritionEstimation": {
|
|
"type": "boolean",
|
|
"default": true,
|
|
"description": "Estimate the nutrition of the recipe from the ingredient database."
|
|
}
|
|
}
|
|
},
|
|
"semanticTokenScopes": [
|
|
{
|
|
"language": "gram",
|
|
"scopes": {
|
|
"namespace": [
|
|
"entity.name.section.gram"
|
|
],
|
|
"keyword": [
|
|
"keyword.control.gram"
|
|
],
|
|
"parameter": [
|
|
"variable.parameter.ingredient.gram"
|
|
],
|
|
"variable": [
|
|
"variable.other.intermediate.gram"
|
|
],
|
|
"number": [
|
|
"constant.numeric.gram"
|
|
],
|
|
"type": [
|
|
"string.unquoted.unit.gram"
|
|
],
|
|
"string": [
|
|
"string.quoted.gram"
|
|
],
|
|
"operator": [
|
|
"keyword.operator.gram"
|
|
],
|
|
"function": [
|
|
"entity.name.function.action.gram"
|
|
],
|
|
"comment": [
|
|
"comment.line.gram"
|
|
]
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"scripts": {
|
|
"build": "node build.cjs",
|
|
"typecheck": "tsc --noEmit",
|
|
"dev": "node build.cjs --watch",
|
|
"package": "bunx turbo run build --filter=gram-lang && vsce package --no-dependencies"
|
|
},
|
|
"dependencies": {
|
|
"@gram-lang/language-server": "workspace:*",
|
|
"@gram-lang/renderer": "workspace:*",
|
|
"vscode-languageclient": "^10.1.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/node": "^26.1.1",
|
|
"@types/vscode": "^1.75.0",
|
|
"@vscode/vsce": "^4.0.0",
|
|
"esbuild": "^0.28.1"
|
|
},
|
|
"type": "module"
|
|
} |