1
0

package.json 4.2 KB

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