sourcefetch-tutorial icon indicating copy to clipboard operation
sourcefetch-tutorial copied to clipboard

Are atom packages published same as npm modules

Open mikeerickson opened this issue 8 years ago • 1 comments

I was hope there would be another part to this tutorial covering package publishing

Or, is it the same as publishing a node module? How as "apm install" know what to look for? Is apm a wrapper for "npm"?

mikeerickson avatar Aug 31 '16 03:08 mikeerickson

This is pretty late, but if you're still wondering this page answers your question (https://github.com/atom/apm):

Relation to npm

apm bundles npm with it and spawns npm processes to install Atom packages. The major difference is that apm sets multiple command line arguments to npm to ensure that native modules are built against Chromium's v8 headers instead of node's v8 headers.

The other major difference is that Atom packages are installed to ~/.atom/packages instead of a local node_modules folder and Atom packages are published to and installed from GitHub repositories instead of npmjs.com

Therefore you can think of apm as a simple npm wrapper that builds on top of the many strengths of npm but is customized and optimized to be used for Atom packages.

kmjch avatar Dec 24 '16 07:12 kmjch