Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
Include NPM, update .pkg to install it.
Browse files Browse the repository at this point in the history
.msi update coming soon.
  • Loading branch information
ry committed Nov 21, 2011
1 parent 05de01d commit b488be1
Show file tree
Hide file tree
Showing 449 changed files with 33,131 additions and 4 deletions.
6 changes: 6 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,9 @@ The externally maintained libraries used by Node are:
- deps/zlib copyright 1995-2010 Jean-loup Gailly and Mark Adler
licensed under a permissive free software license. See
deps/zlib/LICENSE.

- deps/npm NPM is a package manager program copyright 2009, 2010, 2011
Isaac Z. Schlueter and licensed under MIT. NPM includes several
subpackages MIT or Apache licenses, see deps/npm/LICENSE for more
information. NPM is included in the Node .msi and .pkg distributions
but not in the Node binary itself.
15 changes: 15 additions & 0 deletions deps/npm/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
*.swp
test/bin
test/output.log
test/packages/*/node_modules
test/packages/npm-test-depends-on-spark/which-spark.log
test/packages/test-package/random-data.txt
test/root
node_modules/ronn
node_modules/.bin
npm-debug.log
html/api/*.html
html/doc/*.html
man/
doc/*/index.md
./npmrc
51 changes: 51 additions & 0 deletions deps/npm/.gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
[submodule "node_modules/semver"]
path = node_modules/semver
url = https://github.com/isaacs/node-semver.git
[submodule "node_modules/abbrev"]
path = node_modules/abbrev
url = https://github.com/isaacs/abbrev-js.git
[submodule "node_modules/nopt"]
path = node_modules/nopt
url = https://github.com/isaacs/nopt.git
[submodule "node_modules/node-uuid"]
path = node_modules/node-uuid
url = https://github.com/broofa/node-uuid
[submodule "node_modules/minimatch"]
path = node_modules/minimatch
url = https://github.com/isaacs/minimatch.git
[submodule "node_modules/graceful-fs"]
path = node_modules/graceful-fs
url = https://github.com/isaacs/node-graceful-fs.git
[submodule "node_modules/slide"]
path = node_modules/slide
url = https://github.com/isaacs/slide-flow-control.git
[submodule "node_modules/rimraf"]
path = node_modules/rimraf
url = https://github.com/isaacs/rimraf.git
[submodule "node_modules/proto-list"]
path = node_modules/proto-list
url = https://github.com/isaacs/proto-list.git
[submodule "node_modules/ini"]
path = node_modules/ini
url = https://github.com/isaacs/ini.git
[submodule "node_modules/which"]
path = node_modules/which
url = https://github.com/isaacs/node-which.git
[submodule "node_modules/request"]
path = node_modules/request
url = https://github.com/isaacs/request.git
[submodule "node_modules/tar"]
path = node_modules/tar
url = git://github.com/isaacs/node-tar.git
[submodule "node_modules/fstream"]
path = node_modules/fstream
url = git://github.com/isaacs/fstream.git
[submodule "node_modules/inherits"]
path = node_modules/inherits
url = git://github.com/isaacs/inherits.git
[submodule "node_modules/block-stream"]
path = node_modules/block-stream
url = git://github.com/isaacs/block-stream.git
[submodule "node_modules/mkdirp"]
path = node_modules/mkdirp
url = git://github.com/isaacs/node-mkdirp.git
11 changes: 11 additions & 0 deletions deps/npm/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
*.swp
test/bin
test/output.log
test/packages/*/node_modules
test/packages/npm-test-depends-on-spark/which-spark.log
test/packages/test-package/random-data.txt
test/root
node_modules/ronn
node_modules/.bin
npm-debug.log
./npmrc
50 changes: 50 additions & 0 deletions deps/npm/AUTHORS
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Authors sorted by whether or not they're me
Isaac Z. Schlueter <[email protected]> (http://blog.izs.me/)
Steve Steiner <[email protected]> (http://websaucesoftware.com/blog/)
Mikeal Rogers <[email protected]> (http://www.mikealrogers.com/)
Aaron Blohowiak <[email protected]> (http://aaronblohowiak.com/)
Martyn Smith <[email protected]> (http://dollyfish.net.nz/)
Mathias Pettersson <[email protected]> (http://mape.me/)
Brian Hammond <[email protected]> (http://fictorial.com/)
Charlie Robbins <[email protected]> (http://www.charlierobbins.com/)
Francisco Treacy <[email protected]> (http://franciscotreacy.com/)
Cliffano Subagio <[email protected]> (http://blog.cliffano.com/)
Christian Eager <[email protected]> (http://perpenduum.com)
Dav Glass <[email protected]> (http://blog.davglass.com)
Alex K. Wolfe <[email protected]>
James Sanders <[email protected]> (http://james-sanders.com/)
Reid Burke <[email protected]> (http://reidburke.com/)
Arlo Breault <[email protected]> (http://thoughtherder.com/)
Timo Derstappen <[email protected]> (http://teemow.com)
Bradley Meck <[email protected]>
Bart Teeuwisse <[email protected]> (http://thecodemill.biz/)
Ben Noordhuis <[email protected]> (http://bnoordhuis.nl/)
Tor Valamo <[email protected]> (http://www.magnimedia.no/)
Whyme.Lyu <[email protected]> (http://whyme.kuantu.com/)
Olivier Melcher <[email protected]>
Tomaž Muraus <[email protected]> (http://www.tomaz-muraus.info)
Evan Meagher <[email protected]> (http://evanmeagher.net/)
Orlando Vazquez <[email protected]> (http://2wycked.net/)
George Miroshnykov <[email protected]>
Geoff Flarity (http://ca.linkedin.com/pub/geoff-flarity/a/536/43a)
Pete Kruckenberg <[email protected]>
Laurie Harper <[email protected]> (http://laurie.holoweb.net/)
Chris Wong <[email protected]>
Max Goodman <[email protected]> (http://chromacode.com/)
Scott Bronson <[email protected]>
Federico Romero <[email protected]>
Visnu Pitiyanuvath <[email protected]> (http://visnup.com)
Irakli Gozalishvili <[email protected]> (http://jeditoolkit.com/)
Mark Cahill <[email protected]> (http://www.tiemonster.info/)
Zearin <[email protected]>
Iain Sproat <[email protected]>
Trent Mick <[email protected]> (http://trentm.com/)
Felix Geisendörfer <[email protected]> (http://www.debuggable.com/)
Conny Brunnkvist <[email protected]> (http://twitter.com/connyb)
Will Elwood <[email protected]> (https://github.com/welwood08)
Oleg Efimov <[email protected]> (http://sannis.ru)
Martin Cooper <[email protected]>
Jameson Little <[email protected]>
cspotcode <[email protected]>
Maciej Małecki <[email protected]>
Stephen Sugden <[email protected]>
1 change: 1 addition & 0 deletions deps/npm/CHANGES
61 changes: 61 additions & 0 deletions deps/npm/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
Copyright 2009, 2010, 2011 Isaac Z. Schlueter (the "Author")
All rights reserved.

MIT +no-false-attribs License

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

Distributions of all or part of the Software intended to be used
by the recipients as they would use the unmodified Software,
containing modifications that substantially alter, remove, or
disable functionality of the Software, outside of the documented
configuration mechanisms provided by the Software, shall be
modified such that the Author's bug reporting email addresses and
urls are either replaced with the contact information of the
parties responsible for the changes, or removed entirely.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.


Except where noted, this license applies to any and all software
programs and associated documentation files created by the
Author, when distributed with the Software.

"Node.js" and "node" trademark Joyent, Inc. npm is not officially
part of the Node.js project, and is neither owned by nor

This comment has been minimized.

Copy link
@mscdex

mscdex Nov 21, 2011

It seems it now is officially part of the Node.js project :-)

This comment has been minimized.

Copy link
@japj

japj Nov 22, 2011

/cheer :)

officially affiliated with Joyent, Inc.

Packages published in the npm registry are not part of npm
itself, are the sole property of their respective maintainers,
and are not covered by this license.

"npm Logo" created by Mathias Pettersson and Brian Hammond,
used with permission.

This program includes a BSDTar/LibArchive version 2.8.3-1 binary,
originally distributed as part of the MinGW suite, compiled for
Win32, according to the terms of the BSD license.
See deps/basic-bsdtar-2.8.3-1-ming32-bin/basic-bsdtar.LICENSE.

This program uses "node-uuid", Copyright (c) 2010 Robert Kieffer,
according to the terms of the MIT license.

This program uses "request", Copyright (c) 2011 Mikeal Rogers,
according to the terms of the Apache license.
125 changes: 125 additions & 0 deletions deps/npm/Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
SHELL = bash

markdowns = $(shell find doc -name '*.md' | grep -v 'index') README.md

cli_mandocs = $(shell find doc/cli -name '*.md' \
|sed 's|.md|.1|g' \
|sed 's|doc/cli/|man/man1/|g' ) \
man/man1/README.1 \
man/man1/index.1

api_mandocs = $(shell find doc/api -name '*.md' \
|sed 's|.md|.3|g' \
|sed 's|doc/api/|man/man3/|g' )

cli_htmldocs = $(shell find doc/cli -name '*.md' \
|grep -v 'index.md' \
|sed 's|.md|.html|g' \
|sed 's|doc/cli/|html/doc/|g' ) \
html/doc/README.html \
html/doc/index.html

api_htmldocs = $(shell find doc/api -name '*.md' \
|sed 's|.md|.html|g' \
|sed 's|doc/api/|html/api/|g' )

mandocs = $(api_mandocs) $(cli_mandocs)

htmldocs = $(api_htmldocs) $(cli_htmldocs)

all: submodules doc

submodules:
! [ -d .git ] || git submodule update --init --recursive

latest: submodules
@echo "Installing latest published npm"
@echo "Use 'make install' or 'make link' to install the code"
@echo "in this folder that you're looking at right now."
node cli.js install -g -f npm

install: all
node cli.js install -g -f

# backwards compat
dev: install

link: uninstall
node cli.js link -f

clean: doc-clean uninstall
rm npmrc
node cli.js cache clean

uninstall: submodules
node cli.js rm npm -g -f

doc: $(mandocs) $(htmldocs)

docclean: doc-clean
doc-clean:
rm -rf \
node_modules/ronn \
node_modules/.bin/ronn \
.building_ronn \
doc/cli/index.md \
doc/api/index.md \
$(api_mandocs) \
$(cli_mandocs) \
$(api_htmldocs) \
$(cli_htmldocs) \
&>/dev/null || true

# use `npm install ronn` for this to work.
man/man1/README.1: README.md scripts/doc-build.sh package.json
scripts/doc-build.sh $< $@

man/man1/%.1: doc/cli/%.md scripts/doc-build.sh package.json
@[ -d man/man1 ] || mkdir -p man/man1
scripts/doc-build.sh $< $@

man/man3/%.3: doc/api/%.md scripts/doc-build.sh package.json
@[ -d man/man3 ] || mkdir -p man/man3
scripts/doc-build.sh $< $@

html/doc/README.html: README.md html/dochead.html html/docfoot.html scripts/doc-build.sh package.json
scripts/doc-build.sh $< $@

html/doc/%.html: doc/cli/%.md html/dochead.html html/docfoot.html scripts/doc-build.sh package.json
scripts/doc-build.sh $< $@

html/api/%.html: doc/api/%.md html/dochead.html html/docfoot.html scripts/doc-build.sh package.json
scripts/doc-build.sh $< $@

doc/cli/index.md: $(markdowns) scripts/index-build.js scripts/doc-build.sh package.json
node scripts/index-build.js > $@

node_modules/ronn:
node cli.js install https://github.com/isaacs/ronnjs/tarball/master

doc: man

man: $(cli_docs) $(api_docs)

test: submodules
node cli.js test

version: link
git add package.json &&\
git ci -m v$(shell npm -v)

publish: link
git tag -s -m v$(shell npm -v) v$(shell npm -v) &&\
git push origin master --tags &&\
npm publish &&\
make doc-publish

docpublish: doc-publish
doc-publish: doc
rsync -vazu --stats --no-implied-dirs --delete html/doc/ npmjs.org:/var/www/npmjs.org/public/doc
rsync -vazu --stats --no-implied-dirs --delete html/api/ npmjs.org:/var/www/npmjs.org/public/api

sandwich:
@[ $$(whoami) = "root" ] && (echo "ok"; echo "ham" > sandwich) || echo "make it yourself"

.PHONY: all latest install dev link doc clean uninstall test man doc-publish doc-clean docclean docpublish
Loading

13 comments on commit b488be1

@Seldaek
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Well holy shit, awesome!

@BonsaiDen
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woaaaaaaaah :O

@brianleroux
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

squeee

@dresende
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@Baggz
Copy link

@Baggz Baggz commented on b488be1 Nov 21, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@andrewschaaf
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@arnorhs
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 hell yeah

@mikeal
Copy link

@mikeal mikeal commented on b488be1 Nov 22, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this only for windows?

@JakubOboza
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

@isaacs
Copy link

@isaacs isaacs commented on b488be1 Nov 22, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@mikeal Actually it's only for os x. But the msi install is coming soon.

@zandaq
Copy link

@zandaq zandaq commented on b488be1 Nov 24, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@astro
Copy link

@astro astro commented on b488be1 Nov 24, 2011

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

wtf

@egeozcan
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

awesome^^ when do we get it in stable?

edit: it already was in .6.3

Please sign in to comment.