Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorisaacs <i@izs.me>2010-03-10 12:06:08 +0300
committerisaacs <i@izs.me>2010-03-10 12:06:08 +0300
commit094fe0d0ea4f35bab7a59a11ec6783e067af7731 (patch)
treedb53f918d01d044edce010c4df80af7f8db7f511 /doc
parent448f42dd49b1818c8f19fb0c74b77b5c71e55480 (diff)
Add some todos on npm's use of the js-registry
Diffstat (limited to 'doc')
-rw-r--r--doc/registry.md35
1 files changed, 34 insertions, 1 deletions
diff --git a/doc/registry.md b/doc/registry.md
index 0f0078ef1..63331c431 100644
--- a/doc/registry.md
+++ b/doc/registry.md
@@ -1,2 +1,35 @@
+# npm registry
-see: [js-registry](http://github.com/mikeal/js-registry)
+Notes on npm's use of the [js-registry](http://github.com/mikeal/js-registry).
+
+None of this has been implemented as of 2010-03-10.
+
+## New Commands
+
+Add the following commands:
+
+### publish
+
+ npm publish <url>
+
+Fetches the tarball from the url, checks the package.json, and sends to the registry as the
+dist url. Fails if the fetch is non-200, or if the version already exists in
+the registry for that package.
+
+### create
+
+ npm create <project>
+
+Create a new project in the registry. Fails if this project already exists. If given a path that contains a package.json file, then it'll use the name from that file.
+
+### tag
+
+ npm tag <project> <version> <tag>
+
+Tag a project version with a tag, anything is fine. Note that npm treats the "stable" tag a bit differently, preferring to install that one when not given a version.
+
+## Configuration
+
+A registry base URL must be specified, either with the `--registry <url>` in the command line, or by setting a registry url in the .npmrc file.
+
+Also, need something to keep track of the user who's logged in? That's dicey.