Walidoux 90720c34f9
feat(all-in-one): update prettier config, enable format on save
Update the VSCode settings.json to include the Prettier VSCode formatter, and enable formatting on save. A new LICENSE file is added to comply with the MIT license due to the open-source nature of the project. The README.md file has now core features and to-dos that should be taken care of as the project continues to evolve. The index.html file is modified to match changes in src/index.tsx. The postcss configuration files are created, and some files are updated. Finally, new files like build.rs, draworder.json, and commands.rs were created
2023-05-02 15:51:22 +01:00

28 lines
818 B
Rust

#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
pub mod commands;
pub mod structs;
pub mod utils;
use commands::download_gamedata;
use specta::collect_types;
use tauri_specta::ts;
fn main() {
ts::export(collect_types![download_gamedata], "../src/tools/rusty.ts").unwrap();
// This is useful for custom eslint, prettier overrides at the top of the file.
// ts::export_with_cfg_with_header(
// collect_types![download_gamedata].unwrap(),
// Default::default(),
// "../src/tools/rusty.ts",
// "/* eslint-disable */\n".into(),
// )
// .unwrap();
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![download_gamedata])
.run(tauri::generate_context!())
.expect("error while running tauri application");
}