devtool icon indicating copy to clipboard operation
devtool copied to clipboard

File size concern

Open mattdesl opened this issue 9 years ago • 4 comments

This is a general concern that I've felt since building hihat and using it as a local dependency across multiple modules/projects. It feels pretty "dirty" to bring in a 100+ mb dependency just to add smoke tests for WebGL or what have you.

I don't see any clean/easy fix, and Electron file size is going to continue to grow as Chromium does too.

Feel free to brainstorm...

mattdesl avatar Jan 25 '16 15:01 mattdesl

npm-execspawn will try a globally installed bin if a local doesn't exist.

One idea is to create an if-electron package. Upon install, it will check if a global electron exists. If it doesn't, such as with someone unacquainted, it will install electron-prebuilt locally. Otherwise it will do nothing to fallback to the global.

This way CI servers can also be configured to install electron globally and cache the global folder.

shama avatar Jan 25 '16 16:01 shama

Related: https://github.com/atom/electron/issues/673

zeke avatar Jan 25 '16 17:01 zeke

@shama Yeah that would be interesting to explore for sure. :+1:

mattdesl avatar Jan 25 '16 21:01 mattdesl

@shama another approach: How about install electron-prebuilt only if devtool was started via https://github.com/mattdesl/install-if-needed (lol Matt also made that one).

vladikoff avatar Feb 02 '16 17:02 vladikoff