Simple email application for Android. Original source code: https://framagit.org/dystopia-project/simple-email
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
2.5 KiB

  1. npm-link(1) -- Symlink a package folder
  2. =======================================
  3. ## SYNOPSIS
  4. npm link (in package dir)
  5. npm link [<@scope>/]<pkg>[@<version>]
  6. alias: npm ln
  7. ## DESCRIPTION
  8. Package linking is a two-step process.
  9. First, `npm link` in a package folder will create a symlink in the global folder
  10. `{prefix}/lib/node_modules/<package>` that links to the package where the `npm
  11. link` command was executed. (see `npm-config(7)` for the value of `prefix`). It
  12. will also link any bins in the package to `{prefix}/bin/{name}`.
  13. Next, in some other location, `npm link package-name` will create a
  14. symbolic link from globally-installed `package-name` to `node_modules/`
  15. of the current folder.
  16. Note that `package-name` is taken from `package.json`,
  17. not from directory name.
  18. The package name can be optionally prefixed with a scope. See `npm-scope(7)`.
  19. The scope must be preceded by an @-symbol and followed by a slash.
  20. When creating tarballs for `npm publish`, the linked packages are
  21. "snapshotted" to their current state by resolving the symbolic links.
  22. This is handy for installing your own stuff, so that you can work on it and
  23. test it iteratively without having to continually rebuild.
  24. For example:
  25. cd ~/projects/node-redis # go into the package directory
  26. npm link # creates global link
  27. cd ~/projects/node-bloggy # go into some other package directory.
  28. npm link redis # link-install the package
  29. Now, any changes to ~/projects/node-redis will be reflected in
  30. ~/projects/node-bloggy/node_modules/node-redis/. Note that the link should
  31. be to the package name, not the directory name for that package.
  32. You may also shortcut the two steps in one. For example, to do the
  33. above use-case in a shorter way:
  34. cd ~/projects/node-bloggy # go into the dir of your main project
  35. npm link ../node-redis # link the dir of your dependency
  36. The second line is the equivalent of doing:
  37. (cd ../node-redis; npm link)
  38. npm link redis
  39. That is, it first creates a global link, and then links the global
  40. installation target into your project's `node_modules` folder.
  41. Note that in this case, you are referring to the directory name, `node-redis`,
  42. rather than the package name `redis`.
  43. If your linked package is scoped (see `npm-scope(7)`) your link command must
  44. include that scope, e.g.
  45. npm link @myorg/privatepackage
  46. ## SEE ALSO
  47. * npm-developers(7)
  48. * package.json(5)
  49. * npm-install(1)
  50. * npm-folders(5)
  51. * npm-config(1)
  52. * npm-config(7)
  53. * npmrc(5)