-
Notifications
You must be signed in to change notification settings - Fork 240
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] Feature/uepr 40 desktop feature parity #461
base: develop
Are you sure you want to change the base?
[WIP] Feature/uepr 40 desktop feature parity #461
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wow, there's a lot going on here! There are a couple of things to change, but they're pretty minor... overall this looks good to me. It looks like maybe the development experience is even a little better than before...?
Do you think scratch-webpack-configuration
would help here, or would that just complicate things? I'm not suggesting to add it to this PR, just curious about a possible future step.
"build:dev": "NODE_ENV=production npm run compile && npm run doBuild -- --mode=dev", | ||
"build:dir": "NODE_ENV=production npm run compile && npm run doBuild -- --mode=dir", | ||
"build:dist": "NODE_ENV=production npm run compile && npm run doBuild -- --mode=dist", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why is NODE_ENV=production
necessary here?
Assuming it is necessary, could you set this up to use crossenv
instead? That will allow Windows users to run these commands, too.
shell: true | ||
}); | ||
|
||
mainProcess.on('exit', async (code) => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hmm... can't you do something like await spawn(...)
?
(does some web searching)
...nevermind, this looks good. 😅
|
||
const devToolKey = ((process.platform === 'darwin') ? | ||
{ // macOS: command+option+i | ||
const devToolKey = ((process.platform === 'darwin' || process.platform === 'linux') ? | ||
{ // macOS / linux: command+option+i |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Linux wants the same control+shift+i
key combo as Windows here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Linux wants the same
control+shift+i
key combo as Windows here
as a former linux user (and still somewhat uses it), i can confirm
const baseUrl = (isDevelopment ? | ||
`http://localhost:${process.env.ELECTRON_WEBPACK_WDS_PORT}/` : | ||
`file://${__dirname}/` | ||
const baseUrl = (isDevelopment ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const baseUrl = (isDevelopment ? | |
const baseUrl = (isDevelopment ? |
Resolves
Resolves https://scratchfoundation.atlassian.net/browse/UEPR-140
Proposed Changes
Reason for Changes