AppFlowy/frontend/scripts/makefile/tauri.toml
Nathan.fooo 51041f6860
CI: Appflowy tauri ci (#1851)
* chore: add notification parser

* chore: rename classes to models

* refactor: add effects and reducers folder

* chore: update eslint version

* chore: run npx eslint --fix src

* fix: ParserOptions.project error by ignore linting the  .eslintrc.cjs

* ci: add tauri lint

* ci: disable ubuntu and windows tauri ci

* ci: install

---------

Co-authored-by: Annie <anqi.annie.wang@gmail.com>
2023-02-13 19:24:16 +08:00

54 lines
1.3 KiB
TOML

[tasks.build_tauri_backend]
description = "Build the Tauri backend"
script = ["""
cd appflowy_tauri/src-tauri
cargo build
"""]
script_runner = "@shell"
[tasks.tauri_dev]
env = { RUST_LOG = "debug" }
script = ["""
cd appflowy_tauri
npm run tauri:dev
"""]
script_runner = "@shell"
[tasks.tauri_clean]
description = "Remove all the building artifacts"
run_task = { name = [
"rust_lib_clean",
"rm_macro_build_cache",
"rm_rust_generated_files",
"rm_tauri_generated_protobuf_files",
"rm_tauri_generated_event_files",
] }
[tasks.rm_tauri_generated_protobuf_files]
private = true
script = ["""
protobuf_file_paths = glob_array ${TAURI_BACKEND_SERVICE_PATH}/models
if not array_is_empty ${protobuf_file_paths}
echo Remove generated protobuf files:
for path in ${protobuf_file_paths}
echo remove ${path}
rm -rf ${path}
end
end
"""]
script_runner = "@duckscript"
[tasks.rm_tauri_generated_event_files]
private = true
script = ["""
event_file_paths = glob_array ${TAURI_BACKEND_SERVICE_PATH}/events
if not array_is_empty ${event_file_paths}
echo Remove generated protobuf files:
for path in ${event_file_paths}
echo remove ${path}
rm -rf ${path}
end
end
"""]
script_runner = "@duckscript"