Why not just use npm instead of your own manager? #211
Replies: 3 comments
-
Probably just a case of "if it ain't broke, don't fix it". ppm is literally just apm with some tweaks. Ultimately it is still npm of a version that we know works with the editor. Are you saying we should be using the machine installed version of npm to manage Pulsar packages? Or that we should just be shipping npm with Pulsar (which is essentially what we are doing anyway)?
Pulsar is built in much the same way of most Electron projects. We don't have the old bootstrapping, we chucked that all in the bin pretty much on day 1. All you need is to initialise a submodule for ppm then a |
Beta Was this translation helpful? Give feedback.
-
While I disagree that complexity = worse code, there are a few reasons why PPM is still being used.
With all of this said, there would be a lot of problems to solve by removing PPM, for not many benefits, the code is already written, it was already an expected part of Atom, and if anything I'd say our longer terms goals will likely be to simplify PPM and bring it into the editor, rather than remove it, as we haven't seen the need to delete it, since really the only complexity it brings to end users, (who aren't just installing Pulsar from our Regular or Rolling releases, since of course it's already built there) is about 3 terminal commands: git submodule init
git submodule update
yarn run build:apm |
Beta Was this translation helpful? Give feedback.
-
@Psychosynthesis PPM is exactly the same package manager that Atom used to have - we just renamed the project and bumped the node version, that's all. The "multi step" that you mention was removed from Atom - what we do have is a "install" then "rebuild packages for electron". That's all - the rest is for ppm, and it's not actually needed to run the editor. |
Beta Was this translation helpful? Give feedback.
-
Why do you even need your own built-in ppm package manager?
What specific problems does it solve that can't be solved with npm?
I'm interested because I want to get involved in editor development (I'm frustrated with the decline of Atom) and one of the most disgusting things that annoys me is the complex multi-stage bootstrapping of the project (I'm judging by the latest version of Atom, but it seems that you have about the same situation). The more custom tools are used, the more complex the code as a whole and, as a result, worse.
Npm is a great tool, almost everyone who works with the web today has it, so why not use it? It would eliminate at least one step when deploying a project.
Beta Was this translation helpful? Give feedback.
All reactions