To test locally:
# cd project and create link
cd /path/to/this/project
yarn link
# install this project globally and change to symlink
yarn global add file:$PWD
cd $(yarn global dir)
yarn link @c4/g
# install schematics-cli globally
yarn global add @angular-devkit/schematics-cli
and use the schematics
command line tool.
Check the documentation with
schematics --help
Create a new schematic with command:
schematics @c4/g:schematic --name=
yarn test
will run the unit tests, using Jest as a runner and test framework.
Install entr
at first, then run yarn watch
.
To publish, simply do:
yarn build
yarn publish