package.json 7.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247
  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. },
  51. "dependencies": {
  52. "abi-code-gen": "0.0.3",
  53. "ajv": "^6.5.2",
  54. "ajv-keywords": "^3.2.0",
  55. "fs-extra": "^4.0.3",
  56. "nethereum-codegen": "^1.0.6",
  57. "read-yaml": "^1.1.0",
  58. "solc": "^0.5.2",
  59. "solhint": "^1.4.0",
  60. "solium": "^1.1.8",
  61. "solparse": "^2.2.5",
  62. "truffle-artifactor": "^3.0.7",
  63. "vscode-languageclient": "^5.1.1",
  64. "vscode-languageserver": "^5.1.0",
  65. "solidity-parser-antlr": "^0.3.2",
  66. "antlr4-c3": "^1.1.8",
  67. "vscode-uri": "^1.0.3",
  68. "armlet": "^0.2.2"
  69. },
  70. "devDependencies": {
  71. "@types/node": "^10.5.5",
  72. "tslint": "^5.11.0",
  73. "typescript": "^3.1.3",
  74. "vscode": "^1.1.22"
  75. },
  76. "contributes": {
  77. "configuration": {
  78. "type": "object",
  79. "title": "Solidity configuration",
  80. "properties": {
  81. "solidity.compileUsingRemoteVersion": {
  82. "type": [
  83. "string",
  84. "null"
  85. ],
  86. "default": null,
  87. "description": "Compile using a remote version instead of the current one, for example: 'latest' or 'v0.4.3+commit.2353da71'"
  88. },
  89. "solidity.compileUsingLocalVersion": {
  90. "type": [
  91. "string",
  92. "null"
  93. ],
  94. "default": null,
  95. "description": "Compile using a local version instead of the current one, for example: 'C://v0.4.3+commit.2353da71.js'"
  96. },
  97. "solidity.linter": {
  98. "type": [
  99. "boolean",
  100. "string"
  101. ],
  102. "default": "solium",
  103. "description": "Enables solhint linting. Possible options 'solhint' and 'solium'"
  104. },
  105. "solidity.solhintRules": {
  106. "type": [
  107. "object"
  108. ],
  109. "default": null,
  110. "description": "Solhint linting validation rules"
  111. },
  112. "solidity.enabledSolium": {
  113. "type": [
  114. "boolean"
  115. ],
  116. "default": false,
  117. "description": "Enables solium linting. DEPRECATED: Use \"linter\" instead"
  118. },
  119. "solidity.soliumRules": {
  120. "type": [
  121. "object"
  122. ],
  123. "default": {
  124. "imports-on-top": 0,
  125. "variable-declarations": 0,
  126. "quotes": [
  127. "error",
  128. "double"
  129. ]
  130. },
  131. "description": "Solium linting validation rules"
  132. },
  133. "solidity.enabledAsYouTypeCompilationErrorCheck": {
  134. "type": [
  135. "boolean"
  136. ],
  137. "default": true,
  138. "description": "Enables as you type compilation of the document and error highlighting"
  139. },
  140. "solidity.validationDelay": {
  141. "type": [
  142. "number"
  143. ],
  144. "default": 1500,
  145. "description": "Delay to trigger the validation of the changes of the current document (compilation, solium)"
  146. },
  147. "solidity.packageDefaultDependenciesDirectory": {
  148. "type": [
  149. "string"
  150. ],
  151. "default": "node_modules",
  152. "description": "Default directory for Packages Dependencies, i.e: 'node_modules', 'lib'"
  153. },
  154. "solidity.packageDefaultDependenciesContractsDirectory": {
  155. "type": [
  156. "string"
  157. ],
  158. "default": "contracts",
  159. "description": "Default directory where the Package Dependency store its contracts, i.e: 'src', 'contracts', or just a blank string ''"
  160. }
  161. }
  162. },
  163. "languages": [
  164. {
  165. "id": "solidity",
  166. "aliases": [
  167. "Solidity",
  168. "solidity"
  169. ],
  170. "extensions": [
  171. ".sol"
  172. ],
  173. "configuration": "./solidity.configuration.json"
  174. }
  175. ],
  176. "commands": [
  177. {
  178. "command": "solidity.compile",
  179. "title": "Solidity: Compile All Solidity Contracts"
  180. },
  181. {
  182. "command": "solidity.compile.active",
  183. "title": "Solidity: Compile Current Solidity Contract"
  184. },
  185. {
  186. "command": "solidity.codegen",
  187. "title": "Solidity: Code generate from compilation output 'contract.json'"
  188. },
  189. {
  190. "command": "solidity.codegenCSharpProject",
  191. "title": "Solidity: Code generate CSharp Project from compilation output 'contract.json'"
  192. },
  193. {
  194. "command": "solidity.codegenVbNetProject",
  195. "title": "Solidity: Code generate VB.Net Project from compilation output 'contract.json'"
  196. },
  197. {
  198. "command": "solidity.codegenFSharpProject",
  199. "title": "Solidity: Code generate FSharp Project from compilation output 'contract.json'"
  200. },
  201. {
  202. "command": "solidity.codegenCSharpProjectAll",
  203. "title": "Solidity: Code generate CSharp Project from all compiled files"
  204. },
  205. {
  206. "command": "solidity.codegenVbNetProjectAll",
  207. "title": "Solidity: Code generate VB.Net Project from all compiled files"
  208. },
  209. {
  210. "command": "solidity.codegenFSharpProjectAll",
  211. "title": "Solidity: Code generate FSharp Project from all compiled files"
  212. },
  213. {
  214. "command": "solidity.fixDocument",
  215. "title": "Solidity: Fix document rules using Solium"
  216. }
  217. ],
  218. "keybindings": [
  219. {
  220. "command": "solidity.compile.active",
  221. "key": "f5",
  222. "mac": "f5",
  223. "when": "editorTextFocus && editorLangId == 'solidity'"
  224. },
  225. {
  226. "command": "solidity.compile",
  227. "key": "Ctrl+f5",
  228. "mac": "Cmd+f5",
  229. "when": "editorTextFocus && editorLangId == 'solidity'"
  230. }
  231. ],
  232. "snippets": [
  233. {
  234. "language": "solidity",
  235. "path": "./snippets/solidity.json"
  236. }
  237. ],
  238. "grammars": [
  239. {
  240. "language": "solidity",
  241. "scopeName": "source.solidity",
  242. "path": "./syntaxes/solidity.json"
  243. }
  244. ]
  245. }
  246. }