NickTikhonov / sourcefetch-tutorial

Example code for GitHub blog post: "Building your first Atom plugin"
https://github.com/blog/2231-building-your-first-atom-plugin
MIT License
66 stars 22 forks source link

Are atom packages published same as npm modules #2

Open mikeerickson opened 8 years ago

mikeerickson commented 8 years ago

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"?

kmjch commented 7 years ago

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.