-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
157 lines (157 loc) · 4.61 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
{
"name": "coc-cairo",
"version": "0.0.5",
"description": "A coc.nvim wrapper for the Cairo language server",
"author": "Kevin Halliday <halliday.kevin7@gmail.com>",
"repository": "https://github.com/kevinhalliday/coc-cairo",
"license": "MIT",
"main": "lib/index.js",
"keywords": [
"coc.nvim"
],
"engines": {
"coc": "^0.0.82"
},
"scripts": {
"lint": "eslint src --ext ts",
"clean": "rimraf lib",
"watch": "node esbuild.js --watch",
"build": "node esbuild.js",
"prepare": "node esbuild.js"
},
"dependencies": {
"cairo-ls": "^0.0.9"
},
"devDependencies": {
"@types/node": "^18.0.3",
"@typescript-eslint/eslint-plugin": "^5.13.0",
"@typescript-eslint/parser": "^5.13.0",
"coc.nvim": "^0.0.82",
"esbuild": "^0.14.24",
"eslint": "^8.10.0",
"eslint-config-prettier": "^8.5.0",
"eslint-plugin-prettier": "^4.0.0",
"prettier": "^2.5.1",
"rimraf": "^3.0.2",
"typescript": "^4.6.2"
},
"activationEvents": [
"*"
],
"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.serverModule": {
"scope": "resource",
"type": "string",
"description": "Absolute path to a language server Node module to use. Useful for testing new language server implementations with this extension."
},
"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"
}
]
}
}