Skip to content
This repository has been archived by the owner on Jun 1, 2023. It is now read-only.

dsaidgovsg/swagger-ui-plugins-monorepo

Repository files navigation

swagger-ui-plugins-monorepo

This repo consists of an demo app, and the following npm packages:

  1. @dsaidgovsg/swagger-ui-plugin-otp-auth: source, npm
  2. @dsaidgovsg/swagger-ui-plugin-saml-auth: source, npm
  3. @dsaidgovsg/swagger-ui-custom-layout: source, npm
  4. @dsaidgovsg/chain-wrap-components: source, npm

Prerequisites

  • Node.js v18

Setup

Install

$ npm install 

Scripts

Development

Managing the monorepo is done by turbo

$ turbo run dev          # boot up instance, e.g. http://localhost:3000
$ turbo run test         # run tests for all packages
$ turbo run lint         # run lint for all packages
$ turbo run test:watch   # run tests in watch mode
$ turbo run build        # run build script for all packages and apps

Change logs is managed by changesets.

$ npx changeset          # cli to generate changeset, CI will auto-create a version bump PR

Screenshots

Screenshot 2023-04-12 at 6 05 19 PM