2021-10-13 14:37:57 +00:00
|
|
|
{
|
2022-02-24 12:10:45 +00:00
|
|
|
"compilerOptions": {
|
|
|
|
"strict": true,
|
|
|
|
"useUnknownInCatchVariables": true,
|
|
|
|
"noImplicitOverride": true
|
|
|
|
},
|
2023-07-04 05:05:54 +00:00
|
|
|
"imports": {
|
|
|
|
"https://deno.land/std@$STD_VERSION/": "./"
|
2022-03-17 16:31:32 +00:00
|
|
|
},
|
|
|
|
"tasks": {
|
2023-10-19 01:04:49 +00:00
|
|
|
"test": "deno test --doc --unstable --allow-all --parallel --coverage=./cov --trace-ops",
|
2023-03-18 12:36:00 +00:00
|
|
|
"test:browser": "git grep --name-only \"This module is browser compatible.\" | grep -v deno.json | grep -v .github/workflows | grep -v _tools | xargs deno check --config browser-compat.tsconfig.json",
|
2022-12-13 04:07:56 +00:00
|
|
|
"fmt:licence-headers": "deno run --allow-read --allow-write ./_tools/check_licence.ts",
|
2023-11-15 10:35:14 +00:00
|
|
|
"lint:deprecations": "deno run --allow-read --allow-net --allow-env=HOME ./_tools/check_deprecation.ts",
|
2022-11-01 17:50:00 +00:00
|
|
|
"lint:doc-imports": "deno run --allow-env --allow-read ./_tools/check_doc_imports.ts",
|
2023-08-25 09:07:15 +00:00
|
|
|
"lint:circular": "deno run --allow-env --allow-read --allow-net=deno.land ./_tools/check_circular_submodule_dependencies.ts",
|
2023-09-13 13:11:01 +00:00
|
|
|
"lint:tools-types": "deno check _tools/*.ts",
|
|
|
|
"lint": "deno lint && deno task fmt:licence-headers --check && deno task lint:deprecations && deno task lint:doc-imports && deno task lint:circular && deno task lint:tools-types",
|
2023-06-26 06:23:09 +00:00
|
|
|
"typos": "typos -c ./.github/workflows/typos.toml",
|
2022-11-07 06:53:46 +00:00
|
|
|
"build:crypto": "deno task --cwd crypto/_wasm wasmbuild",
|
2023-10-29 04:23:03 +00:00
|
|
|
"wasmbuild": "deno run --unstable -A https://deno.land/x/wasmbuild@0.15.0/main.ts --js-ext mjs --sync",
|
|
|
|
"cov:clean": "rm -rf cov html_cov cov.lcov",
|
|
|
|
"cov:gen": "deno coverage ./cov/ --lcov --output=cov.lcov",
|
2023-10-30 01:21:25 +00:00
|
|
|
"cov:view": "genhtml --ignore-errors unmapped -o html_cov cov.lcov && open html_cov/index.html",
|
2023-11-02 01:03:55 +00:00
|
|
|
"ok": "deno task lint && deno fmt --check && deno task test:browser && deno task test"
|
2023-07-04 05:05:54 +00:00
|
|
|
},
|
|
|
|
"exclude": [
|
|
|
|
".git",
|
|
|
|
"crypto/_wasm/target",
|
|
|
|
"cov",
|
|
|
|
"jsonc/testdata",
|
2023-11-15 10:16:55 +00:00
|
|
|
"front_matter/testdata"
|
2023-07-04 05:05:54 +00:00
|
|
|
]
|
2021-10-13 14:37:57 +00:00
|
|
|
}
|