Skip to content

Commit e872e3f

Browse files
authored
Add EN Windows instructions for package.json scripts
English
1 parent 0dd1cd3 commit e872e3f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

src/content/3/en/part3b.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -388,6 +388,15 @@ The script looks like this
388388
}
389389
}
390390
```
391+
392+
##### Note for Windows users
393+
Note that the standard shell commands in `build:ui` do not natively work in Windows. Powershell in Windows works differently, in which case the script could be written as
394+
```json
395+
"build:ui": "Remove-Item -Recurse -Force build && cd ../frontend && npm run build && Copy-Item build -Recurse ../backend",
396+
```
397+
398+
If the script does not work on Windows, confirm that you are using Powershell and not Command Prompt. If you have installed Git Bash or another Linux-like terminal, you may be able to run Linux-like commands on Windows as well.
399+
391400
392401
The script _npm run build:ui_ builds the frontend and copies the production version under the backend repository. _npm run deploy_ releases the current backend to Fly.io.
393402

0 commit comments

Comments
 (0)