This is a Next.js project bootstrapped with create next-app --example with-patternfly
.
"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
npm run dev
# or
yarn dev
Open http://localhost:3000 with your browser to see the result.
You can start editing the page by modifying pages/index.js
. The page auto-updates as you edit the file.
Create an optimized production build of your application:
npm run build
# or
yarn build
Start the application in production mode:
npm run start
# or
yarn start