In order to run React application in development mode, run following command:
nx serve rx-xis-app
This starts the development server on port 4200.
In order to build the React project run following command:
npm run rx:bundle
This creates the build on NX directory level
In order to start storybook, run following command:
npm run storybook or yarn storybook
Following commands need to be followed in order to publish React project's build to NPM:
Create build of the React project using aforementioned command.
Update Package.json file in the React project by removing the scripts and updating dependencies. Right this is manual process due to NX quirks.
Run following command to publish the project:
yarn rx:publish
This will ask for updated version number for package and publish package to NPM. If there is no login present, developer will need to log into NPM using company provided credentials.