Skip to content

Latest commit

 

History

History
67 lines (38 loc) · 1.72 KB

CONTRIBUTING.md

File metadata and controls

67 lines (38 loc) · 1.72 KB

Contributing

Requirements

To set up a development environment, you need the following installed:

Set up development environment

After installing, get started with the following steps on a command line:

  1. Clone the repository

    git clone https://github.com/iTwin/ecjson2md/
  2. Run either npm install or npm ci

  3. Build ecjson2md

    npm run build
  4. Run the tests and ensure they all pass

    npm run test

Optionally, to generate code coverage, run

npm run cover

Building integration test assets

Only build these when all unit tests are passing after local changes.

  1. Execute npm run cli:dev to locally install ecjson2md from the development build

  2. Navigate to ./test/Assets/dir/

  3. Execute ecjson2md -i ./example.json -r ./ -o ./ example.json being each json schema that has an associated markdown file.

Submitting pull requests

Note that these command line steps can be done in a few mouse clicks with Github Desktop installed. Steps:

  1. Stage files for commit using the normal workflow

  2. Create a new local branch for the changes using git checkout -b <branch>

  3. Commit the changes to this new branch

  4. Publish the branch using git push -u origin <branch>

  5. Browse to the GitHub repo and create a new pull request, using your newly created branch as the source as master as the destination