]> gerrit.simantics Code Review - simantics/district.git/blob - org.simantics.maps.server/node/node-v4.8.0-win-x64/node_modules/npm/man/man3/npm-link.3
Adding integrated tile server
[simantics/district.git] / org.simantics.maps.server / node / node-v4.8.0-win-x64 / node_modules / npm / man / man3 / npm-link.3
1 .TH "NPM\-LINK" "3" "October 2016" "" ""
2 .SH "NAME"
3 \fBnpm-link\fR \- Symlink a package folder
4 .SH SYNOPSIS
5 .P
6 .RS 2
7 .nf
8 npm\.commands\.link(callback)
9 npm\.commands\.link(packages, callback)
10 .fi
11 .RE
12 .SH DESCRIPTION
13 .P
14 Package linking is a two\-step process\.
15 .P
16 Without parameters, link will create a globally\-installed
17 symbolic link from \fBprefix/package\-name\fP to the current folder\.
18 .P
19 With a parameters, link will create a symlink from the local \fBnode_modules\fP
20 folder to the global symlink\.
21 .P
22 When creating tarballs for \fBnpm publish\fP, the linked packages are
23 "snapshotted" to their current state by resolving the symbolic links\.
24 .P
25 This is
26 handy for installing your own stuff, so that you can work on it and test it
27 iteratively without having to continually rebuild\.
28 .P
29 For example:
30 .P
31 .RS 2
32 .nf
33 npm\.commands\.link(cb)           # creates global link from the cwd
34                                 # (say redis package)
35 npm\.commands\.link('redis', cb)  # link\-install the package
36 .fi
37 .RE
38 .P
39 Now, any changes to the redis package will be reflected in
40 the package in the current working directory
41