You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: DEVELOPER.md
+13-6Lines changed: 13 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,13 @@ Follow these instructions to start up Sofie Core in development mode. (For produ
30
30
git clone -b main https://github.com/Sofie-Automation/sofie-core.git
31
31
cd sofie-core
32
32
yarn
33
-
yarn start
33
+
yarn dev # Install and build all packages, then start in dev mode with file watching
34
+
35
+
# Or
36
+
37
+
yarn
38
+
yarn build # Install and build all packages
39
+
yarn start # Start Sofie Core (no file watching)
34
40
```
35
41
36
42
> 💡 First startup may take a while, especially on Windows. To speed things up, consider adding `%LOCALAPPDATA%\.meteor` and the directory where you cloned `server-core` to your Windows Defender virus protection exclusions.
@@ -60,22 +66,23 @@ The Sofie ui (served by Vite) can be accessed at `http://localhost:3005`. The me
60
66
4. Start development mode
61
67
62
68
```bash
63
-
yarn dev
69
+
yarn dev# Install and build all packages, then start in dev mode with file watching
64
70
```
65
71
66
72
5. In another window, start the playout-gateway. You will need to manually restart this upon making changes
67
73
68
74
```bash
69
75
cd sofie-core/packages/playout-gateway
70
-
yarn buildstart
76
+
yarn build # If needed
77
+
yarn start
71
78
```
72
79
73
80
### Lowering memory, CPU footprint in development
74
81
75
-
If you find yourself in a situation where running Sofie in development mode is too heavy, but you're not planning on modifying any of the low-level packages in the `packages` directory, you may want to run Sofie in the _UI-only mode_, in which only meteor and the ui will be rebuilt and type-checked on modification:
82
+
If you find yourself in a situation where running Sofie in development mode is too heavy, but you're not planning on modifying any of the low-level packages in the `packages` directory, you may want to run Sofie without file watching and type-checking.
76
83
77
84
```bash
78
-
yarn dev --ui-only
85
+
yarn start # Start Sofie Core (no file watching, requires a `yarn build` first)
79
86
```
80
87
81
88
### Dealing with Strange Errors
@@ -84,7 +91,7 @@ If you get any strange errors (such as the application crashing, "Unable to reso
84
91
85
92
```bash
86
93
yarn reset # Removes all installed dependencies and build artifacts
0 commit comments