package.json 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113
  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. "onLanguage:rust"
  22. ],
  23. "main": "./out/main.js",
  24. "extensionKind": [
  25. "ui",
  26. "workspace"
  27. ],
  28. "contributes": {
  29. "commands": [
  30. {
  31. "command": "extension.htmlToDioxusRsx",
  32. "title": "Dioxus: Convert HTML to RSX"
  33. },
  34. {
  35. "command": "extension.htmlToDioxusComponent",
  36. "title": "Dioxus: Convert HTML to Component"
  37. },
  38. {
  39. "command": "extension.formatRsx",
  40. "title": "Dioxus: Format RSX"
  41. },
  42. {
  43. "command": "extension.formatRsxDocument",
  44. "title": "Dioxus: Format RSX Document"
  45. }
  46. ],
  47. "configuration": {
  48. "properties": {
  49. "dioxus.formatOnSave": {
  50. "type": [
  51. "string"
  52. ],
  53. "default": "followFormatOnSave",
  54. "enum": [
  55. "followFormatOnSave",
  56. "enabled",
  57. "disabled"
  58. ],
  59. "enumItemLabels": [
  60. "Follow the normal formatOnSave config",
  61. "Enabled",
  62. "Disabled"
  63. ],
  64. "enumDescriptions": [
  65. "Only format Rsx when saving files if the editor.formatOnSave config is enabled",
  66. "Always format Rsx when a Rust file is saved",
  67. "Never format Rsx when a file is saved"
  68. ],
  69. "description": "Format RSX when a file is saved."
  70. }
  71. }
  72. }
  73. },
  74. "scripts": {
  75. "vscode:prepublish": "npm run build-base -- --minify",
  76. "// package": "vsce package -o rust-analyzer.vsix",
  77. "// build-base": "node src/build.js",
  78. "build-wasm": "cargo build --target wasm32-unknown-unknown --release && cp ../../target/wasm32-unknown-unknown/release/dioxus_ext.wasm pkg/",
  79. "bind-wasm": "wasm-bindgen --out-dir=pkg --target=web --omit-default-module-path --omit-imports pkg/dioxus_ext.wasm",
  80. "build-base": "npm run build-wasm && npm run bind-wasm && webpack",
  81. "webpack": "webpack --mode development",
  82. "webpack-dev": "webpack --mode development --watch",
  83. "package": "webpack --mode production --devtool hidden-source-map",
  84. "test-compile": "tsc -p ./",
  85. "build": "npm run build-base -- --devtool hidden-source-map",
  86. "watch": "npm run build-base -- --devtool hidden-source-map --watch",
  87. "lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
  88. "fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
  89. "pretest": "tsc && npm run build",
  90. "test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
  91. },
  92. "devDependencies": {
  93. "@types/node": "^18.0.2",
  94. "@types/vscode": "^1.68.1",
  95. "@typescript-eslint/eslint-plugin": "^5.30.5",
  96. "@typescript-eslint/parser": "^5.30.5",
  97. "cross-env": "^7.0.3",
  98. "eslint": "^8.19.0",
  99. "eslint-config-prettier": "^8.5.0",
  100. "ovsx": "^0.5.1",
  101. "prettier": "^2.6.2",
  102. "ts-loader": "^9.4.4",
  103. "tslib": "^2.3.0",
  104. "typescript": "^4.7.4",
  105. "vsce": "^2.7.0",
  106. "webpack": "^5.88.1",
  107. "webpack-cli": "^5.1.4"
  108. },
  109. "dependencies": {
  110. "dioxus-ext": "./pkg",
  111. "vsce": "^2.9.2"
  112. }
  113. }