chore: put tasks into package.json when possible

This commit is contained in:
Zixuan Chen 2023-12-05 17:42:25 +08:00
parent 4112a28607
commit 3c735390e9
No known key found for this signature in database
4 changed files with 12 additions and 24 deletions

View file

@ -1,6 +0,0 @@
{
"tasks": {
"release": "deno run -A ./scripts/build.ts release",
"dev": "deno run -A ./scripts/build.ts dev"
}
}

View file

@ -13,7 +13,8 @@
"main": "nodejs/loro_wasm.js",
"module": "bundler/loro_wasm.js",
"scripts": {
"build": "deno task release"
"release": "deno run -A ./scripts/build.ts release",
"dev": "deno run -A ./scripts/build.ts dev"
},
"homepage": "https://loro.dev",
"author": "",

View file

@ -1,16 +0,0 @@
{
"tasks": {
"check-all": "cargo hack check --each-feature",
"build": "cargo build",
// to debug a single test use
// RUST_BACKTRACE=full DEBUG=* cargo test --package loro-internal --lib --features test_utils --features wasm -- fuzz::recursive::failed_tests::unknown --exact --nocapture &> debug.log
"test": "cargo nextest run --features=test_utils && cargo test --doc",
"test-all": "deno task test & deno task quick-fuzz & deno task test-wasm",
"test-wasm": "cd crates/loro-wasm && deno task dev && cd ../../loro-js && pnpm i && pnpm run test",
"release-wasm": "cd crates/loro-wasm && deno task release && cd ../../loro-js && pnpm i && pnpm build && pnpm run test",
"check": "cargo clippy --all-features",
"quick-fuzz": "cd crates/loro-internal && deno task quick-fuzz",
"fix": "cargo clippy --fix --features=test_utils",
"vet": "cargo vet"
}
}

View file

@ -5,7 +5,16 @@
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
"check-all": "cargo hack check --each-feature",
"build": "cargo build",
"test": "cargo nextest run --features=test_utils && cargo test --doc",
"test-all": "deno task test & deno task quick-fuzz & deno task test-wasm",
"test-wasm": "cd crates/loro-wasm && deno task dev && cd ../../loro-js && pnpm i && pnpm run test",
"release-wasm": "cd crates/loro-wasm && deno task release && cd ../../loro-js && pnpm i && pnpm build && pnpm run test",
"check": "cargo clippy --all-features",
"quick-fuzz": "cd crates/loro-internal && deno task quick-fuzz",
"fix": "cargo clippy --fix --features=test_utils",
"vet": "cargo vet"
},
"keywords": [],
"author": "",