2022-06-16 21:37:20 +00:00
|
|
|
{
|
|
|
|
"name": "vscode-squiggle",
|
|
|
|
"displayName": "Squiggle",
|
|
|
|
"description": "Squiggle language support",
|
2022-06-18 18:39:23 +00:00
|
|
|
"license": "MIT",
|
2022-10-02 11:30:17 +00:00
|
|
|
"version": "0.5.0",
|
2022-06-18 20:56:05 +00:00
|
|
|
"publisher": "QURI",
|
2022-06-18 18:39:23 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2022-08-22 16:08:51 +00:00
|
|
|
"url": "https://github.com/quantified-uncertainty/squiggle.git"
|
2022-06-18 18:39:23 +00:00
|
|
|
},
|
2022-06-18 20:56:05 +00:00
|
|
|
"icon": "media/vendor/icon.png",
|
2022-06-16 21:37:20 +00:00
|
|
|
"engines": {
|
2022-09-06 21:24:08 +00:00
|
|
|
"vscode": "^1.70.0"
|
2022-06-16 21:37:20 +00:00
|
|
|
},
|
|
|
|
"categories": [
|
2022-06-18 20:56:05 +00:00
|
|
|
"Programming Languages",
|
|
|
|
"Visualization"
|
2022-06-16 21:37:20 +00:00
|
|
|
],
|
|
|
|
"activationEvents": [
|
2022-06-21 22:00:43 +00:00
|
|
|
"onLanguage:squiggle",
|
2022-06-20 14:38:45 +00:00
|
|
|
"onCustomEditor:squiggle.wysiwyg",
|
|
|
|
"onCommand:squiggle.preview"
|
2022-06-16 21:37:20 +00:00
|
|
|
],
|
2022-10-08 11:58:54 +00:00
|
|
|
"main": "./dist/src/client/extension.js",
|
2022-06-16 21:37:20 +00:00
|
|
|
"contributes": {
|
2022-06-20 14:38:45 +00:00
|
|
|
"languages": [
|
|
|
|
{
|
|
|
|
"id": "squiggle",
|
|
|
|
"extensions": [
|
|
|
|
".squiggle"
|
|
|
|
],
|
|
|
|
"aliases": [
|
|
|
|
"Squiggle"
|
2022-06-20 21:26:16 +00:00
|
|
|
],
|
|
|
|
"configuration": "./language-configuration.json"
|
2022-06-20 21:46:12 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "squiggleU",
|
|
|
|
"extensions": [
|
|
|
|
".squiggleU"
|
|
|
|
],
|
|
|
|
"aliases": [
|
|
|
|
"SquiggleU"
|
|
|
|
],
|
|
|
|
"configuration": "./language-configuration.json"
|
2022-06-20 14:38:45 +00:00
|
|
|
}
|
|
|
|
],
|
2022-06-20 20:33:31 +00:00
|
|
|
"grammars": [
|
|
|
|
{
|
|
|
|
"language": "squiggle",
|
|
|
|
"scopeName": "source.squiggle",
|
2022-06-20 21:46:12 +00:00
|
|
|
"path": "./syntaxes/squiggle.tmLanguage.json"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"language": "squiggleU",
|
|
|
|
"scopeName": "source.squiggle",
|
2022-06-20 20:33:31 +00:00
|
|
|
"path": "./syntaxes/squiggle.tmLanguage.json"
|
|
|
|
}
|
|
|
|
],
|
2022-06-16 21:37:20 +00:00
|
|
|
"customEditors": [
|
|
|
|
{
|
|
|
|
"viewType": "squiggle.wysiwyg",
|
|
|
|
"displayName": "Squiggle WYSIWYG",
|
|
|
|
"selector": [
|
|
|
|
{
|
|
|
|
"filenamePattern": "*.squiggle"
|
|
|
|
}
|
|
|
|
],
|
2022-06-20 14:38:45 +00:00
|
|
|
"priority": "option"
|
2022-06-16 21:37:20 +00:00
|
|
|
}
|
|
|
|
],
|
2022-06-20 14:38:45 +00:00
|
|
|
"commands": [
|
|
|
|
{
|
|
|
|
"command": "squiggle.preview",
|
|
|
|
"title": "Open Preview",
|
|
|
|
"category": "Squiggle",
|
|
|
|
"when": "editorLangId == squiggle",
|
|
|
|
"icon": "$(open-preview)"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"menus": {
|
|
|
|
"editor/title": [
|
|
|
|
{
|
|
|
|
"command": "squiggle.preview",
|
|
|
|
"when": "editorLangId == squiggle",
|
|
|
|
"group": "navigation"
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"commandPalette": [
|
|
|
|
{
|
|
|
|
"command": "squiggle.preview",
|
|
|
|
"when": "editorLangId == squiggle"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"keybindings": [
|
|
|
|
{
|
|
|
|
"command": "squiggle.preview",
|
|
|
|
"key": "ctrl+k v",
|
|
|
|
"mac": "cmd+k v",
|
|
|
|
"when": "editorLangId == squiggle"
|
|
|
|
}
|
2022-06-20 15:06:30 +00:00
|
|
|
],
|
|
|
|
"configuration": {
|
|
|
|
"title": "Squiggle",
|
|
|
|
"properties": {
|
|
|
|
"squiggle.playground.showSummary": {
|
|
|
|
"type": "boolean",
|
|
|
|
"default": false,
|
|
|
|
"description": "Whether to show the summary table in the playground"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2022-06-16 21:37:20 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2022-10-08 11:58:54 +00:00
|
|
|
"vscode:prepublish": "yarn run lint && yarn run compile",
|
2022-06-20 20:33:31 +00:00
|
|
|
"compile:grammar": "js-yaml syntaxes/squiggle.tmLanguage.yaml >syntaxes/squiggle.tmLanguage.json",
|
2022-07-29 19:12:13 +00:00
|
|
|
"compile:vendor": "(cd ../squiggle-lang && yarn run build) && (cd ../components && yarn run bundle && yarn run build:css) && mkdir -p media/vendor && cp ../components/dist/bundle.js media/vendor/components.js && cp ../components/dist/main.css media/vendor/components.css && cp ../../node_modules/react/umd/react.production.min.js media/vendor/react.js && cp ../../node_modules/react-dom/umd/react-dom.production.min.js media/vendor/react-dom.js && cp ../website/static/img/squiggle-logo.png media/vendor/icon.png",
|
2022-10-08 11:58:54 +00:00
|
|
|
"compile:bundle": "esbuild ./src/client/extension.ts ./src/server/server.ts --format=cjs --platform=node --sourcemap --minify --bundle --external:vscode --outdir=./dist",
|
|
|
|
"compile": "yarn run compile:vendor && yarn run compile:grammar && yarn run compile:bundle",
|
|
|
|
"watch": "yarn run compile:bundle --watch",
|
2022-06-16 21:37:20 +00:00
|
|
|
"pretest": "yarn run compile && yarn run lint",
|
2022-10-08 11:58:54 +00:00
|
|
|
"lint": "tsc -noEmit && prettier --check .",
|
2022-08-29 13:48:14 +00:00
|
|
|
"format": "prettier --write .",
|
2022-10-08 11:58:54 +00:00
|
|
|
"package": "vsce package --yarn"
|
2022-06-16 21:37:20 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-09-05 16:46:36 +00:00
|
|
|
"@types/glob": "^8.0.0",
|
2022-06-20 16:16:09 +00:00
|
|
|
"@types/node": "18.x",
|
2022-09-06 21:24:08 +00:00
|
|
|
"@types/vscode": "^1.70.0",
|
2022-10-08 11:58:54 +00:00
|
|
|
"esbuild": "^0.15.10",
|
2022-06-16 21:37:20 +00:00
|
|
|
"glob": "^8.0.3",
|
2022-06-20 21:43:50 +00:00
|
|
|
"js-yaml": "^4.1.0",
|
2022-10-03 14:38:15 +00:00
|
|
|
"typescript": "^4.8.4",
|
2022-10-08 11:58:54 +00:00
|
|
|
"vsce": "^2.11.0"
|
2022-06-21 22:00:43 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2022-07-18 16:25:40 +00:00
|
|
|
"vscode-languageclient": "^8.0.2",
|
2022-07-18 14:32:03 +00:00
|
|
|
"vscode-languageserver": "^8.0.2",
|
2022-09-05 16:46:15 +00:00
|
|
|
"vscode-languageserver-textdocument": "^1.0.7",
|
2022-06-21 22:00:43 +00:00
|
|
|
"@quri/squiggle-lang": "^0.2.11"
|
2022-06-16 21:37:20 +00:00
|
|
|
}
|
2022-08-29 13:48:14 +00:00
|
|
|
}
|