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 4EB4C1063E for ; Mon, 12 Aug 2013 17:18:49 +0000 (UTC) Received: (qmail 42369 invoked by uid 500); 12 Aug 2013 17:18:49 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 42336 invoked by uid 500); 12 Aug 2013 17:18:49 -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 42294 invoked by uid 99); 12 Aug 2013 17:18:46 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 17:18:46 +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 benn.mapes@gmail.com designates 209.85.220.51 as permitted sender) Received: from [209.85.220.51] (HELO mail-pa0-f51.google.com) (209.85.220.51) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 12 Aug 2013 17:18:40 +0000 Received: by mail-pa0-f51.google.com with SMTP id lf1so4971274pab.10 for ; Mon, 12 Aug 2013 10:18:19 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=lPWgqKOzTptj5UQ/fVBECgbmtPobnGH1qmh+vXK6QFk=; b=OKvLkG4F3AwVRuUD6yIrktn5cYqkUf+ve1LqPQzJBGOpm96qqMZJt2PoY1q9JAperz 34fvcOju9AoL2vfW1Jc1npl8+CQ+9RRmC/QclTKuS6BYnVUkwMn36mnlnXHIE6bkDsti tB2MWdZRGj8rG/+tVbz+FUHXR3yya28xeuPn1NiE03d/WrE1bqXRAw7mSP4lwIJqRENi tjqF1Y0L9bARFwpTMEvmwSnkwMv4g1eNu6SD+WeaFvJMBvT+qCidEAYBBF8bevR44eSC al852Et+7Le9eXXOM4Fjnjo8Y0jyzdvBY37spn8GBkfi01Y5Gyy3u7gJ4PB5HygPoSpq 7rwQ== MIME-Version: 1.0 X-Received: by 10.68.134.65 with SMTP id pi1mr122047pbb.59.1376327898915; Mon, 12 Aug 2013 10:18:18 -0700 (PDT) Received: by 10.70.47.8 with HTTP; Mon, 12 Aug 2013 10:18:18 -0700 (PDT) In-Reply-To: References: Date: Mon, 12 Aug 2013 10:18:18 -0700 Message-ID: Subject: Re: PROPOSAL: node.js all the script things From: Benn Mapes To: dev@cordova.apache.org Content-Type: multipart/alternative; boundary=047d7b10ceaf826cce04e3c34fa1 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b10ceaf826cce04e3c34fa1 Content-Type: text/plain; charset=ISO-8859-1 +1 to this thread. I say we work on BB/Android first but it would be nice to have all the tooling eventually in node (for consistency/maintainability). For the windows tooling, it's mostly in JScript at the moment anyways so the code could pretty much stay the same by just updating a few of the basic functions such as logging, exec, and read/write. On Mon, Aug 12, 2013 at 9:11 AM, Lorin Beer wrote: > this conversation has been continuing on and offline around the > watercooler. > > +1 for Jesse's concern. > > There is absolutely no value in throwing out working bat scripts and > rewriting them in node. It's makework. > > For BB10, the scripts were written in node in the first place, and bash/bat > scripts invoke the node scripts. The inverse would be fine for WP7/8. Node > alias invokes bat script. > > > On Wed, Aug 7, 2013 at 12:51 PM, Jesse wrote: > > > No, I have not yet seen it, sounds sweet, and I applaud your commitment. > > The comment was based on historical data; I am still optimistic for the > > future. > > You will of course need to upgrade/downgrade to Windows 8 to develop/test > > for Windows 8, or Windows Phone 8. > > > > @purplecabbage > > risingj.com > > > > > > On Wed, Aug 7, 2013 at 12:14 PM, Filip Maj wrote: > > > > > I resent that comment about lack of Windows testing! Have you seen my > > > sweet swivel-monitor laptop that I have Windows 7 on? > > > > > > On 8/7/13 12:11 PM, "Jesse" wrote: > > > > > > >Well, given that only Benn, and myself have contributed to the windows > > 8, > > > >and windows phone platform scripts, and no one else even seems willing > > to > > > >test the windows phone platform, it seems unfair to suggest we throw > > away > > > >working code, and rewrite it just for fun. > > > > > > > >Having a dependency on node is not a big deal, it is the 30+ other npm > > > >libraries that always seem to come along, each with varying support > for > > > >windows, that I have issues with. > > > > > > > >I will consider writing you a node callable facade, that still calls > the > > > >.bat and wsh files behind the scenes. > > > > > > > > > > > > > > > >@purplecabbage > > > >risingj.com > > > > > > > > > > > >On Wed, Aug 7, 2013 at 11:40 AM, Steven Gill > > > >wrote: > > > > > > > >> To install any plugins you at least need plugman which requires > node. > > > >>Our > > > >> users are most likely going to have to install node as a dependency > at > > > >>some > > > >> point. I don't see why having it as a dependency for platform > > libraries > > > >>is > > > >> such a big deal. > > > >> > > > >> > > > >> On Wed, Aug 7, 2013 at 11:34 AM, M. Lantz > > wrote: > > > >> > > > >> > +1 > > > >> > > > > >> > Agreed I pretty much only use Cordova cli at this stage to make > apps > > > >>and > > > >> > as such don't have any issues keeping my node up to date or > relying > > > >>on is > > > >> > as a dependency. > > > >> > > > > >> > M. Lantz > > > >> > > > > >> > On 2013-08-07, at 1:07 PM, Frank Hennig < > fhe.development@gmail.com> > > > >> wrote: > > > >> > > > > >> > > +1 for all platforms > > > >> > > > > > >> > > I think it's not really an completely new dependency. Some > > > >>components > > > >> > actually depends on node.js like cordova-cli and plugman. Many > > > >>developers > > > >> > of cordova app's actually using grunt or bower and other node > > related > > > >> stuff > > > >> > to lint or to test their html and js code. > > > >> > > > > > >> > > A consistent tool and script language it's easier to maintain an > > to > > > >> > debug. > > > >> > > > > > >> > > > > > >> > > On Aug 7, 2013, at 12:14 AM, Filip Maj wrote: > > > >> > > > > > >> > >> I would like to introduce node.js as a dependency for the > > platform > > > >> > >> libraries, so that the platform scripts (bin/create, > cordova/run, > > > >>etc) > > > >> > are > > > >> > >> written in node. > > > >> > >> > > > >> > >> Pros: > > > >> > >> - For multi-OS platforms (Android, BlackBerry), this reduces > > > >>committer > > > >> > >> cognitive load as the scripts do not need to be authored in two > > > >> > different > > > >> > >> script languages (I.e. Shell for unix-y Oses, Wscript for > > Windows) > > > >> > >> - consistency in tool/script language. Cordova-js, coho, cli > and > > > >> plugman > > > >> > >> are all written on top of node.js. > > > >> > >> > > > >> > >> Cons: > > > >> > >> - Introducing a new dependency > > > >> > >> > > > >> > >> NB: This is separate from platform-spec; I would like to see > > > >> > platform-spec > > > >> > >> created/used regardless of the outcome of this thread. > > > >> > > > > > >> > > > > >> > > > > > > > > > --047d7b10ceaf826cce04e3c34fa1--