Alternative bootstrap and/or building #443
-
In answer to #420 and other experiments I'm doing - I see multiple problems with the current
Now, there are some problems on replacing everything - primarily, Atom is a mix of CommonJS, ESM (for some "core plug-ins"), JSX (of Etch, no React or other lib) some Babel stuff to load CoffeeScript "natively" and CoffeeScript. So, this all gets transpiled into Also, currently tests also expect these transpiled files to exist. So, the question is: do we want to keep these build scripts, or do we want to try another method? If we decide for the second, how can we handle that? I'll try to contribute with some ideas too |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
So, for the bootstrap thing, I was actually able to run Atom using There are some problems though: mainly, packages. Atom expects The advantage of this approach is simple: one can clone the Atom repo, with a recent Node version (LTS), run The disadvantages:
|
Beta Was this translation helpful? Give feedback.
-
For the build, I tried to use
Some of these problems can be worked around too. One solution could be to actually use just the right amount of scripts to transpile all code and generate the snapshots, and then bundle everything with For now, what I did was to disable The advantage of using AlternativeWe could always configure some of these Node.JS transpilers that support |
Beta Was this translation helpful? Give feedback.
-
Here are the steps that the current bootstrap and build scripts take. If the electron-builder does some of these. we can remove the code for that particular step, otherwise, we must keep the current code of that step. Bootstrapping:
Building:
Because I doubt electron-builder does all these steps, we have to integrate it into the current procedure. |
Beta Was this translation helpful? Give feedback.
Here are the steps that the current bootstrap and build scripts take. If the electron-builder does some of these. we can remove the code for that particular step, otherwise, we must keep the current code of that step.
Bootstrapping:
scripts/package.json
using npmapm/package.json
using npm./package.json
using npmBuilding: