forked from onflow/vscode-cadence
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
166 lines (166 loc) · 5.04 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
163
164
165
166
{
"name": "cadence",
"displayName": "Cadence",
"publisher": "onflow",
"description": "This extension integrates Cadence, the resource-oriented smart contract programming language of Flow, into Visual Studio Code.",
"version": "0.6.3",
"repository": {
"type": "git",
"url": "https://github.com/onflow/vscode-cadence.git"
},
"scripts": {
"vscode:prepublish": "npm run -S esbuild-base -- --minify",
"esbuild-base": "esbuild ./src/extension.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node",
"esbuild": "npm run -S esbuild-base -- --sourcemap",
"esbuild-watch": "npm run -S esbuild-base -- --sourcemap --watch",
"unit-test": "ts-mocha **/*.unit.test.ts",
"integration-test": "npm run esbuild && tsc -p ./ && node ./out/test/run-test.js",
"package": "./node_modules/.bin/vsce package",
"package-test": "./node_modules/.bin/vsce package --out ./src/test/fixtures/workspace/cadence.vsix",
"secure": "snyk protect",
"lint": "ts-standard && snyk protect --fail-on=all",
"vscode-start": "docker-compose up -d && docker exec vscode code-server --install-extension /source/cadence.vsix",
"vscode-stop": "docker-compose down",
"cypress": "./node_modules/.bin/cypress run",
"e2e-test": "npm run package-test && npm run vscode-start && npm run cypress && npm run vscode-stop"
},
"engines": {
"vscode": "^1.56.0"
},
"categories": [
"Programming Languages"
],
"icon": "icon.png",
"activationEvents": [
"onLanguage:cadence",
"onCommand:cadence.restartServer",
"onCommand:cadence.runEmulator",
"onCommand:cadence.stopEmulator",
"onCommand:cadence.createAccount",
"onCommand:cadence.switchActiveAccount"
],
"main": "./out/main.js",
"contributes": {
"commands": [
{
"command": "cadence.restartServer",
"category": "Cadence",
"title": "Restart language server"
},
{
"command": "cadence.runEmulator",
"category": "Cadence",
"title": "Run emulator"
},
{
"command": "cadence.stopEmulator",
"category": "Cadence",
"title": "Stop emulator"
},
{
"command": "cadence.createAccount",
"category": "Cadence",
"title": "Create account"
},
{
"command": "cadence.switchActiveAccount",
"category": "Cadence",
"title": "Switch account"
}
],
"configuration": {
"title": "Cadence",
"properties": {
"cadence.flowCommand": {
"type": "string",
"default": "flow",
"description": "The command to invoke the Flow CLI",
"scope": "resource"
},
"cadence.numAccounts": {
"type": "number",
"default": 3,
"description": "The number of default accounts to create",
"scope": "resource"
},
"cadence.accessCheckMode": {
"type": "string",
"default": "strict",
"enum": [
"strict",
"notSpecifiedRestricted",
"notSpecifiedUnrestricted",
"none"
],
"enumDescriptions": [
"Access modifiers are required and always enforced",
"Access modifiers are optional. Access is assumed private if not specified",
"Access modifiers are optional. Access is assumed public if not specified",
"Access modifiers are optional and ignored"
],
"description": "Configures if access modifiers are required and how they are are enforced",
"scope": "resource"
},
"cadence.trace.server": {
"scope": "window",
"type": "string",
"enum": [
"off",
"messages",
"verbose"
],
"default": "off",
"description": "Traces the communication between VS Code and the Cadence language server."
}
}
},
"languages": [
{
"id": "cadence",
"extensions": [
".cdc"
],
"configuration": "./language-configuration.json"
}
],
"grammars": [
{
"language": "cadence",
"scopeName": "source.cadence",
"path": "./syntaxes/cadence.tmGrammar.json"
},
{
"scopeName": "markdown.cadence.codeblock",
"path": "./syntaxes/codeblock.json",
"injectTo": [
"text.html.markdown"
],
"embeddedLanguages": {
"meta.embedded.block.cadence": "cadence"
}
}
]
},
"devDependencies": {
"@types/glob": "^7.1.4",
"@types/mocha": "^2.2.42",
"@types/node": "^10.12.21",
"@types/vscode": "^1.56.0",
"@vscode/test-electron": "^1.6.2",
"cypress": "^8.3.0",
"esbuild": "^0.12.9",
"glob": "^7.1.7",
"mocha": "^9.0.3",
"nyc": "^15.1.0",
"snyk": "^1.316.1",
"ts-mocha": "^8.0.0",
"ts-standard": "^10.0.0",
"typescript": "^3.9.7"
},
"dependencies": {
"@onflow/decode": "0.0.11",
"vsce": "^1.96.1",
"vscode-languageclient": "~7.0.0"
},
"snyk": true
}