mirror of
https://github.com/storytold/storyteller-bevy.git
synced 2026-10-17 00:13:17 +00:00
Rename projects
This commit is contained in:
Generated
+9
-9
@@ -1798,15 +1798,6 @@ dependencies = [
|
||||
"winapi",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hello-world"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bevy",
|
||||
"console_error_panic_hook",
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "hexasphere"
|
||||
version = "9.1.0"
|
||||
@@ -2870,6 +2861,15 @@ version = "1.1.0"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
|
||||
|
||||
[[package]]
|
||||
name = "studio"
|
||||
version = "0.1.0"
|
||||
dependencies = [
|
||||
"bevy",
|
||||
"console_error_panic_hook",
|
||||
"wasm-bindgen",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
name = "svg_fmt"
|
||||
version = "0.4.1"
|
||||
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
[workspace]
|
||||
resolver = "2"
|
||||
members = [
|
||||
"./hello-world"
|
||||
"./studio"
|
||||
]
|
||||
|
||||
[workspace.dependencies.bevy]
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
fn main() {
|
||||
hello_world::init();
|
||||
}
|
||||
@@ -1,15 +1,15 @@
|
||||
{
|
||||
"name": "hello-web",
|
||||
"name": "studio-frontend",
|
||||
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "application",
|
||||
"sourceRoot": "hello-web/src",
|
||||
"sourceRoot": "studio-frontend/src",
|
||||
"tags": [],
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nx/vite:build",
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": ["hello-world"],
|
||||
"projects": ["studio"],
|
||||
"target": "build:web"
|
||||
}
|
||||
],
|
||||
@@ -18,7 +18,7 @@
|
||||
],
|
||||
"defaultConfiguration": "production",
|
||||
"options": {
|
||||
"outputPath": "dist/hello-web"
|
||||
"outputPath": "dist/studio-frontend"
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
@@ -34,20 +34,20 @@
|
||||
"defaultConfiguration": "development",
|
||||
"dependsOn": [
|
||||
{
|
||||
"projects": ["hello-world"],
|
||||
"projects": ["studio"],
|
||||
"target": "build:web"
|
||||
}
|
||||
],
|
||||
"options": {
|
||||
"buildTarget": "hello-web:build"
|
||||
"buildTarget": "studio-frontend:build"
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
"buildTarget": "hello-web:build:development",
|
||||
"buildTarget": "studio-frontend:build:development",
|
||||
"hmr": true
|
||||
},
|
||||
"production": {
|
||||
"buildTarget": "hello-web:build:production",
|
||||
"buildTarget": "studio-frontend:build:production",
|
||||
"hmr": false
|
||||
}
|
||||
}
|
||||
@@ -56,14 +56,14 @@
|
||||
"executor": "@nx/vite:preview-server",
|
||||
"defaultConfiguration": "development",
|
||||
"options": {
|
||||
"buildTarget": "hello-web:build"
|
||||
"buildTarget": "studio-frontend:build"
|
||||
},
|
||||
"configurations": {
|
||||
"development": {
|
||||
"buildTarget": "hello-web:build:development"
|
||||
"buildTarget": "studio-frontend:build:development"
|
||||
},
|
||||
"production": {
|
||||
"buildTarget": "hello-web:build:production"
|
||||
"buildTarget": "studio-frontend:build:production"
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
@@ -1,4 +1,4 @@
|
||||
import * as helloWorld from "@storyteller/hello-world";
|
||||
import * as studio from "@storyteller/studio";
|
||||
|
||||
import "./app.element.scss";
|
||||
|
||||
@@ -13,7 +13,7 @@ export class AppElement extends HTMLElement {
|
||||
// CLI, we can craft our own JS API to interact with Bevy! \o/ As a start,
|
||||
// we should exploit this to pass an explicit canvas size to Bevy and keep
|
||||
// it up to date with the browser viewport size.
|
||||
helloWorld.init();
|
||||
studio.init();
|
||||
}
|
||||
}
|
||||
customElements.define("app-root", AppElement);
|
||||
@@ -9,7 +9,7 @@ import topLevelAwait from "vite-plugin-top-level-await";
|
||||
import mergeAssetsDirs from "./vite-plugins/multiple-assets";
|
||||
|
||||
export default defineConfig({
|
||||
cacheDir: "../node_modules/.vite/hello-web",
|
||||
cacheDir: "../node_modules/.vite/studio-frontend",
|
||||
server:{
|
||||
port: 4200,
|
||||
host: "localhost",
|
||||
@@ -23,8 +23,8 @@ export default defineConfig({
|
||||
wasm(),
|
||||
topLevelAwait(),
|
||||
mergeAssetsDirs([
|
||||
"hello-web/public",
|
||||
"dist/hello-world/public",
|
||||
"studio-frontend/public",
|
||||
"dist/studio/public",
|
||||
]),
|
||||
],
|
||||
});
|
||||
@@ -1,15 +1,15 @@
|
||||
[package]
|
||||
name = "hello-world"
|
||||
name = "studio"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
[lib]
|
||||
name = "hello_world"
|
||||
name = "studio"
|
||||
crate-type = ["cdylib", "rlib"]
|
||||
path = "src/lib.rs"
|
||||
|
||||
[[bin]]
|
||||
name = "hello-world-standalone"
|
||||
name = "studio-standalone"
|
||||
path = "src/main.rs"
|
||||
|
||||
[dependencies]
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"name": "hello-world",
|
||||
"name": "studio",
|
||||
"$schema": "../node_modules/nx/schemas/project-schema.json",
|
||||
"projectType": "application",
|
||||
"sourceRoot": "./hello-world/src",
|
||||
"sourceRoot": "./studio/src",
|
||||
"targets": {
|
||||
"build": {
|
||||
"executor": "@nxrs/cargo:build",
|
||||
@@ -19,11 +19,11 @@
|
||||
"executor": "nx:run-commands",
|
||||
"options": {
|
||||
"commands": [
|
||||
"wasm-pack build --out-dir ../dist/hello-world/ -- --features wasm",
|
||||
"wasm-pack build --out-dir ../dist/studio/ -- --features wasm",
|
||||
"node scripts/copy-assets.mjs"
|
||||
],
|
||||
"cwd": "hello-world",
|
||||
"envFile": "hello-world/.env",
|
||||
"cwd": "studio",
|
||||
"envFile": "studio/.env",
|
||||
"parallel": false
|
||||
}
|
||||
},
|
||||
@@ -32,7 +32,7 @@
|
||||
"options": {
|
||||
"release": false,
|
||||
"run": true,
|
||||
"bin": "hello-world-standalone"
|
||||
"bin": "studio-standalone"
|
||||
}
|
||||
},
|
||||
"test": {
|
||||
@@ -5,7 +5,7 @@ import url from "node:url";
|
||||
async function main() {
|
||||
const __dirname = url.fileURLToPath(new URL(".", import.meta.url));
|
||||
const assetsSrc = path.resolve(__dirname, "../assets");
|
||||
const assetsDest = path.resolve(__dirname, "../../dist/hello-world/public/assets");
|
||||
const assetsDest = path.resolve(__dirname, "../../dist/studio/public/assets");
|
||||
|
||||
await fs.cp(assetsSrc, assetsDest, { recursive: true });
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fn main() {
|
||||
studio::init();
|
||||
}
|
||||
+1
-1
@@ -15,7 +15,7 @@
|
||||
"skipDefaultLibCheck": true,
|
||||
"baseUrl": ".",
|
||||
"paths": {
|
||||
"@storyteller/hello-world": ["dist/hello-world"]
|
||||
"@storyteller/studio": ["dist/studio"]
|
||||
}
|
||||
},
|
||||
"exclude": ["node_modules", "tmp"]
|
||||
|
||||
Reference in New Issue
Block a user