This repository has been archived by the owner on Feb 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
package.json
164 lines (164 loc) · 4.12 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
{
"name": "cairo-ls",
"displayName": "Cairo language support for StarkNet",
"description": "Cairo 0.x language support in VS Code",
"author": "Eric Lau",
"license": "EPL-2.0",
"version": "0.0.28",
"preview": true,
"icon": "images/logo.png",
"repository": {
"type": "git",
"url": "https://github.com/ericglau/cairo-ls"
},
"publisher": "ericglau",
"categories": [
"Programming Languages",
"Snippets",
"Other"
],
"keywords": [
"cairo",
"starknet",
"blockchain"
],
"engines": {
"vscode": "^1.43.0"
},
"activationEvents": [
"workspaceContains:**/*.cairo",
"onCommand:cairo.compile",
"onCommand:cairo.run",
"onCommand:cairo.run.layout.small",
"onCommand:cairo.compile.starknet"
],
"main": "./client/out/extension.js",
"contributes": {
"configuration": {
"type": "object",
"title": "Cairo LS",
"properties": {
"cairols.highlightingCompiler": {
"scope": "resource",
"type": "string",
"enum": [
"autodetect",
"cairo",
"starknet"
],
"default": "autodetect",
"description": "Specifies which compiler to use for diagnostic highlighting."
},
"cairols.sourceDir": {
"scope": "resource",
"type": "string",
"description": "The contracts source directory within your project, for example: src"
},
"cairols.disableHintValidation": {
"scope": "resource",
"type": "string",
"description": "Disables hint validation for files that match the given pattern, for example: tests/**/*.cairo"
},
"cairols.useVenv": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Whether to use a Python virtual environment for running the Cairo/StarkNet compiler. Note: Nile's venv takes precedence over this option."
},
"cairols.venvCommand": {
"scope": "resource",
"type": "string",
"default": ". ~/cairo_venv/bin/activate",
"description": "If useVenv is true, this is the command used by the extension to source the virtual environment before running Cairo/StarkNet commands. Note: Nile's venv takes precedence over this option."
},
"cairols.nileUseVenv": {
"scope": "resource",
"type": "boolean",
"default": true,
"description": "Whether to use a Python virtual environment for running Nile."
},
"cairols.nileVenvCommand": {
"scope": "resource",
"type": "string",
"default": ". env/bin/activate",
"description": "If nileUseVenv is true, this is the command used by the extension to source the virtual environment before running Nile commands."
},
"cairols.cairoPath": {
"scope": "resource",
"type": "array",
"default": [],
"description": "Additional locations to search for cairo files."
}
}
},
"menus": {
"explorer/context": [
{
"command": "nile.compile"
},
{
"command": "nile.compile.all"
},
{
"command": "nile.clean"
},
{
"command": "pytest"
}
],
"editor/context": [
{
"command": "nile.compile"
},
{
"command": "nile.compile.all"
},
{
"command": "nile.clean"
},
{
"command": "pytest"
}
]
},
"commands": [
{
"command": "nile.compile",
"category": "StarkNet Cairo language support",
"title": "Nile - Compile this contract"
},
{
"command": "nile.compile.all",
"category": "StarkNet Cairo language support",
"title": "Nile - Compile all"
},
{
"command": "nile.clean",
"category": "StarkNet Cairo language support",
"title": "Nile - Clean"
},
{
"command": "pytest",
"category": "StarkNet Cairo language support",
"title": "Run tests with pytest"
}
]
},
"scripts": {
"vscode:prepublish": "npm run compile",
"compile": "tsc -b",
"watch": "tsc -b -w",
"postinstall": "cd client && npm install && cd ../server && npm install && cd ..",
"test": "sh ./scripts/e2e.sh"
},
"devDependencies": {
"@types/mocha": "^5.2.7",
"@types/node": "^12.20.28",
"@typescript-eslint/parser": "^2.3.0",
"ansi-regex": ">=5.0.1",
"esbuild": "^0.15.5",
"eslint": "^7.32.0",
"mocha": "^9.1.2",
"typescript": "^3.9.10"
}
}