Received: by 10.205.136.10 with SMTP id ii10mr215405bkc.7.1323033142472; Sun, 04 Dec 2011 13:12:22 -0800 (PST) X-BeenThere: nodejs@googlegroups.com Received: by 10.204.56.81 with SMTP id x17ls4216538bkg.1.gmail; Sun, 04 Dec 2011 13:12:11 -0800 (PST) Received: by 10.205.138.133 with SMTP id is5mr1459304bkc.0.1323033131869; Sun, 04 Dec 2011 13:12:11 -0800 (PST) Received: by 10.205.138.133 with SMTP id is5mr1459303bkc.0.1323033131845; Sun, 04 Dec 2011 13:12:11 -0800 (PST) Return-Path: Received: from mail-bw0-f48.google.com (mail-bw0-f48.google.com [209.85.214.48]) by gmr-mx.google.com with ESMTPS id c11si5351735bke.3.2011.12.04.13.12.11 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 04 Dec 2011 13:12:11 -0800 (PST) Received-SPF: pass (google.com: domain of marak.squi...@gmail.com designates 209.85.214.48 as permitted sender) client-ip=209.85.214.48; Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of marak.squi...@gmail.com designates 209.85.214.48 as permitted sender) smtp.mail=marak.squi...@gmail.com; dkim=pass (test mode) header...@gmail.com Received: by mail-bw0-f48.google.com with SMTP id zs8so5847667bkb.21 for ; Sun, 04 Dec 2011 13:12:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=nLNuhwlQXn3wRir1zhlFOVvXTBFvUaTjU2t2ZT3w3RU=; b=SdvBeiDN/srDnitRtzbRDEinPrFiNli6MgSGVOX4N29dsTi4KpPowefVJE5xzrLBI5 IjOiAaIn+eWT1m68dHTxAhDW0axHkuIWiCe5PSmgjOE5B0vwIHR15e8KD9WtAJVGn/OF nZMLVXmCT+9tqCuG7hICOzSbIlC5SVwz6Fh/w= MIME-Version: 1.0 Received: by 10.205.127.136 with SMTP id ha8mr3001560bkc.5.1323033131030; Sun, 04 Dec 2011 13:12:11 -0800 (PST) Received: by 10.204.69.199 with HTTP; Sun, 4 Dec 2011 13:12:10 -0800 (PST) In-Reply-To: <7bad41da-48cc-4e41-937a-efb28cb5daa0@o1g2000vbe.googlegroups.com> References: <6c422c60-5b77-438d-b5f3-f4dea4c4a...@e2g2000vbb.googlegroups.com> <7bad41da-48cc-4e41-937a-efb28cb5d...@o1g2000vbe.googlegroups.com> Date: Sun, 4 Dec 2011 13:12:10 -0800 Message-ID: Subject: Re: [nodejs] Re: What do people do for versionizing node modules within git? From: Marak Squires To: nodejs@googlegroups.com Content-Type: multipart/alternative; boundary=000e0ce03f5acd197c04b34aa717 --000e0ce03f5acd197c04b34aa717 Content-Type: text/plain; charset=ISO-8859-1 No, I just drop in the modules I want to vendor and require them directly from the vendor folder. On Sun, Dec 4, 2011 at 1:08 PM, deitch wrote: > So you manually create a vendor/ folder under the root of your tree, > parallel to node_modules, which has a list of all of the dependencies? > How do you structure it? Is it something automated? > > Would it be as effective as every time you run npm install (or > uninstall), to run: > > npm ls > vendor.txt > > Of course, you need to do it manually. Why doesn't npm have an > automatic "here is a list of all the things currently installed"? It > can be updated by npm every time it runs, say every run of npm install > or uninstall automatically dumps the output of "npm ls" to .npmls or > similar in the same parent dir of node_modules parallel to it. isaacs? > > On Dec 4, 11:03 pm, Marak Squires wrote: > > I keep node_modules/ in my .gitignore > > > > npm will let you bundleDeps in node_modules, but I've found it's usually > > more straight forward to create an actual "vendor" folder so it's more > > explicit. > > > > > > > > > > > > > > > > > > > > On Sun, Dec 4, 2011 at 12:56 PM, deitch wrote: > > > You are building an app, it has dependencies on lots of modules that > > > you install via npm. But versionizing those in git seems redundant. > > > What do people here do? Do they keep node_modules as tracked part of > > > git? Or do they put it in .gitignore, and if so, then how do you know > > > which versions and dependencies you have? > > > > > -- > > > Job Board:http://jobs.nodejs.org/ > > > Posting guidelines: > > >https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > > > You received this message because you are subscribed to the Google > > > Groups "nodejs" group. > > > To post to this group, send email to nodejs@googlegroups.com > > > To unsubscribe from this group, send email to > > > nodejs+unsubscribe@googlegroups.com > > > For more options, visit this group at > > >http://groups.google.com/group/nodejs?hl=en?hl=en > > > > -- > > -- > > Marak Squires > > Co-founder and Chief Evangelist > > Nodejitsu, Inc. > > marak.squi...@gmail.com > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscribe@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- -- Marak Squires Co-founder and Chief Evangelist Nodejitsu, Inc. marak.squi...@gmail.com --000e0ce03f5acd197c04b34aa717 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable No, I just drop in the modules I want to vendor and require them directly f= rom the vendor folder.=A0

