package.json 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. "contributes": {
  28. "commands": [
  29. {
  30. "command": "extension.htmlToDioxusRsx",
  31. "title": "Dioxus: Convert HTML to RSX"
  32. },
  33. {
  34. "command": "extension.htmlToDioxusComponent",
  35. "title": "Dioxus: Convert HTML to Component"
  36. },
  37. {
  38. "command": "extension.formatRsx",
  39. "title": "Dioxus: Format RSX"
  40. },
  41. {
  42. "command": "extension.formatRsxDocument",
  43. "title": "Dioxus: Format RSX Document"
  44. }
  45. ],
  46. "configuration": {
  47. "properties": {
  48. "dioxus.formatOnSave": {
  49. "type": [
  50. "string"
  51. ],
  52. "default": "followFormatOnSave",
  53. "enum": [
  54. "followFormatOnSave",
  55. "enabled",
  56. "disabled"
  57. ],
  58. "enumItemLabels": [
  59. "Follow the normal formatOnSave config",
  60. "Enabled",
  61. "Disabled"
  62. ],
  63. "enumDescriptions": [
  64. "Only format Rsx when saving files if the editor.formatOnSave config is enabled",
  65. "Always format Rsx when a Rust file is saved",
  66. "Never format Rsx when a file is saved"
  67. ],
  68. "description": "Format RSX when a file is saved."
  69. }
  70. }
  71. }
  72. },
  73. "scripts": {
  74. "vscode:prepublish": "npm run build-base -- --minify",
  75. "package": "vsce package -o rust-analyzer.vsix",
  76. "build-base": "esbuild ./src/main.ts --bundle --outfile=out/main.js --external:vscode --format=cjs --platform=node --target=node16",
  77. "build": "npm run build-base -- --sourcemap",
  78. "watch": "npm run build-base -- --sourcemap --watch",
  79. "lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
  80. "fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
  81. "pretest": "tsc && npm run build",
  82. "test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
  83. },
  84. "devDependencies": {
  85. "@types/node": "^18.0.2",
  86. "@types/vscode": "^1.68.1",
  87. "@typescript-eslint/eslint-plugin": "^5.30.5",
  88. "@typescript-eslint/parser": "^5.30.5",
  89. "cross-env": "^7.0.3",
  90. "esbuild": "^0.14.27",
  91. "eslint": "^8.19.0",
  92. "typescript": "^4.7.4",
  93. "eslint-config-prettier": "^8.5.0",
  94. "ovsx": "^0.5.1",
  95. "prettier": "^2.6.2",
  96. "tslib": "^2.3.0",
  97. "vsce": "^2.7.0"
  98. },
  99. "dependencies": {
  100. "vsce": "^2.9.2"
  101. }
  102. }