Replies: 2 comments 3 replies
-
One snag with attempting this is that We can't have symlinks because the app can't be bundled with a symlink - we need hard copies. There's a workaround, but it requires us to do this 'packing' step and will still require some kind of update mechanism to run during development. But it does solve the problem of colocation... |
Beta Was this translation helpful? Give feedback.
3 replies
-
Implemented in NativePHP/electron#109 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Rationale
Right now, the separation of these two packages causes some overhead:
electron-plugin
) requires an 'unusual' workflow (npm version ... && npm publish
); This is different from the more convenient approach that Composer/Packagist use: watching and referencing GitHub releases.electron-plugin
forces a release ofnativephp/electron
, to update the version ofelectron-plugin
that it references internally (resources/js/package.json
).package.json
) in order to use their local code instead of the pre-builtdist
code from npm.Proposal
Move
electron-plugin
code intoresources/js/electron-plugin
innativephp/electron
.As
nativephp/electron
is the only part of the toolchain that referenceselectron-plugin
, it could easily reference a file path internal to itself and doesn't need to be listed at all on NPM (or other Node package directory).Result
electron-plugin
would cease to exist as a separate dependency and repository - its files would be included directly innativephp/electron
and then referenced by a relative path from the internalpackage.json
.nativephp/electron
would be all that's required.package.json
and could 'just work' as part of thenative:serve
command.Perhaps I haven't thought of everything here. Maybe there's some problem with this approach that I'm being completely blind to? Please let me know your thoughts in the comments.
Beta Was this translation helpful? Give feedback.
All reactions