Skip to content
GitLab
    • Explore Projects Groups Snippets
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • C create-react-app
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,547
    • Issues 1,547
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 417
    • Merge requests 417
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Package Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • Meta
  • create-react-app
  • Merge requests
  • !3915

Allow to configure some behaviour for react-scripts start script

  • Review changes

  • Download
  • Email patches
  • Plain diff
Closed Administrator requested to merge github/fork/rarguelloF/improve-docker-experience into next 7 years ago
  • Overview 4
  • Commits 1
  • Pipelines 0
  • Changes 1

Created by: rarguelloF

This PR adds 2 new environment variables for configuring some behaviour in the react-scripts start script: NO_CLEAR_CONSOLE and NO_OPEN_BROWSER .

The motivation behind these changes is to improve the experience executing create-react-app in environments where there's not a browser installed, like in a docker container.

Also, clearing the console might prevent to see the output generated by other containers.

Compare
  • next (base)

and
  • latest version
    562284b1
    1 commit, 2 years ago

1 file
+ 1
- 1

    Preferences

    File browser
    Compare changes
packages/react-scripts/scripts/start.js
+ 1
- 1
  • View file @ 562284b1


@@ -106,7 +106,7 @@ checkBrowsers(paths.appPath)
@@ -106,7 +106,7 @@ checkBrowsers(paths.appPath)
if (err) {
if (err) {
return console.log(err);
return console.log(err);
}
}
if (isInteractive) {
if (isInteractive && !process.env.NO_CLEAR_CONSOLE) {
clearConsole();
clearConsole();
}
}
console.log(chalk.cyan('Starting the development server...\n'));
console.log(chalk.cyan('Starting the development server...\n'));
0 Assignees
None
Assign to
0 Reviewers
None
Request review from
Labels
0
None
0
None
    Assign labels
  • Manage project labels

Milestone
No milestone
None
None
Time tracking
No estimate or time spent
Lock merge request
Unlocked
1
1 participant
Administrator
Reference: facebook/create-react-app!3915
Source branch: github/fork/rarguelloF/improve-docker-experience

Menu

Explore Projects Groups Snippets