Return-Path: X-Original-To: apmail-cordova-dev-archive@www.apache.org Delivered-To: apmail-cordova-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id B322910C2F for ; Wed, 3 Jul 2013 14:43:03 +0000 (UTC) Received: (qmail 60954 invoked by uid 500); 3 Jul 2013 14:43:03 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 60924 invoked by uid 500); 3 Jul 2013 14:43:03 -0000 Mailing-List: contact dev-help@cordova.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cordova.apache.org Delivered-To: mailing list dev@cordova.apache.org Received: (qmail 60916 invoked by uid 99); 3 Jul 2013 14:43:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 14:43:02 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of mmocny@google.com designates 74.125.83.44 as permitted sender) Received: from [74.125.83.44] (HELO mail-ee0-f44.google.com) (74.125.83.44) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Jul 2013 14:42:56 +0000 Received: by mail-ee0-f44.google.com with SMTP id c13so134832eek.3 for ; Wed, 03 Jul 2013 07:42:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=K+cUVe7Twp4JskLMM084GA+2mHSLc3h6O/dWtGPJm1U=; b=YKGsiqzI12QvdaMB7jGqVbpWsTs9KPxWECLMSUlFsetU6c/aFd8lniFyyZqC56ZV4G hiy4QFcB8gyAWYYDzDVR1e1q5yKPJf5vk/djQqTm7eHlwDIb9vpAEzwvg9S3oNImBtPA PGz4uo0g2kVsLiJFCuwxLeIct7dUHJvXJ6h8uyy+RaTkVAVDIKSUl46yflgMMwnmYDqZ 22MonJ7c1jhqtPCdaUkPy180KgsoDDoQVf4S/Wxs9qCmTimneDAD6pcKHxd+zwhTTNAA LIFPR3J4uQgxx823oy2DYOuXW70tBo1aadBsVT2aKKsUbQFIgjgVZPcJ+KoZBEWQSAnc lEjg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type; bh=K+cUVe7Twp4JskLMM084GA+2mHSLc3h6O/dWtGPJm1U=; b=eKBRhrC8OUz8Y2nb+sH0wP+Crh+Ws2QXwUb2MEzI1g4X7+mmDjzdxPFUTnzDhEtGyV no3+xrCShlSQIm9bMZqaJuYvN61VjoJkGdHml5PpU4+6R30jH6crh/zStBtGPLLqPKU8 7VVLRDlTStMq6euuZB3evHM/+fdgI0y6D89jc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:sender:in-reply-to:references:from:date :x-google-sender-auth:message-id:subject:to:content-type :x-gm-message-state; bh=K+cUVe7Twp4JskLMM084GA+2mHSLc3h6O/dWtGPJm1U=; b=VewSjbVgMDb7rFsO6H5/BYwfKdpHh1ZI0Q3/hR+/djU+fZmz41xlnBiylcDGhWxbeO y3Oe+TdMRdEGrlhi69qkYU8//ApfxRH21eIO7vGmVPrDu11jWPlXd8/UXRs/EN+UbtBY CnvFqvh5CLWu7YiStBnCI470CbW0iVrLXMrEJltqghZrGfLNS4SNtyFkjFa3o8SvsF42 nvTnI1QX2FhLBVmKnVKhcC6UV8xNZzyGfvWhNfCYHpR22oxmWv0ONcZGkIasqzY6B2/M GWk9X5pH+hPMotisKX4keMojg7v39y+u5ASIouDYegWWsiKm6tQoKnV8Dcy13cQQNkuv 995A== X-Received: by 10.14.211.67 with SMTP id v43mr1543802eeo.55.1372862556424; Wed, 03 Jul 2013 07:42:36 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.223.87.194 with HTTP; Wed, 3 Jul 2013 07:42:15 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Wed, 3 Jul 2013 10:42:15 -0400 X-Google-Sender-Auth: VR6OgMZqOqpxnvXmduD88CJbguU Message-ID: Subject: Re: using node modules in cordova plugins? To: dev Content-Type: multipart/alternative; boundary=047d7b6221b800952504e09c79f0 X-Gm-Message-State: ALoCoQlpAw38jCVB1nhaG+v5TS94/0nRoT/lL4AVD3eVSe4OeeBCWPhRIZx4v6r8YOVAlP+K6Q5okmzc/zx1sbTq1srBZQFRrLkrremLD09haImw0L6L8Vo+wkyiSNrB1y4hezu0jut+RAtNe8aFVhEhGozadTOE6/K9zUrWyOmXJUE98AsN0Vioq/tfoOkL63Zi4uPLBIHA X-Virus-Checked: Checked by ClamAV on apache.org --047d7b6221b800952504e09c79f0 Content-Type: text/plain; charset=ISO-8859-1 Andrew and I had that conversation as few days ago, and he convinced me that shipping code to end users should mean shipping with node_modules (this sentiment is repeated from the creators of npm it seems). That way, any given users' node setup/platform version issues don't affect your code. Thus, I don't think npm install as a hook for plugman for install time is necessary, not a good idea (at least not for this reason). -Michal On Wed, Jul 3, 2013 at 10:31 AM, Anis KADRI wrote: > You could also ship your plugin as a node package (with a package.json and > node_modules) and point your js paths to node_modules/ (just as +andrew > said). Maybe plugman should also support before_ and after_ hooks as well > in order to run "npm install" ? > > > On Wed, Jul 3, 2013 at 9:59 AM, Bryan Bishop wrote: > > > On Tue, Jul 2, 2013 at 5:53 PM, Don Coleman > wrote: > > > > > I ripped a bunch of Javascript code out of my Cordova NFC plugin and > > > created a NPM so I could reuse the code elsewhere. > > > > > > > Is this something that runs on a phone? Does this mean you're running > your > > node module through browserify first? > > > > - Bryan > > http://heybryan.org/ > > 1 512 203 0507 > > > --047d7b6221b800952504e09c79f0--