ARO-RP/portal/v2
Carlo Wisse 34605d0ad6 Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
..
build Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
public Admin Portal v2 (#2019) 2022-04-06 09:06:11 -04:00
src Admin Portal v2 (#2019) 2022-04-06 09:06:11 -04:00
.eslintrc.yml Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
.gitignore Admin Portal v2 (#2019) 2022-04-06 09:06:11 -04:00
.prettierrc.yaml Admin Portal v2 (#2019) 2022-04-06 09:06:11 -04:00
README.md Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
config-overrides.js Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
package-lock.json Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
package.json Remove all reported CVE issues with npm packages, create fallbacks for polyfills, use absolute path to eslint with formatter, upgrade all packages 2022-09-12 15:36:22 +10:00
tsconfig.json Admin Portal v2 (#2019) 2022-04-06 09:06:11 -04:00

README.md

Admin Portal Version 2

REQUIRED: Install Node and NPM

Using NVM is easiest

curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.1/install.sh | bash

nvm install 16.16.0

nvm use 16.16.0

Installing, Auditing & Building

Below are instructions to install dependencies and run a build test.

Install

cd portal/v2

npm install

Audit

npm audit

Expected output: found 0 vulnerabilities

Polyfills

With the introduction of react-scripts and webpack v5.x.x polyfills for node.js core modules are no longer included by default.

As such, we need to employ a configuration override to dependencies that require them. You can find these in config-overrides

After adding the required fallback in Object.assign you need to npm install --save-dev the package that is needed.

Build

npm run build