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>
This commit is contained in:
Nathan.fooo
2023-02-13 19:24:16 +08:00
committed by GitHub
parent 59cb4a890a
commit 51041f6860
65 changed files with 110 additions and 106 deletions

View File

@ -119,7 +119,7 @@ fn generate_ts_protobuf_files(
let mut output = PathBuf::new();
output.push(root);
output.push(tauri_backend_service_path);
output.push("classes");
output.push("models");
output.push(name);
if !output.as_path().exists() {

View File

@ -81,7 +81,7 @@ pub fn gen(crate_name: &str) {
Ok(ref mut file) => {
let mut export = String::new();
export.push_str("// Auto-generated, do not edit \n");
export.push_str(&format!("export * from '../../classes/{}';\n", crate_name));
export.push_str(&format!("export * from '../../models/{}';\n", crate_name));
export.push_str(&format!("export * from './{}';\n", event_file));
file.write_all(export.as_bytes()).unwrap();
File::flush(file).unwrap();