13a54f3e3d
This removes node_modules from dependencies all together fixing long time issue with yarn putting only a subset of dependencies in the extension source tree. It as well makes extension footprint 15x smaller. (down to 2.3Mb) Kinda fixes #1162? It actually un-patches vsce though — it really is not an issue it should be solving :D
145 lines
4.2 KiB
JSON
145 lines
4.2 KiB
JSON
{
|
|
"name": "vscode-squiggle",
|
|
"displayName": "Squiggle",
|
|
"description": "Squiggle language support",
|
|
"license": "MIT",
|
|
"version": "0.5.0",
|
|
"publisher": "QURI",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/quantified-uncertainty/squiggle.git"
|
|
},
|
|
"icon": "media/vendor/icon.png",
|
|
"engines": {
|
|
"vscode": "^1.70.0"
|
|
},
|
|
"categories": [
|
|
"Programming Languages",
|
|
"Visualization"
|
|
],
|
|
"activationEvents": [
|
|
"onLanguage:squiggle",
|
|
"onCustomEditor:squiggle.wysiwyg",
|
|
"onCommand:squiggle.preview"
|
|
],
|
|
"main": "./dist/src/client/extension.js",
|
|
"contributes": {
|
|
"languages": [
|
|
{
|
|
"id": "squiggle",
|
|
"extensions": [
|
|
".squiggle"
|
|
],
|
|
"aliases": [
|
|
"Squiggle"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
},
|
|
{
|
|
"id": "squiggleU",
|
|
"extensions": [
|
|
".squiggleU"
|
|
],
|
|
"aliases": [
|
|
"SquiggleU"
|
|
],
|
|
"configuration": "./language-configuration.json"
|
|
}
|
|
],
|
|
"grammars": [
|
|
{
|
|
"language": "squiggle",
|
|
"scopeName": "source.squiggle",
|
|
"path": "./syntaxes/squiggle.tmLanguage.json"
|
|
},
|
|
{
|
|
"language": "squiggleU",
|
|
"scopeName": "source.squiggle",
|
|
"path": "./syntaxes/squiggle.tmLanguage.json"
|
|
}
|
|
],
|
|
"customEditors": [
|
|
{
|
|
"viewType": "squiggle.wysiwyg",
|
|
"displayName": "Squiggle WYSIWYG",
|
|
"selector": [
|
|
{
|
|
"filenamePattern": "*.squiggle"
|
|
}
|
|
],
|
|
"priority": "option"
|
|
}
|
|
],
|
|
"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"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"title": "Squiggle",
|
|
"properties": {
|
|
"squiggle.playground.showSummary": {
|
|
"type": "boolean",
|
|
"default": false,
|
|
"description": "Whether to show the summary table in the playground"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"vscode:prepublish": "yarn run lint && yarn run compile",
|
|
"compile:grammar": "js-yaml syntaxes/squiggle.tmLanguage.yaml >syntaxes/squiggle.tmLanguage.json",
|
|
"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",
|
|
"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",
|
|
"pretest": "yarn run compile && yarn run lint",
|
|
"lint": "tsc -noEmit && prettier --check .",
|
|
"format": "prettier --write .",
|
|
"package": "vsce package --yarn"
|
|
},
|
|
"devDependencies": {
|
|
"@types/glob": "^8.0.0",
|
|
"@types/node": "18.x",
|
|
"@types/vscode": "^1.70.0",
|
|
"esbuild": "^0.15.10",
|
|
"glob": "^8.0.3",
|
|
"js-yaml": "^4.1.0",
|
|
"typescript": "^4.8.4",
|
|
"vsce": "^2.11.0"
|
|
},
|
|
"dependencies": {
|
|
"vscode-languageclient": "^8.0.2",
|
|
"vscode-languageserver": "^8.0.2",
|
|
"vscode-languageserver-textdocument": "^1.0.7",
|
|
"@quri/squiggle-lang": "^0.2.11"
|
|
}
|
|
}
|