This package is currently in a very early stage of development. It is currently being developed for the starbeam-dev
family of repositories and should probably not be used (yet) outside of that context.
A development dependency that provides scripts that you can run during during development.
It currently contains a single script:
dev-tests
: Runsvitest
from thetests
directory relative to the current git root.
$ pnpm i -D dev-mode
At the moment, the dev-mode
script is extremely opinionated and makes the following assumptions:
- Tests are in the
tests
directory relative to the current git root - Your project uses vitest. The
vitest
dependency is either in apackage.json
directly inside oftests
or in the repo root. - Typechecking is done using
vitest typecheck
.
Add the following to your package.json
:
{
"scripts": {
"test:specs": "dev-tests"
}
}
If you also want to use dev-mode
to typecheck your project, add the following to your package.json
:
{
"scripts": {
"test:specs": "dev-tests",
"test:types": "dev-tests typecheck"
}
}
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
MIT © 2023 Yehuda Katz