-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Mise tasks as well as refactoring build and versioning
- Loading branch information
1 parent
2b31fb9
commit 6434ffb
Showing
3 changed files
with
118 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
[tools] | ||
# specify single or multiple versions | ||
pnpm = 'latest' | ||
node = 'lts' | ||
rust = '1.79.0' | ||
|
||
|
||
[tasks."build"] | ||
depends = ["build:*"] | ||
description = 'Build the CLI' | ||
|
||
[tasks."build:backend"] | ||
description = 'Build the Backend' | ||
run = "node --no-warnings=ExperimentalWarning 'util/build.mjs' -o backend" | ||
sources = ['backend/Cargo.toml', 'backend/src/**/*.rs'] | ||
outputs = ['build/bin/backend'] | ||
|
||
[tasks."build:frontend"] | ||
description = 'Build the Frontend' | ||
run = "node --no-warnings=ExperimentalWarning 'util/build.mjs' -o frontend" | ||
sources = ['package.json', 'lib/package.json', '{src,lib}/**/*.{ts,tsx,codegen}'] | ||
outputs = ['dist/index.js'] | ||
|
||
[tasks."build:collect"] | ||
depends = ["build:backend", "build:frontend"] | ||
description = 'Collect the build artifacts' | ||
run = "node --no-warnings=ExperimentalWarning 'util/build.mjs' -o collect" | ||
sources = ['backend/target/release/backend', 'dist/index.js', 'main.py', 'package.json', 'plugin.json', 'README.md'] | ||
outputs = ['build/**/*.*'] | ||
|
||
[tasks."upload"] | ||
depends = ["build"] | ||
description = 'Upload MicroSDeck to the SteamDeck' | ||
run = "node --no-warnings=ExperimentalWarning 'util/build.mjs' -o upload" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters