- 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 --overrideto test it against a folder insideabledev-cli. You'd have to add it to.gitignoreif you do this. - Or use
yarn abledev new ../ComponentName --override --path ComponentNameto use another folder outsideabledev-cli. You don't need to ignore an additional folder if you do this, and because there's no nestedpackage.jsonfiles, this would be more realistic.
overrideignores an existing folder in the path location, so this can be used many times to test something. Ifoverrideis 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.