This repository has been archived by the owner on Mar 26, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. Switch building to webpack to make resources copy automatically 2. Get rid of copying the whole node_modules dir by `npm install`ing only required dependencies
- Loading branch information
Showing
5 changed files
with
43 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
projector-launcher/electronapp/src/main/resources/package.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"main": "electronapp.js", | ||
"devDependencies": {}, | ||
"dependencies": { | ||
"electron": "^10.1.2", | ||
"open": "^7.2.1" | ||
}, | ||
"scripts": { | ||
"electron": "electron ." | ||
}, | ||
"peerDependencies": {}, | ||
"optionalDependencies": {}, | ||
"bundledDependencies": [], | ||
"keywords": [ | ||
"projector", | ||
"jetbrains", | ||
"kotlin", | ||
"kotlin-js" | ||
], | ||
"author": "projector", | ||
"license": "MIT", | ||
"name": "projector-launcher", | ||
"description": "Desktop launcher for Projector, written in Kotlin, Electron and Node", | ||
"version": "1.0.0" | ||
} |
6 changes: 6 additions & 0 deletions
6
projector-launcher/electronapp/webpack.config.d/webpack.config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
// todo: remove after https://youtrack.jetbrains.com/issue/KT-35327 is fixed | ||
config.target = 'electron-renderer'; | ||
|
||
// todo: remove after https://youtrack.jetbrains.com/issue/KT-40159 is fixed | ||
config.output = config.output || {}; | ||
config.output.globalObject = "this"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters