Closed AsaAyers closed 5 years ago
Do you have any advice on how to debug these compilers? So far my process has been:
electron-compilers
and in its directory:
npm link
npm run compile -- --watch
electron-compile
and in its directory:
npm link electron-compilers
npm run compile -- --watch
npm test
At this point I have the existing tests running with the new compiler. Now I'm trying to use this in a project created with electron-forge init
(AsaAyers/media-backup).
electron-compile
npm link
media-backup
and in its directory:
npm install
npm link electron-compile
ln -sfn $(readlink -e node_modules/electron-compile) node_modules/electron-compile
node_modules
into /tmp
it breaks symlinks. readlink
will find the absolute path of the final destination so that when the symlink gets copied it will still work from /tmp
npm start
npm run make
elmCompiler.compileSync
crashes, I'm working on figuring out why.elm-stuff
folder that needs to be treated like node_modules
I haven't figured out how to test this in a real app with
electron-forge
yet, but the tests inelectron-compiler
pass.elm-compile PR: https://github.com/electron/electron-compile/pull/264 elm-compilers PR: https://github.com/electron/electron-compilers/pull/82