- Make sure
node
is installed with a version at least 12 - We are using
yarn
, make sure you have it installed. - We recommand using
nvm
to manage different node versions locally. - Fork and clone to your machine the
ng-bootstrap/schematics
repository. - From the root of the project, run
yarn
.
To build the project, run yarn build
. To incrementally re-buid the project on file changes, run yarn build --watch
.
Project only support unit tests. To run them, run yarn test
.
To run them in watch mode, run yarn test --watch
and follow Jest CLI options.
In order to test locally on a given Angular CLI application, you must install globally @angular-devkit/schematics-cli
and use schematics
command line tool:
- start the build task in watch mode, run
yarn build --watch
- scaffold an application using Angular CLI, run
ng new testApp && cd testApp
- test with
schematics <path-to-your-clone>/dist/collection.json:<schematic-name> --eventual-option=option-value
By default, schematics
will behave as Angular CLI, expect a few different default values such as --debug
mode which is active, and --dry-run
which is false
.
For more options, checkout schematics
documentation with schematics --help
Please run yarn ci
to check all integration tasks locally