mirror of
https://github.com/loro-dev/loro.git
synced 2024-11-24 12:20:06 +00:00
chore: put tasks into package.json when possible
This commit is contained in:
parent
4112a28607
commit
3c735390e9
4 changed files with 12 additions and 24 deletions
|
@ -1,6 +0,0 @@
|
|||
{
|
||||
"tasks": {
|
||||
"release": "deno run -A ./scripts/build.ts release",
|
||||
"dev": "deno run -A ./scripts/build.ts dev"
|
||||
}
|
||||
}
|
|
@ -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": "",
|
||||
|
|
16
deno.jsonc
16
deno.jsonc
|
@ -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"
|
||||
}
|
||||
}
|
11
package.json
11
package.json
|
@ -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": "",
|
||||
|
|
Loading…
Reference in a new issue