registry-viewer
Devfile Registry UI
This is a Next.js project bootstrapped with create next-app --example with-patternfly
.
Quickstart
-
Fork this repository and clone it to your local device.
-
Create a new branch:
git checkout -b MY_BRANCH_NAME
-
Install yarn:
npm install -g yarn
-
Install the dependencies with:
yarn
-
Start developing and watch for code changes:
yarn dev
Scripts
"scripts": {
"analyze": "cross-env ANALYZE=true next build",
"dev": "next",
"build": "next build",
"start": "next start",
"clean": "rimraf .next/ .nyc_output/ coverage/ docs/ out/ node_modules/",
"cypress:start": "concurrently --names 'CYPRESS,SERVER' --prefix-colors 'yellow,blue' \"yarn cypress open\" \"yarn build && yarn start\"",
"typedoc:build": "typedoc --tsconfig .",
"typedoc:start": "npx serve docs",
"jest:test": "jest --watchAll --verbose",
"test": "cypress run",
"lint": "prettier --check .",
"format": "prettier --write .",
"prepare": "husky install"
}
analyze
- Runsnext build
and analyzes the webpack bundle sizedev
- Runsnext dev
which starts Next.js in development modebuild
- Runsnext build
which builds the application for production usagestart
- Runsnext start
which starts a Next.js production serverclean
- Slims the directorycypress:start
- Runs cypress concurrently with a production buildtypedoc:build
- Runs typedoc to generate docstypedoc:start
- Serves the docsjest:test
- Runs all jest teststest
- Runs all cypress and jest testslint
- Checks the formatting of all filesformat
- Formats all filesprepare
- System script for auto formatting before committing
Contributing
Please see our contributing.md.
License
Apache License 2.0, see LICENSE for details.