@starbeam-dev/dev-mode
v0.9.1
Published
Simple scripts to use when developing packages
Downloads
2
Readme
dev-mode
⚠️🚧⚠️ Under Construction ⚠️🚧⚠️
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.
Table of Contents
Install
$ pnpm i -D dev-mode
Assumptions
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
.
Usage
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"
}
}
API
Maintainers
Contributing
PRs accepted.
Small note: If editing the README, please conform to the standard-readme specification.
License
MIT © 2023 Yehuda Katz