Skip to content

Latest commit

 

History

History
121 lines (79 loc) · 1.45 KB

commands.md

File metadata and controls

121 lines (79 loc) · 1.45 KB

Command Line Commands

Development

yarn dev

or

npm run dev

Starts the development server running on http://localhost:3000

Server

Development

yarn dev

or

npm run dev

Starts the development server and makes your application accessible at localhost:3000. Changes in the application code will be hot-reloaded.

Production

yarn build && yarn start

or

npm run build && npm run start
  • dev - Runs next which starts Next.js in development mode
  • build - Runs next build which builds the application for production usage
  • start - Runs next start which starts a Next.js production server

Building

yarn build

or

npm run build

Preps your app for deployment (does not run tests). Optimizes and minifies all files, piping them to the src/.next folder.

Unit testing

yarn test

or

npm run test

Tests your application with the unit tests specified in the **/tests/*.js files throughout the application.

Watching

yarn test:watch

or

npm run test:watch

Watches changes to your application and re-runs tests whenever a file changes.

Linting

yarn lint

or

npm run lint

Lints your JavaScript.

Prettier

yarn prettier

or

npm run prettier

Lints your JavaScript.

Lints your code and tries to fix any errors it finds.