This repo consists of the following npm modules:
- @mia-platform/api-explorer: the React components that make up the explorer;
- @mia-platform/markdown: the markdown parser;
- @mia-platform/syntax-highlighter: the syntax highlighter in use on ReadMe;
- @mia-platform/oas-extensions: an exported object of Readme.io's OAS extensions;
- @mia-platform/variable.
git clone git@github.com:mia-platform/api-explorer.git
cd api-explorer
npm install
npm run boot # Installs all packages using lernanpm testTo spin up an example server:
npm startnpx lerna versionand select the desired version tag (major/minor/patch/etc...)
npm run buildnpm run deploynpx lerna publishif publish fails with error Current HEAD is already released it's generally due to the fact that a version has already been tagged and there's no new change; in order to make sure it's published use
npx lerna publish from-gitso that lerna will not try to create a new version tag and publish the current version from the tag in the git repository.
MIT