Skip to content

Commit 15b5b26

Browse files
authored
Add separate watch script for browser and electron (#178)
fixed #176 Signed-off-by: Jonas Helming <[email protected]>
1 parent a9825f4 commit 15b5b26

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

templates/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Open http://localhost:3000 in the browser.
4848

4949
Start watching all packages, including `browser-app`, of your application with
5050

51-
yarn watch
51+
yarn watch:browser
5252

5353
*or* watch only specific packages with
5454

@@ -65,7 +65,7 @@ Run the example as [described above](#Running-the-browser-example)
6565

6666
Start watching all packages, including `electron-app`, of your application with
6767

68-
yarn watch
68+
yarn watch:electron
6969

7070
*or* watch only specific packages with
7171

templates/root-package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@
1111
"postinstall": "theia check:theia-version",
1212
"start:browser": "yarn --cwd browser-app start",
1313
"start:electron": "yarn --cwd electron-app start",
14-
"watch": "lerna run --parallel watch"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>
14+
"watch:browser": "lerna run --parallel watch --ignore electron-app"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>,
15+
"watch:electron": "lerna run --parallel watch --ignore browser-app"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>
1516
},
1617
"devDependencies": {
1718
"lerna": "<%= params.lernaVersion %>"

0 commit comments

Comments
 (0)