On Sun, Dec 4, = 2011 at 1:08 PM, deitch <a...@deitcher.net> wrote:
So you manually create a vendor/ folder und= er the root of your tree,
parallel to node_modules, which has a list of all of the dependencies?
How do you structure it? Is it something automated?

Would it be as effective as every time you run npm install (or
uninstall), to run:

npm ls > vendor.txt

Of course, you need to do it manually. Why doesn't npm have an
automatic "here is a list of all the things currently installed"?= It
can be updated by npm every time it runs, say every run of npm install
or uninstall automatically dumps the output of "npm ls" to .npmls= or
similar in the same parent dir of node_modules parallel to it. isaacs?

On Dec 4, 11:03=A0pm, Marak Squires <marak.squi...@gmail.com> wrote:
> I keep node_modules/ in my .gitignore
>
> npm will let you bundleDeps in node_modules, but I've found it'= ;s usually
> more straight forward to create an actual "vendor" folder so= it's more
> explicit.
>
>
>
>
>
>
>
>
>
> On Sun, Dec 4, 2011 at 12:56 PM, deitch <a...@deitcher.net> wrote:
> > You are building an app, it has dependencies on lots of modules t= hat
> > you install via npm. But versionizing those in git seems redundan= t.
> > What do people here do? Do they keep node_modules as tracked part= of
> > git? Or do they put it in .gitignore, and if so, then how do you = know
> > which versions and dependencies you have?
>
> > --
> > Job Board:h= ttp://jobs.nodejs.org/
> > Posting guidelines:
> >https://github.com/joyent/node/wiki/Mailing= -List-Posting-Guidelines
> > You received this message because you are subscribed to the Googl= e
> > Groups "nodejs" group.
> > To post to this group, send email to nodejs@googlegroups.com
> > To unsubscribe from this group, send email to
> > nodejs+u= nsubscribe@googlegroups.com
> > For more options, visit this group at
> >http://groups.google.com/group/nodejs?hl=3Den?hl=3Den=
>
> --
> --
> Marak Squires
> Co-founder and Chief Evangelist
> Nodejitsu, Inc.
> marak.squi...@gmail.c= om

--
Job Board: http://job= s.nodejs.org/
Posting guidelines: https://github.com/joyent/node/w= iki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe= @googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=3Den?hl=3Den



--
=
--=A0
Marak Squires
Co-founder and Chief Evangelist
Nodejitsu, Inc.

--000e0ce03f5acd197c04b34aa717--