forked from OriginQ/qurator-vscode
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
162 lines (162 loc) · 4.29 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
{
"name": "qurator-vscode",
"description": "A general purpose quantum programming language.",
"author": "Qurator",
"version": "0.1.4",
"publisher": "Qurator",
"icon": "icon.png",
"categories": [
"Programming Languages",
"Snippets",
"Themes"
],
"engines": {
"vscode": "^1.27.0"
},
"activationEvents": [
"onLanguage:qrunes",
"onCommand:qurator-vscode.runQRunesCode",
"onCommand:qurator-vscode.checkDependencies"
],
"main": "./client/out/extension",
"contributes": {
"configuration": {
"type": "object",
"title": "qurator configuration",
"properties": {
"qrunesLang.maxNumberOfProblems": {
"scope": "resource",
"type": "number",
"default": 100,
"description": "Controls the maximum number of problems produced by the server."
},
"qrunesLang.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the language server."
},
"qurator-vscode.qurator.dependencies": {
"type": "object",
"default": {
"python": "3.6",
"pip": "9.0.0",
"g++": "1.0.0"
},
"description": "Basic Qurator dependencies required"
},
"qurator-vscode.qrunes.packages": {
"type": "object",
"default": {
"pyqpanda": "",
"antlr4-python3-runtime": ""
},
"description": "QRunes and libraries related to run code"
}
}
},
"snippets": [
{
"language": "qrunes",
"path": "./snippets/qrunes-snippets.json"
}
],
"languages": [
{
"id": "qrunes",
"aliases": [
"QRUNES"
],
"extensions": [
".qrunes"
],
"configuration": "./qrunes-configuration.json"
}
],
"themes": [
{
"label": "QRunes Dark",
"uiTheme": "vs-dark",
"path": "./themes/qrunes-dark.json"
},
{
"label": "QRunes Light",
"uiTheme": "vs",
"path": "./themes/qrunes-light.json"
}
],
"grammars": [
{
"language": "qrunes",
"scopeName": "source.qrunes",
"path": "./syntaxes/qrunes-grammars.json"
}
],
"commands": [
{
"command": "qurator-vscode.checkDependencies",
"title": "Check Qurator VSCode Extension dependencies",
"category": "qurator-vscode"
},
{
"command": "qurator-vscode.runQRunesCode",
"title": "▶ Run this QRunes",
"category": "qurator-vscode"
}
],
"keybindings": [
{
"command": "qurator-vscode.runQRunesCode",
"key": "F5",
"mac": "F5",
"when": "editorTextFocus && editorLangId == 'qrunes'"
}
],
"menus": {
"editor/context": [
{
"when": "editorTextFocus && editorLangId == qrunes",
"command": "qurator-vscode.runQRunesCode"
}
],
"editor/title": [
{
"when": "editorTextFocus && editorLangId == qrunes",
"command": "qurator-vscode.runQRunesCode",
"group": "navigation"
}
]
}
},
"scripts": {
"vscode:prepublish": "npm run compile:parser && npm run compile",
"compile:client": "tsc -p ./client/tsconfig.json",
"compile:server": "tsc -p ./server/tsconfig.json",
"compile:parser": "npm run compile:parserSettings && npm run compile:parserQcodes && npm run compile:parserPython && npm run compile:parserCpp",
"compile:parserSettings": "cd server/src/qrunesModes/embeddedModeImpl/settings/antlr && antlr4ts -visitor setting.g4 && cd ../../../../..",
"compile:parserQcodes": "cd server/src/qrunesModes/embeddedModeImpl/qcodes/antlr && antlr4ts -visitor qcode.g4 && cd ../../../../..",
"compile:parserPython": "cd server/src/qrunesModes/embeddedModeImpl/python/antlr && antlr4ts -visitor Python3.g4 && cd ../../../../..",
"compile:parserCpp": "cd server/src/qrunesModes/embeddedModeImpl/cpp/antlr && antlr4ts -visitor CPP14.g4 && cd ../../../../..",
"watch:client": "tsc -w -p ./client/tsconfig.json",
"watch:server": "tsc -w -p ./server/tsconfig.json",
"compile": "npm run compile:client && npm run compile:server",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/mocha": "^5.2.5",
"@types/node": "^10.11.4",
"typescript": "^3.1.1",
"npm-run-all": "^4.1.3",
"antlr4ts-cli": "^0.4.0-alpha.4"
},
"dependencies": {
"antlr4ts": "^0.4.1-alpha.0",
"npm": "^6.9.0"
}
}