Wanted to figure out the build process for Atom, and how it uses Electron
have a bunch of questions, they are related only by this fact
How does Atom use Electron ?
I see that there is a
require("electron")in a couple of places. but there is no electron is package.json. nor is it
installed by a dependency. checked by doing a
yarninstall and checking the 'yarn.lock` file
script/buildworks ie. does not give an error (even though the generated app gives an error - have mentioned the
stacktrace below). So where does it install Electron. did not find it in vendor as well
Atom has it’s own build script ?
Atom does not use
electron-builderor some such ?
Is there a package for the atom build process ?
What is the development process like ?
did not find a “start” script or some such in
package.json. only preinstall and test
ie. something which will open up an Electron app locally
PS: after opening the built app on OSX 10.10.5, get an error backtrace saying
Uncaught Exception: Error: Module version mismatch. Expected 49, got 48. at Error (native) at process.module.(anonymous function) [as dlopen] (ELECTRON_ASAR.js:168:20) at Object.Module._extensions..node (module.js:583:18) at Object.module.(anonymous function) [as .node] (ELECTRON_ASAR.js:182:18) at Module.load (module.js:473:32) at tryModuleLoad (module.js:432:12) at Function.Module._load (module.js:424:3) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object.<anonymous> (/Users/deepak/Code/atom/out/Atom.app/Contents/Resources/app.asar/node_modules/nslog/lib/nslog.js:5:11)