Skip to content

Commit

Permalink
Add separate watch script for browser and electron (#178)
Browse files Browse the repository at this point in the history
fixed #176

Signed-off-by: Jonas Helming <jhelming@eclipsesource.com>
  • Loading branch information
JonasHelming committed Jan 5, 2024
1 parent a9825f4 commit 15b5b26
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions templates/README.md
Expand Up @@ -48,7 +48,7 @@ Open http://localhost:3000 in the browser.

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

yarn watch
yarn watch:browser

*or* watch only specific packages with

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

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

yarn watch
yarn watch:electron

*or* watch only specific packages with

Expand Down
3 changes: 2 additions & 1 deletion templates/root-package.json
Expand Up @@ -11,7 +11,8 @@
"postinstall": "theia check:theia-version",
"start:browser": "yarn --cwd browser-app start",
"start:electron": "yarn --cwd electron-app start",
"watch": "lerna run --parallel watch"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>
"watch:browser": "lerna run --parallel watch --ignore electron-app"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>,
"watch:electron": "lerna run --parallel watch --ignore browser-app"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>
},
"devDependencies": {
"lerna": "<%= params.lernaVersion %>"
Expand Down

0 comments on commit 15b5b26

Please sign in to comment.