Run vendor as separate script

This commit is contained in:
Gregory Schier
2024-08-09 06:49:18 -07:00
parent 3050995fed
commit 1f637c583a
3 changed files with 11 additions and 32 deletions

View File

@@ -83,13 +83,17 @@ jobs:
- name: Install yaak CLI
run: go install github.com/yaakapp/yaakcli@latest
- name: Run lint
run: npm run lint
- name: Vendor things for the app
run: npm run vendor
# NOTE: vendored things need to exist for tests to build
- name: Rust test
working-directory: src-tauri
run: cargo test --all
- name: Run lint
run: npm run lint
- name: Checkout yaakapp/plugins
uses: actions/checkout@v4
with:

View File

@@ -15,10 +15,11 @@
"build:icon:dev": "tauri icon design/icon-dev.png --output ./src-tauri/icons/dev",
"build": "run-p build:*",
"build:js": "vite build",
"build:vendor-protoc": "node scripts/vendor-protoc.cjs",
"build:vendor-plugins": "node scripts/vendor-plugins.cjs",
"build:vendor-node": "node scripts/vendor-node.cjs",
"build:plugin-runtime": "npm run --prefix plugin-runtime build",
"vendor": "run-p vendor:*",
"vendor:vendor-protoc": "node scripts/vendor-protoc.cjs",
"vendor:vendor-plugins": "node scripts/vendor-plugins.cjs",
"vendor:vendor-node": "node scripts/vendor-node.cjs",
"prepare": "husky install",
"replace-version": "node scripts/replace-version.cjs"
},

View File

@@ -1,26 +0,0 @@
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
// let dir = env::var("YAAK_PLUGINS_DIR").expect("YAAK_PLUGINS_DIR not set");
//
// let plugin_dirs: Vec<String> = match read_dir(dir) {
// Ok(result) => {
// let mut dirs: Vec<String> = vec![];
// for entry_result in result {
// match entry_result {
// Ok(entry) => {
// if entry.path().is_dir() {
// dirs.push(entry.path().to_string_lossy().to_string())
// }
// }
// Err(_) => {
// continue;
// }
// }
// };
// dirs
// }
// Err(_) => vec![],
// };
// start_server(plugin_dirs).await.unwrap();
Ok(())
}