- Install dependencies:
yarn
- Run tests or test a specific command by calling them with
yarn abledev [command] [arguments]
.
This creates a new isolated component folder. To test it against an existing folder:
- Use
yarn abledev new ComponentName --override
to test it against a folder insideabledev-cli
. You'd have to add it to.gitignore
if you do this. - Or use
yarn abledev new ../ComponentName --override --path ComponentName
to use another folder outsideabledev-cli
. You don't need to ignore an additional folder if you do this, and because there's no nestedpackage.json
files, this would be more realistic.
override
ignores an existing folder in the path location, so this can be used many times to test something. Ifoverride
is not added, we will error.
It basically runs ts-node ./abledev/devServer.ts
from an isolated component.
It will probably do more in the future but for now, this is enoguh.