Electron Development Environment
You can use this module directly in both the main and renderer process.
Electron development environment. Electron is an open source library developed by github for building cross platform desktop applications with html css and javascript. With electron development its possible to write an application only once and distribute it everywhere without any duplication of development effort. The way it works is electron takes a main file defined in your. The resulting file can be provided to the asar module to optimize file ordering.
Electron is a framework for creating native applications with web technologies like javascript html and css. To turn your operating system into an environment capable of building desktop apps with electron you will merely need nodejs npm a code editor of your choice and a rudimentary understanding of your operating systems command line client. Thousands of organizations spanning all industries use electron to build cross platform software. Docs guides developer environment version history the developer environment document was introduced in electron v300 beta1 development environmentmd at 1000 beta12 development environmentmd at 1000 beta11 development environmentmd at 1000 beta10.
Certain electron behaviors are controlled by environment variables because they are initialized earlier than the command line flags and the apps code. Electron development is essentially nodejs development. Even though visual studio is not used for building its still required because we need the build toolchains it provides. Useful for enabling debug features only during development.
Whats more because electron apps are built using the three dominant web technologiesjavascript html and cssdevelopers can use a single code base for both web applications and desktop applications. Check if electron is running in development. Electron accomplishes this by combining chromium and nodejs into a single runtime and apps can be packaged for mac windows and linux. When electron reads from an asar file log the read offset and file path to the system tmpdir.
There are two kinds of environment variables encoded in electron production variables and development variables. A 10000 foot view of electron in a nutshell electron provides a runtime to build desktop applications with pure javascript. You can develop electron with any editor but support for building with visual studio will come in the future. Building electron is done entirely with command line scripts and cannot be done with visual studio.
Prints chromes internal logging to the console.