Before creating new commits or submitting a pull request, please make sure the following is done...
-
Fork the repo and create your branch from
master.$ git clone https://github.com/<your_username>/mandoc $ cd mandoc $ git checkout -b my_branch
-
ManDoc uses Lerna for managing and developing multiple packages and running development scripts. Run
npm installwill install all declareddevDependenciesinto the root of this Lerna Repo, where thelernacommand itself is also included. -
Run
npx lerna bootstrap. This command will installs all of the packages' dependencies and links any cross-dependencies through thelernacommand installed previously.
Before you submit pull request, use it yourself manually.
ManDoc command could be directly run from TypeScript code base with lerna:
$ npx lerna run mandoc:mandoc -- --template=mandoc-template-paper /path/to/mdCurrently, Unit tests scripts is conducted within mandoc, the main package,
having a test directory.
ManDoc test scripts are using Facebook Jest, which is installed in the root
of this Lerna Repo. Hence, Test Commands needed to be executed through
lerna run
$ npx lerna run --scope=mandoc test -- stream.testCommitizen friendly is applied in this repository, which has very precise
rules over how git commit messages can be formatted and leads to
more readable message for generating the ManDoc change log. Helper script
npm run commit provides command line based wizard to format commit message
easily, powered by git-cz from the commitizen package.