feat: turn interpreter into crate
This commit is contained in:
1 parent
80d792910f
commit
ee67a041d2
8 files changed
+17
-4
No files matched your search
@@ -22,6 +22,7 @@ dioxus-ssr = { path = "./packages/ssr", version = "^0.1.3", optional = true }
|
||||
|
||||
dioxus-router = { path = "./packages/router", version = "^0.1.1", optional = true }
|
||||
dioxus-mobile = { path = "./packages/mobile", version = "^0.0.3", optional = true }
|
||||
dioxus-interpreter-js = { path = "./packages/interpreter", version = "^0.0.0", optional = true }
|
||||
# dioxus-liveview = { path = "./packages/liveview", optional = true }
|
||||
|
||||
[features]
|
||||
@@ -52,6 +53,7 @@ members = [
|
||||
"packages/ssr",
|
||||
"packages/desktop",
|
||||
"packages/mobile",
|
||||
"packages/interpreter",
|
||||
]
|
||||
|
||||
[dev-dependencies]
|
||||
|
||||
@@ -0,0 +1,8 @@
|
||||
[package]
|
||||
name = "dioxus-interpreter-js"
|
||||
version = "0.0.0"
|
||||
edition = "2018"
|
||||
|
||||
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
||||
|
||||
[dependencies]
|
||||
File renamed without changes.
@@ -0,0 +1,6 @@
|
||||
use std::process::Command;
|
||||
|
||||
fn main() {
|
||||
println!("cargo:rerun-if-changed=interpreter.ts");
|
||||
Command::new("tsc").spawn().unwrap();
|
||||
}
|
||||
File renamed without changes.
@@ -1,7 +1,3 @@
|
||||
|
||||
|
||||
|
||||
|
||||
export function main() {
|
||||
let root = window.document.getElementById("main");
|
||||
if (root != null) {
|
||||
@@ -0,0 +1 @@
|
||||
pub static INTERPRTER_JS: &str = include_str!("../interpreter.js");
|
||||
File renamed without changes.
Reference in new issue
Block a user