Files
storyteller-bevy/studio/project.json
T
Brooks Palin f1c1b85a98 Studio Headless Mode (#36)
This PR adds the capaibility to run Stroyteller studio from the command
line, rendering the result to images. This is the basic functionality,
and there are somethings that I am saving for later when we make this a
more fully fledged feature.

Limitations:
- Right now, you cannot do image output resolutions that aren't 2^n.
This is a bug I plan on tackling later.

If you have questions on how the command line works, use the --help
argument.

Let me know what you think!

---------

Co-authored-by: Danny McGee <dannymcgee@gmail.com>
2024-02-19 16:00:30 -07:00

62 lines
1.3 KiB
JSON

{
"name": "studio",
"$schema": "../node_modules/nx/schemas/project-schema.json",
"projectType": "application",
"sourceRoot": "./studio/src",
"namedInputs": {
"assets": ["{projectRoot}/assets/**/*"]
},
"targets": {
"build": {
"executor": "@nxrs/cargo:build",
"inputs": ["assets"],
"options": {
"release": false
},
"configurations": {
"headless" : {
"release" : true,
"bin": "studio-headless"
},
"production": {
"release": true
}
}
},
"build:web": {
"executor": "nx:run-commands",
"inputs": ["assets"],
"options": {
"command": "node scripts/build-web.mjs",
"cwd": "studio"
}
},
"dev": {
"executor": "@nxrs/cargo:run",
"options": {
"profile": "dev-custom",
"bin": "studio-standalone"
}
},
"headless": {
"executor": "nx:run-commands",
"options": {
"command": "cargo run -p studio --bin studio-headless -- {args}",
}
},
"test": {
"executor": "@nxrs/cargo:test",
"options": {}
},
"lint": {
"executor": "@nxrs/cargo:clippy",
"options": {
"fix": false,
"failOnWarnings": true,
"noDeps": true
}
}
},
"tags": []
}