Skip to content

Commit 20a970e

Browse files
committed
Update scripts to work with 1.39 and earlier Theia releases #170
* rebuild needs to be run performed before build
1 parent 0309304 commit 20a970e

File tree

4 files changed

+14
-10
lines changed

4 files changed

+14
-10
lines changed

templates/README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ Please install all necessary [prerequisites](https://github.com/eclipse-theia/th
77

88
## Running the browser example
99

10+
yarn build:browser
1011
yarn start:browser
1112

1213
*or:*
1314

14-
yarn rebuild:browser
15+
yarn build:browser
1516
cd browser-app
1617
yarn start
1718

@@ -21,11 +22,12 @@ Open http://localhost:3000 in the browser.
2122

2223
## Running the Electron example
2324

25+
yarn build:electron
2426
yarn start:electron
2527

2628
*or:*
2729

28-
yarn rebuild:electron
30+
yarn build:electron
2931
cd electron-app
3032
yarn start
3133

templates/app-browser-package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,10 @@
2020
"@theia/cli": "<%= params.theiaVersion %>"<% if (params.browserDevDependencies) { %><%- params.browserDevDependencies %><% } %>
2121
},
2222
"scripts": {
23-
"prepare": "theia build --mode development",
23+
"bundle": "yarn rebuild && theia build --mode development",
24+
"rebuild": "theia rebuild:browser",
2425
"start": "theia start",
25-
"watch": "theia build --watch --mode development"
26+
"watch": "yarn rebuild && theia build --watch --mode development"
2627
},
2728
"theia": {
2829
"target": "<%= appMode %>"

templates/app-electron-package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,10 @@
2222
"electron": "^23.2.4"
2323
},
2424
"scripts": {
25-
"prepare": "theia build --mode development",
25+
"bundle": "yarn rebuild && theia build --mode development",
26+
"rebuild": "theia rebuild:electron",
2627
"start": "theia start",
27-
"watch": "theia build --watch --mode development"
28+
"watch": "yarn rebuild && theia build --watch --mode development"
2829
},
2930
"theia": {
3031
"target": "<%= appMode %>"

templates/root-package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,12 @@
55
"node": ">=14.18.0"
66
},
77
"scripts": {
8+
"build:browser": "yarn --cwd browser-app bundle",
9+
"build:electron": "yarn --cwd electron-app bundle",
810
"prepare": "lerna run prepare",
911
"postinstall": "theia check:theia-version",
10-
"rebuild:browser": "theia rebuild:browser",
11-
"rebuild:electron": "theia rebuild:electron",
12-
"start:browser": "yarn rebuild:browser && yarn --cwd browser-app start",
13-
"start:electron": "yarn rebuild:electron && yarn --cwd electron-app start",
12+
"start:browser": "yarn --cwd browser-app start",
13+
"start:electron": "yarn --cwd electron-app start",
1414
"watch": "lerna run --parallel watch"<% if (params.rootscripts) { %><%- params.rootscripts %><% } %>
1515
},
1616
"devDependencies": {

0 commit comments

Comments
 (0)