Skip to content

Commit

Permalink
Add Powershell commands to README.md (#3515)
Browse files Browse the repository at this point in the history
  • Loading branch information
Gua-naiko-che authored and gaearon committed Jan 9, 2018
1 parent 5d154cb commit 373687f
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions packages/react-scripts/template/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -932,6 +932,12 @@ set "REACT_APP_SECRET_CODE=abcdef" && npm start

(Note: Quotes around the variable assignment are required to avoid a trailing whitespace.)

#### Windows (Powershell)

```Powershell
($env:REACT_APP_SECRET_CODE = "abcdef") -and (npm start)
```

#### Linux, macOS (Bash)

```bash
Expand Down Expand Up @@ -1179,6 +1185,12 @@ To do this, set the `HTTPS` environment variable to `true`, then start the dev s
set HTTPS=true&&npm start
```

#### Windows (Powershell)

```Powershell
($env:HTTPS = $true) -and (npm start)
```

(Note: the lack of whitespace is intentional.)

#### Linux, macOS (Bash)
Expand Down Expand Up @@ -1527,6 +1539,16 @@ set CI=true&&npm run build

(Note: the lack of whitespace is intentional.)

##### Windows (Powershell)

```Powershell
($env:CI = $true) -and (npm test)
```

```Powershell
($env:CI = $true) -and (npm run build)
```

##### Linux, macOS (Bash)

```bash
Expand Down

0 comments on commit 373687f

Please sign in to comment.