summaryrefslogtreecommitdiff
path: root/deps/npm/doc
diff options
context:
space:
mode:
authorKat Marchán <kzm@sykosomatic.org>2015-10-09 11:36:19 -0700
committerJeremiah Senkpiel <fishrock123@rocketmail.com>2015-10-09 18:50:00 -0700
commitaff3acf268928c2efb2ad1ef8995468ce72d2b55 (patch)
tree503a22ec90943aa956dcef9eff78d87b3c5de185 /deps/npm/doc
parentead5cd990c5136562984784a2619fd78a91f1c3d (diff)
downloadandroid-node-v8-aff3acf268928c2efb2ad1ef8995468ce72d2b55.tar.gz
android-node-v8-aff3acf268928c2efb2ad1ef8995468ce72d2b55.tar.bz2
android-node-v8-aff3acf268928c2efb2ad1ef8995468ce72d2b55.zip
deps: upgrade to npm 2.14.7
PR-URL: https://github.com/nodejs/node/pull/3299 Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com>
Diffstat (limited to 'deps/npm/doc')
-rw-r--r--deps/npm/doc/misc/npm-index.md4
-rw-r--r--deps/npm/doc/misc/npm-orgs.md90
-rw-r--r--deps/npm/doc/misc/npm-scripts.md6
3 files changed, 97 insertions, 3 deletions
diff --git a/deps/npm/doc/misc/npm-index.md b/deps/npm/doc/misc/npm-index.md
index ac725e1ed8..4efcb92af3 100644
--- a/deps/npm/doc/misc/npm-index.md
+++ b/deps/npm/doc/misc/npm-index.md
@@ -421,6 +421,10 @@ Frequently Asked Questions
Index of all npm documentation
+### npm-orgs(7)
+
+Working with Teams & Orgs
+
### npm-registry(7)
The JavaScript Package Registry
diff --git a/deps/npm/doc/misc/npm-orgs.md b/deps/npm/doc/misc/npm-orgs.md
new file mode 100644
index 0000000000..1f9977eadd
--- /dev/null
+++ b/deps/npm/doc/misc/npm-orgs.md
@@ -0,0 +1,90 @@
+npm-orgs(7) -- Working with Teams & Orgs
+========================================
+
+## DESCRIPTION
+
+There are three levels of org users:
+
+1. Super admin, controls billing & adding people to the org.
+2. Team admin, manages team membership & package access.
+3. Developer, works on packages they are given access to.
+
+The super admin is the only person who can add users to the org because it impacts the monthly bill. The super admin will use the website to manage membership. Every org has a `developers` team that all users are automatically added to.
+
+The team admin is the person who manages team creation, team membership, and package access for teams. The team admin grants package access to teams, not individuals.
+
+The developer will be able to access packages based on the teams they are on. Access is either read-write or read-only.
+
+There are two main commands:
+
+1. `npm team` see npm-access(1) for more details
+2. `npm access` see npm-team(1) for more details
+
+## Team Admins create teams
+
+* Check who you’ve added to your org:
+
+```
+npm team ls <org>:developers
+```
+
+* Each org is automatically given a `developers` team, so you can see the whole list of team members in your org. This team automatically gets read-write access to all packages, but you can change that with the `access` command.
+
+* Create a new team:
+
+```
+npm team create <org:team>
+```
+
+* Add members to that team:
+
+```
+npm team add <org:team> <user>
+```
+
+## Publish a package and adjust package access
+
+* In package directory, run
+
+```
+npm init --scope=<org>
+```
+to scope it for your org & publish as usual
+
+* Grant access:
+
+```
+npm access grant <read-only|read-write> <org:team> [<package>]
+```
+
+* Revoke access:
+
+```
+npm access revoke <org:team> [<package>]
+```
+
+## Monitor your package access
+
+* See what org packages a team member can access:
+
+```
+npm access ls-packages <org> <user>
+```
+
+* See packages available to a specific team:
+
+```
+npm access ls-packages <org:team>
+```
+
+* Check which teams are collaborating on a package:
+
+```
+npm access ls-collaborators <pkg>
+```
+
+## SEE ALSO
+
+* npm-team(1)
+* npm-access(1)
+* npm-scope(7)
diff --git a/deps/npm/doc/misc/npm-scripts.md b/deps/npm/doc/misc/npm-scripts.md
index 1594d3c413..12c7f23167 100644
--- a/deps/npm/doc/misc/npm-scripts.md
+++ b/deps/npm/doc/misc/npm-scripts.md
@@ -69,10 +69,10 @@ npm will default some script values based on package contents.
If there is a `server.js` file in the root of your package, then npm
will default the `start` command to `node server.js`.
-* `"preinstall": "node-waf clean || true; node-waf configure build"`:
+* `"install": "node-gyp rebuild"`:
- If there is a `wscript` file in the root of your package, npm will
- default the `preinstall` command to compile using node-waf.
+ If there is a `bindings.gyp` file in the root of your package, npm will
+ default the `install` command to compile using node-gyp.
## USER