zeromq.js icon indicating copy to clipboard operation
zeromq.js copied to clipboard

zeromq.js in the Electron package is too big

Open kakyoism opened this issue 5 years ago • 1 comments

Describe the bug

zeromq works fine with my Electron-based app, but the packaging pipeline picks up the entire node_modules/zeromq folder, which amounts to over 100MB. I wonder how to quickly exclude the intermediate product and source, only reserve the necessary binary and JS/TS bindings

Reproducing

I use yarn to build my electron app this way

yarn create electron-app my-app
cd my-app
yarn add zeromq
yarn make

This generates a functional app, but carries with it all the zeromq bag built by nodegyp

zeromqjs-electron-node_modules

Expected behavior

I expect the zeromq.js build pipeline would exclude intermediate files at the end.

Tested on

  • OS: [Windows 10, macOS 10.15]
  • ZeroMQ.js version: [v6.0.0-beta.6]

kakyoism avatar Sep 22 '20 12:09 kakyoism

This may not be a problem specific to zeromq.js, but more of an Electron problem. You might get more help with this in Electron's repo, or at https://discuss.atom.io/c/electron. Zeromq.js does what it does, for Node. Then Electron packaging is a whole other thing.

trusktr avatar Sep 22 '20 17:09 trusktr