2021-12-29 16:59:32 +00:00
|
|
|
{
|
2022-04-24 07:24:41 +00:00
|
|
|
"name": "dioxus",
|
2022-04-24 03:55:18 +00:00
|
|
|
"displayName": "Dioxus",
|
|
|
|
"description": "Useful tools for working with Dioxus",
|
2024-02-22 03:36:33 +00:00
|
|
|
"version": "0.4.0",
|
2022-04-24 07:24:41 +00:00
|
|
|
"publisher": "DioxusLabs",
|
2021-12-29 16:59:32 +00:00
|
|
|
"private": true,
|
|
|
|
"license": "MIT",
|
2022-04-24 07:24:41 +00:00
|
|
|
"icon": "static/icon.png",
|
2021-12-29 16:59:32 +00:00
|
|
|
"repository": {
|
|
|
|
"type": "git",
|
2024-02-22 03:36:33 +00:00
|
|
|
"url": "https://github.com/DioxusLabs/dioxus"
|
2021-12-29 16:59:32 +00:00
|
|
|
},
|
|
|
|
"engines": {
|
2022-07-06 04:45:22 +00:00
|
|
|
"vscode": "^1.68.1"
|
2021-12-29 16:59:32 +00:00
|
|
|
},
|
|
|
|
"categories": [
|
2022-07-06 04:45:22 +00:00
|
|
|
"Programming Languages"
|
2021-12-29 16:59:32 +00:00
|
|
|
],
|
|
|
|
"activationEvents": [
|
2023-07-09 02:27:25 +00:00
|
|
|
"onLanguage:rust"
|
2021-12-29 16:59:32 +00:00
|
|
|
],
|
2023-07-09 01:53:43 +00:00
|
|
|
"main": "./out/main.js",
|
2023-07-08 21:24:01 +00:00
|
|
|
"extensionKind": [
|
|
|
|
"ui",
|
|
|
|
"workspace"
|
|
|
|
],
|
2021-12-29 16:59:32 +00:00
|
|
|
"contributes": {
|
|
|
|
"commands": [
|
|
|
|
{
|
2022-01-27 07:54:49 +00:00
|
|
|
"command": "extension.htmlToDioxusRsx",
|
|
|
|
"title": "Dioxus: Convert HTML to RSX"
|
2021-12-29 16:59:32 +00:00
|
|
|
},
|
|
|
|
{
|
2022-01-27 07:54:49 +00:00
|
|
|
"command": "extension.htmlToDioxusComponent",
|
|
|
|
"title": "Dioxus: Convert HTML to Component"
|
2022-04-24 07:24:41 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.formatRsx",
|
|
|
|
"title": "Dioxus: Format RSX"
|
2022-04-26 22:45:27 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"command": "extension.formatRsxDocument",
|
|
|
|
"title": "Dioxus: Format RSX Document"
|
2021-12-29 16:59:32 +00:00
|
|
|
}
|
2023-04-06 00:55:53 +00:00
|
|
|
],
|
|
|
|
"configuration": {
|
|
|
|
"properties": {
|
|
|
|
"dioxus.formatOnSave": {
|
|
|
|
"type": [
|
|
|
|
"string"
|
|
|
|
],
|
|
|
|
"default": "followFormatOnSave",
|
|
|
|
"enum": [
|
|
|
|
"followFormatOnSave",
|
|
|
|
"enabled",
|
|
|
|
"disabled"
|
|
|
|
],
|
|
|
|
"enumItemLabels": [
|
|
|
|
"Follow the normal formatOnSave config",
|
|
|
|
"Enabled",
|
|
|
|
"Disabled"
|
|
|
|
],
|
|
|
|
"enumDescriptions": [
|
|
|
|
"Only format Rsx when saving files if the editor.formatOnSave config is enabled",
|
|
|
|
"Always format Rsx when a Rust file is saved",
|
|
|
|
"Never format Rsx when a file is saved"
|
|
|
|
],
|
|
|
|
"description": "Format RSX when a file is saved."
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
2021-12-29 16:59:32 +00:00
|
|
|
},
|
|
|
|
"scripts": {
|
2023-07-09 02:44:33 +00:00
|
|
|
"vscode:prepublish": "npm run build-base",
|
2023-07-09 01:53:43 +00:00
|
|
|
"// package": "vsce package -o rust-analyzer.vsix",
|
|
|
|
"// build-base": "node src/build.js",
|
|
|
|
"build-wasm": "cargo build --target wasm32-unknown-unknown --release && cp ../../target/wasm32-unknown-unknown/release/dioxus_ext.wasm pkg/",
|
|
|
|
"bind-wasm": "wasm-bindgen --out-dir=pkg --target=web --omit-default-module-path --omit-imports pkg/dioxus_ext.wasm",
|
|
|
|
"build-base": "npm run build-wasm && npm run bind-wasm && webpack",
|
|
|
|
"webpack": "webpack --mode development",
|
|
|
|
"webpack-dev": "webpack --mode development --watch",
|
|
|
|
"package": "webpack --mode production --devtool hidden-source-map",
|
|
|
|
"test-compile": "tsc -p ./",
|
|
|
|
"build": "npm run build-base -- --devtool hidden-source-map",
|
|
|
|
"watch": "npm run build-base -- --devtool hidden-source-map --watch",
|
2022-07-06 04:45:22 +00:00
|
|
|
"lint": "prettier --check . && eslint -c .eslintrc.js --ext ts ./src ./tests",
|
|
|
|
"fix": "prettier --write . && eslint -c .eslintrc.js --ext ts ./src ./tests --fix",
|
|
|
|
"pretest": "tsc && npm run build",
|
|
|
|
"test": "cross-env TEST_VARIABLE=test node ./out/tests/runTests.js"
|
2021-12-29 16:59:32 +00:00
|
|
|
},
|
|
|
|
"devDependencies": {
|
2022-07-06 04:45:22 +00:00
|
|
|
"@types/node": "^18.0.2",
|
|
|
|
"@types/vscode": "^1.68.1",
|
|
|
|
"@typescript-eslint/eslint-plugin": "^5.30.5",
|
|
|
|
"@typescript-eslint/parser": "^5.30.5",
|
|
|
|
"cross-env": "^7.0.3",
|
|
|
|
"eslint": "^8.19.0",
|
|
|
|
"eslint-config-prettier": "^8.5.0",
|
|
|
|
"ovsx": "^0.5.1",
|
|
|
|
"prettier": "^2.6.2",
|
2023-07-09 01:53:43 +00:00
|
|
|
"ts-loader": "^9.4.4",
|
2022-07-06 04:45:22 +00:00
|
|
|
"tslib": "^2.3.0",
|
2023-07-08 21:24:01 +00:00
|
|
|
"typescript": "^4.7.4",
|
2023-07-09 01:53:43 +00:00
|
|
|
"vsce": "^2.7.0",
|
|
|
|
"webpack": "^5.88.1",
|
|
|
|
"webpack-cli": "^5.1.4"
|
2022-07-06 04:45:22 +00:00
|
|
|
},
|
|
|
|
"dependencies": {
|
2023-07-08 21:24:01 +00:00
|
|
|
"dioxus-ext": "./pkg",
|
2022-07-06 04:45:22 +00:00
|
|
|
"vsce": "^2.9.2"
|
2021-12-29 16:59:32 +00:00
|
|
|
}
|
2023-07-08 21:24:01 +00:00
|
|
|
}
|