LinuxCommandLibrary
GitHubF-DroidGoogle Play Store

react-scripts

Create React App build and development scripts

TLDR

Start development server
$ react-scripts start
copy
Build for production
$ react-scripts build
copy
Run tests
$ react-scripts test
copy
Eject configuration
$ react-scripts eject
copy

SYNOPSIS

react-scripts command [options]

DESCRIPTION

react-scripts is the build tool for Create React App. It encapsulates webpack, Babel, ESLint, and other tools with zero configuration, handling development server, building, and testing.

EXAMPLES

$ # Start dev server (port 3000)
npm start
# or
react-scripts start

# Production build
npm run build
# Creates build/ directory

# Run tests
npm test

# Run tests with coverage
npm test -- --coverage

# Eject (one-way operation)
npm run eject
copy

COMMANDS

start

Start development server.
build
Create production build.
test
Run test suite.
eject
Expose configuration files.

ENVIRONMENT VARIABLES

$ PORT=3001 npm start              # Custom port
BROWSER=none npm start           # Don't open browser
GENERATE_SOURCEMAP=false npm build  # No sourcemaps
CI=true npm test                 # CI mode
copy

PROXY SETUP

$ // package.json
{
  "proxy": "http://localhost:5000"
}
copy

CAVEATS

Eject is irreversible. Limited customization without ejecting. Consider CRACO for config overrides.

HISTORY

react-scripts was created by Facebook as part of Create React App (2016) to simplify React development setup.

SEE ALSO

npm(1), vite(1)

Braincup
Open source brain training for math, memory and focus
Braincup mini-games
41 mini-games · Apache-2.0
No ads · No tracking
Play in browser
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid
276 stars
From the maker of Linux Command Library
Copied to clipboard
Braincup
Open source brain training for math, memory and focus. 41 mini-games, from mental arithmetic to Sudoku, N-Back and Solo Chess.
Apache-2.0 licensed · No ads · No tracking · No account
From the maker of Linux Command Library
Download Braincup on the App StoreGet Braincup on Google PlayGet Braincup on F-Droid