mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2025-12-23 10:11:54 +00:00
Automatically start web server when using cargo run
This commit is contained in:
parent
b6cdcba9e8
commit
8dd4124817
9 changed files with 18 additions and 2 deletions
|
|
@ -24,6 +24,8 @@ members = [
|
|||
exclude = ["node-graph/gpu-compiler"]
|
||||
resolver = "2"
|
||||
|
||||
default-members = ["frontend/wasm"]
|
||||
|
||||
[workspace.dependencies]
|
||||
# Local dependencies
|
||||
dyn-any = { path = "libraries/dyn-any", features = ["derive", "glam", "reqwest"] }
|
||||
|
|
|
|||
|
|
@ -8,6 +8,7 @@
|
|||
"scripts": {
|
||||
"---------- DEV SERVER ----------": "",
|
||||
"start": "npm run setup && npm run wasm:build-dev && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-dev\"",
|
||||
"start-cargo": "npm run setup && npm run wasm:build-dev && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-dev\" && echo",
|
||||
"profiling": "npm run setup && npm run wasm:build-profiling && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-profiling\"",
|
||||
"production": "npm run setup && npm run wasm:build-production && concurrently -k -n \"VITE,RUST\" \"vite\" \"npm run wasm:watch-production\"",
|
||||
"---------- BUILDS ----------": "",
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ description = "Graphite Desktop"
|
|||
authors = ["Graphite Authors <contact@graphite.rs>"]
|
||||
license = "Apache-2.0"
|
||||
repository = ""
|
||||
default-run = "graphite-desktop"
|
||||
# default-run = "graphite-desktop"
|
||||
edition = "2021"
|
||||
rust-version = "1.79"
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
[target.wasm32-unknown-unknown]
|
||||
runner = "npm start"
|
||||
rustflags = [
|
||||
# Currently disabled because of https://github.com/GraphiteEditor/Graphite/issues/1262
|
||||
# The current simd implementation leads to undefined behavior
|
||||
|
|
@ -10,3 +11,6 @@ rustflags = [
|
|||
"link-arg=--max-memory=4294967296",
|
||||
"--cfg=web_sys_unstable_apis",
|
||||
]
|
||||
|
||||
[target.x86_64-unknown-linux-gnu]
|
||||
runner = "npm run start-cargo"
|
||||
|
|
|
|||
|
|
@ -9,6 +9,7 @@ readme = "../../README.md"
|
|||
homepage = "https://graphite.rs"
|
||||
repository = "https://github.com/GraphiteEditor/Graphite"
|
||||
license = "Apache-2.0"
|
||||
default-run = "graphite-wasm"
|
||||
|
||||
[features]
|
||||
default = ["gpu"]
|
||||
|
|
|
|||
2
node-graph/compilation-client/.cargo/config.toml
Normal file
2
node-graph/compilation-client/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[target.x86_64-unknown-linux-gnu]
|
||||
runner = "npm run start-cargo"
|
||||
2
node-graph/compilation-server/.cargo/config.toml
Normal file
2
node-graph/compilation-server/.cargo/config.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[target.x86_64-unknown-linux-gnu]
|
||||
runner = "npm run start-cargo"
|
||||
2
node-graph/graphene-cli/config.toml
Normal file
2
node-graph/graphene-cli/config.toml
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
[target.x86_64-unknown-linux-gnu]
|
||||
runner = "npm run cmd"
|
||||
|
|
@ -2,6 +2,8 @@
|
|||
"description": "A convenience package for calling the real package.json in ./frontend",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
"start": "cd frontend && npm start"
|
||||
"start": "cd frontend && npm start",
|
||||
"start-cargo": "cd frontend && npm run start-cargo",
|
||||
"cmd": "true &&"
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue