package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. {
  2. "name": "dioxus",
  3. "displayName": "Dioxus",
  4. "description": "Useful tools for working with Dioxus",
  5. "version": "0.0.1",
  6. "publisher": "DioxusLabs",
  7. "private": true,
  8. "license": "MIT",
  9. "icon": "static/icon.png",
  10. "repository": {
  11. "type": "git",
  12. "url": "https://github.com/DioxusLabs/cli"
  13. },
  14. "engines": {
  15. "vscode": "^1.68.1"
  16. },
  17. "categories": [
  18. "Programming Languages"
  19. ],
  20. "activationEvents": [
  21. "onCommand:extension.htmlToDioxusRsx",
  22. "onCommand:extension.htmlToDioxusComponent",
  23. "onCommand:extension.formatRsx",
  24. "onCommand:extension.formatRsxDocument"
  25. ],
  26. "main": "./out/main",
  27. "extensionKind": [
  28. "ui",
  29. "workspace"
  30. ],
  31. "contributes": {
  32. "commands": [
  33. {
  34. "command": "extension.htmlToDioxusRsx",
  35. "title": "Dioxus: Convert HTML to RSX"
  36. },
  37. {
  38. "command": "extension.htmlToDioxusComponent",
  39. "title": "Dioxus: Convert HTML to Component"
  40. },
  41. {
  42. "command": "extension.formatRsx",
  43. "title": "Dioxus: Format RSX"
  44. },
  45. {
  46. "command": "extension.formatRsxDocument",
  47. "title": "Dioxus: Format RSX Document"
  48. }
  49. ],
  50. "configuration": {
  51. "properties": {
  52. "dioxus.formatOnSave": {
  53. "type": [
  54. "string"
  55. ],
  56. "default": "followFormatOnSave",
  57. "enum": [
  58. "followFormatOnSave",
  59. "enabled",
  60. "disabled"
  61. ],
  62. "enumItemLabels": [
  63. "Follow the normal formatOnSave config",
  64. "Enabled",
  65. "Disabled"
  66. ],
  67. "enumDescriptions": [
  68. "Only format Rsx when saving files if the editor.formatOnSave config is enabled",
  69. "Always format Rsx when a Rust file is saved",
  70. "Never format Rsx when a file is saved"
  71. ],
  72. "description": "Format RSX when a file is saved."
  73. }
  74. }
  75. }
  76. },
  77. "scripts": {
  78. "vscode:prepublish": "npm run build-base -- --minify",
  79. "package": "vsce package -o rust-analyzer.vsix",
  80. "build-base": "node src/build.js",
  81. "build": "npm run build-base -- --sourcemap",
  82. "watch": "npm run build-base -- --sourcemap --watch",
  83. "lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
  84. "fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
  85. "pretest": "tsc && npm run build",
  86. "test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
  87. },
  88. "devDependencies": {
  89. "@types/node": "^18.0.2",
  90. "@types/vscode": "^1.68.1",
  91. "@typescript-eslint/eslint-plugin": "^5.30.5",
  92. "@typescript-eslint/parser": "^5.30.5",
  93. "cross-env": "^7.0.3",
  94. "esbuild": "^0.14.27",
  95. "esbuild-plugin-wasm": "^1.1.0",
  96. "eslint": "^8.19.0",
  97. "eslint-config-prettier": "^8.5.0",
  98. "ovsx": "^0.5.1",
  99. "prettier": "^2.6.2",
  100. "tslib": "^2.3.0",
  101. "typescript": "^4.7.4",
  102. "vsce": "^2.7.0"
  103. },
  104. "dependencies": {
  105. "dioxus-ext": "./pkg",
  106. "vsce": "^2.9.2"
  107. }
  108. }