package.json 9.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341
  1. {
  2. "name": "solidity",
  3. "description": "Ethereum Solidity Language for Visual Studio Code",
  4. "keywords": [
  5. "solidity",
  6. "ethereum",
  7. "blockchain",
  8. "compiler",
  9. "solhint"
  10. ],
  11. "version": "0.0.50",
  12. "publisher": "JuanBlanco",
  13. "engines": {
  14. "vscode": "^1.28.0"
  15. },
  16. "contributors": [
  17. "Juan Blanco"
  18. ],
  19. "bugs": {
  20. "url": "https://github.com/juanfranblanco/vscode-solidity/issues"
  21. },
  22. "icon": "images/icon.png",
  23. "repository": {
  24. "type": "git",
  25. "url": "https://github.com/juanfranblanco/vscode-solidity"
  26. },
  27. "categories": [
  28. "Programming Languages",
  29. "Snippets"
  30. ],
  31. "activationEvents": [
  32. "onLanguage:solidity",
  33. "onCommand:solidity.compile",
  34. "onCommand:solidity.compile.active",
  35. "onCommand:solidity.codegen",
  36. "onCommand:solidity.codegenCSharpProject",
  37. "onCommand:solidity.codegenVbNetProject",
  38. "onCommand:solidity.codegenFSharpProject",
  39. "onCommand:solidity.codegenCSharpProjectAll",
  40. "onCommand:solidity.codegenVbNetProjectAll",
  41. "onCommand:solidity.codegenFSharpProjectAll",
  42. "onCommand:solidity.fixDocument"
  43. ],
  44. "main": "./out/src/extension",
  45. "scripts": {
  46. "vscode:prepublish": "npm run compile",
  47. "compile": "tsc -p ./",
  48. "watch": "tsc -watch -p ./",
  49. "postinstall": "node ./node_modules/vscode/bin/install",
  50. "test": "nyc --require ts-node/register --require source-map-support/register mocha test/**/*.spec.ts"
  51. },
  52. "dependencies": {
  53. "abi-code-gen": "0.0.3",
  54. "mkdirp": "^0.5.1",
  55. "ajv": "^6.5.2",
  56. "ajv-keywords": "^3.2.0",
  57. "armlet": "^2.0.0",
  58. "find-cache-dir": "^2.1.0",
  59. "fs-extra": "^4.0.3",
  60. "handlebars": "^4.0.12",
  61. "nethereum-codegen": "^1.0.6",
  62. "ora": "^3.1.0",
  63. "read-yaml": "^1.1.0",
  64. "solc": "^0.5.6",
  65. "require-from-string": "^2.0.2",
  66. "solhint": "^1.4.0",
  67. "solium": "^1.2.3",
  68. "request-promise": "^4.2.2",
  69. "solparse": "^2.2.8",
  70. "truffle-artifactor": "^4.0.3",
  71. "truffle-config": "^1.1.3",
  72. "truffle-contract-sources": "^0.1.2",
  73. "truffle-external-compile": "^1.0.4",
  74. "truffle-resolver": "^5.0.4",
  75. "vscode-languageclient": "^5.1.1",
  76. "vscode-languageserver": "^5.1.0",
  77. "vscode-uri": "^1.0.3"
  78. },
  79. "devDependencies": {
  80. "@types/assert": "^1.4.1",
  81. "@types/debug": "^4.1.2",
  82. "@types/mocha": "^5.2.5",
  83. "@types/node": "^10.5.5",
  84. "@types/ora": "^3.2.0",
  85. "electron-rebuild": "^1.8.2",
  86. "mocha": "^5.2.0",
  87. "mock-require": "^3.0.3",
  88. "nyc": "^13.1.0",
  89. "proxyquire": "^2.1.0",
  90. "sinon": "^7.2.3",
  91. "source-map-support": "^0.5.10",
  92. "ts-mocha": "^2.0.0",
  93. "ts-node": "^7.0.1",
  94. "tslint": "^5.11.0",
  95. "typescript": "^3.1.3",
  96. "vscode": "^1.1.22"
  97. },
  98. "nyc": {
  99. "extension": [
  100. ".ts"
  101. ],
  102. "include": [
  103. "src/**/*.ts"
  104. ],
  105. "exclude": [
  106. "**/*.d.ts",
  107. "out",
  108. "dist"
  109. ],
  110. "all": true
  111. },
  112. "contributes": {
  113. "configuration": {
  114. "type": "object",
  115. "title": "Solidity configuration",
  116. "properties": {
  117. "solidity.mythx.analysisMode": {
  118. "type": [
  119. "string"
  120. ],
  121. "default": "quick",
  122. "markdownDescription": "Whether to do quick or full (long) analysis"
  123. },
  124. "solidity.mythx.apiKey": {
  125. "type": [
  126. "string"
  127. ],
  128. "markdownDescription": "MythX API key. See https://mythx.io to get an API key"
  129. },
  130. "solidity.mythx.apiUrl": {
  131. "type": [
  132. "string"
  133. ],
  134. "default": "https://api.mythx.io",
  135. "markdownDescription": "MythX URL to connect to"
  136. },
  137. "solidity.mythx.password": {
  138. "type": [
  139. "string"
  140. ],
  141. "default": "trial",
  142. "markdownDescription": "MythX Password. See https://mythx.io to get password"
  143. },
  144. "solidity.mythx.ethAddress": {
  145. "type": [
  146. "string"
  147. ],
  148. "default": "0x0000000000000000000000000000000000000000",
  149. "markdownDescription": "MetaMask ETH address used to login to MythX. See https://mythx.io"
  150. },
  151. "solidity.mythx.reportFormat": {
  152. "type": [
  153. "string",
  154. "stylish"
  155. ],
  156. "default": "stylish",
  157. "markdownDescription": "Report style format for analysis results. See https://eslint.org/docs/user-guide/formatters/ for a full list."
  158. },
  159. "solidity.mythx.timeout": {
  160. "type": [
  161. "number",
  162. 120
  163. ],
  164. "default": 120,
  165. "markdownDescription": "Maximum time in seconds to give MythX for analysis"
  166. },
  167. "solidity.compileUsingRemoteVersion": {
  168. "type": [
  169. "string",
  170. "null"
  171. ],
  172. "default": null,
  173. "description": "Compile using a remote version instead of the current one, for example: 'latest' or 'v0.4.3+commit.2353da71'"
  174. },
  175. "solidity.compileUsingLocalVersion": {
  176. "type": [
  177. "string",
  178. "null"
  179. ],
  180. "default": null,
  181. "description": "Compile using a local version instead of the current one, for example: 'C://v0.4.3+commit.2353da71.js'"
  182. },
  183. "solidity.linter": {
  184. "type": [
  185. "boolean",
  186. "string"
  187. ],
  188. "default": "solium",
  189. "description": "Enables solhint linting. Possible options 'solhint' and 'solium'"
  190. },
  191. "solidity.solhintRules": {
  192. "type": [
  193. "object"
  194. ],
  195. "default": null,
  196. "description": "Solhint linting validation rules"
  197. },
  198. "solidity.enabledSolium": {
  199. "type": [
  200. "boolean"
  201. ],
  202. "default": false,
  203. "description": "Enables solium linting. DEPRECATED: Use \"linter\" instead"
  204. },
  205. "solidity.soliumRules": {
  206. "type": [
  207. "object"
  208. ],
  209. "default": {
  210. "imports-on-top": 0,
  211. "variable-declarations": 0,
  212. "quotes": [
  213. "error",
  214. "double"
  215. ]
  216. },
  217. "description": "Solium linting validation rules"
  218. },
  219. "solidity.enabledAsYouTypeCompilationErrorCheck": {
  220. "type": [
  221. "boolean"
  222. ],
  223. "default": true,
  224. "description": "Enables as you type compilation of the document and error highlighting"
  225. },
  226. "solidity.validationDelay": {
  227. "type": [
  228. "number"
  229. ],
  230. "default": 1500,
  231. "description": "Delay to trigger the validation of the changes of the current document (compilation, solium)"
  232. },
  233. "solidity.packageDefaultDependenciesDirectory": {
  234. "type": [
  235. "string"
  236. ],
  237. "default": "node_modules",
  238. "description": "Default directory for Packages Dependencies, i.e: 'node_modules', 'lib'"
  239. },
  240. "solidity.packageDefaultDependenciesContractsDirectory": {
  241. "type": [
  242. "string"
  243. ],
  244. "default": "contracts",
  245. "description": "Default directory where the Package Dependency store its contracts, i.e: 'src', 'contracts', or just a blank string ''"
  246. }
  247. }
  248. },
  249. "languages": [
  250. {
  251. "id": "solidity",
  252. "aliases": [
  253. "Solidity",
  254. "solidity"
  255. ],
  256. "extensions": [
  257. ".sol"
  258. ],
  259. "configuration": "./solidity.configuration.json"
  260. }
  261. ],
  262. "commands": [
  263. {
  264. "command": "solidity.compile",
  265. "title": "Solidity: Compile All Solidity Contracts"
  266. },
  267. {
  268. "command": "solidity.compile.active",
  269. "title": "Solidity: Compile Current Solidity Contract"
  270. },
  271. {
  272. "command": "solidity.codegen",
  273. "title": "Solidity: Code generate from compilation output 'contract.json'"
  274. },
  275. {
  276. "command": "solidity.codegenCSharpProject",
  277. "title": "Solidity: Code generate CSharp Project from compilation output 'contract.json'"
  278. },
  279. {
  280. "command": "solidity.codegenVbNetProject",
  281. "title": "Solidity: Code generate VB.Net Project from compilation output 'contract.json'"
  282. },
  283. {
  284. "command": "solidity.codegenFSharpProject",
  285. "title": "Solidity: Code generate FSharp Project from compilation output 'contract.json'"
  286. },
  287. {
  288. "command": "solidity.codegenCSharpProjectAll",
  289. "title": "Solidity: Code generate CSharp Project from all compiled files"
  290. },
  291. {
  292. "command": "solidity.codegenVbNetProjectAll",
  293. "title": "Solidity: Code generate VB.Net Project from all compiled files"
  294. },
  295. {
  296. "command": "solidity.codegenFSharpProjectAll",
  297. "title": "Solidity: Code generate FSharp Project from all compiled files"
  298. },
  299. {
  300. "command": "solidity.fixDocument",
  301. "title": "Solidity: Fix document rules using Solium"
  302. },
  303. {
  304. "command": "solidity.mythx.analyze",
  305. "title": "Solidity: MythX analyses"
  306. },
  307. {
  308. "command": "solidity.mythx.version",
  309. "title": "Solidity: MythX API version information"
  310. }
  311. ],
  312. "keybindings": [
  313. {
  314. "command": "solidity.compile.active",
  315. "key": "f5",
  316. "mac": "f5",
  317. "when": "editorTextFocus && editorLangId == 'solidity'"
  318. },
  319. {
  320. "command": "solidity.compile",
  321. "key": "Ctrl+f5",
  322. "mac": "Cmd+f5",
  323. "when": "editorTextFocus && editorLangId == 'solidity'"
  324. }
  325. ],
  326. "snippets": [
  327. {
  328. "language": "solidity",
  329. "path": "./snippets/solidity.json"
  330. }
  331. ],
  332. "grammars": [
  333. {
  334. "language": "solidity",
  335. "scopeName": "source.solidity",
  336. "path": "./syntaxes/solidity.json"
  337. }
  338. ]
  339. }
  340. }