PowerPlan

Introduction

This is the PowerPlan monorepo for the frontend applications. This monorepo is based and managed by Nx tools. Here we can Angular applications as well as React and some other frameworks.

Getting started

To get started first clone the project and run npm install to install all dependencies. To get easier introduction to use Nx is recommended to install the CLI so all commands can be executed without having to run them through npx. To install the CLI just run:

Example :
npm install --global @nrwl/cli

This will install the CLI globally in your machine.

You should be good to go.

Build and Test

Building and testing using Nx is rather simple. First the only parts of the repo that are "buildable" are the applications in app folder. To build any of them simple run:

Example :
nx build app-name # This builds the app for non prod mode.
nx build app-name --prod # This builds the app for prod mode.

To unit test the affected libraries and applications run:

Example :
nx affected:test --parallel # Runs unit testing for all affected apps and libraries
nx affected:test --parallel --only-failed # Runs only the tests that failed previously

The --parallel switch is optional but helps in speeding up the testing process.

results matching ""

    No results matching ""