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 6640518E60 for ; Tue, 19 May 2015 15:56:25 +0000 (UTC) Received: (qmail 38448 invoked by uid 500); 19 May 2015 15:56:25 -0000 Delivered-To: apmail-cordova-dev-archive@cordova.apache.org Received: (qmail 38410 invoked by uid 500); 19 May 2015 15:56:25 -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 38397 invoked by uid 99); 19 May 2015 15:56:24 -0000 Received: from Unknown (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 May 2015 15:56:24 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 4C3B6C607C for ; Tue, 19 May 2015 15:56:24 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.871 X-Spam-Level: ** X-Spam-Status: No, score=2.871 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HEADER_FROM_DIFFERENT_DOMAINS=0.001, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001, T_RP_MATCHES_RCVD=-0.01, URIBL_BLOCKED=0.001] autolearn=disabled Authentication-Results: spamd1-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=google.com header.b=AYaNCgy+; dkim=pass (1024-bit key) header.d=chromium.org header.b=C4rpTBek Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oUifq7BIWkGE for ; Tue, 19 May 2015 15:56:17 +0000 (UTC) Received: from mail-vn0-f41.google.com (mail-vn0-f41.google.com [209.85.216.41]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 689DF24C66 for ; Tue, 19 May 2015 15:56:17 +0000 (UTC) Received: by vnbg7 with SMTP id g7so1425421vnb.12 for ; Tue, 19 May 2015 08:56:10 -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:message-id :subject:to:content-type; bh=vgyzLriCkmCJxgbt1AgbGtg1ZwYDCrgWW4xd9AiDQnw=; b=AYaNCgy+BIDnne41anU7jDU3+s5s5qS7LV2qYyGiacgIgiZYQG38S8QUxhid9BhY2G qtaznYQPuq83zK5B5ZDjwCox873wWzoAdlNOCLQ+tptQYiRJVewGfhZJA848BhOFshug RaE06UQyEwoVxVdCPJ1kbld0yEx5P9G7JZx9ET5NkE/lIMaFIxza3M1UWMsuSVnctCWB D0+VhzFemqxdn/fc/O/7GPcqXC3KvKlQGBvq2C+diky7qZdv0NxHP8rUJI9K3TQ5/ag1 VYQ/66H37awnI37yKBBUhSJRZpcBX3JRAOSPoE+RCvi7ywjRBep7q4BQInDZPm8zYA3c Ljfg== 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:message-id :subject:to:content-type; bh=vgyzLriCkmCJxgbt1AgbGtg1ZwYDCrgWW4xd9AiDQnw=; b=C4rpTBek9V8XF64xv+ul2irp7VVUMPJMdxqTJ/xP6R4AhLVsloBsG+OzrUyA+G5/D5 XlwDlkDXpMcA3HcZwwiM6xEuPs/mwnijQRSlAnnN6041TguOz5BYKsQkvVl8BinfukHe 6FDruHyX9ko9x4lCqgw1qwa2Omi/YrlMPcbI4= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:sender:in-reply-to:references:from :date:message-id:subject:to:content-type; bh=vgyzLriCkmCJxgbt1AgbGtg1ZwYDCrgWW4xd9AiDQnw=; b=Q3/ZJYlkEeVgv3Jhv+TAHUnEWCi+zS4dNcmZ2pfcNoXL2LDgW4WO34bJkad3TX38R0 gGNmogX+MYXMa2gtv87Uv+zNSjGxdrMK4h4iZxQS0XjQqx+hsWl4ksfvx/yvzcdXXsnc K0zgbGfDOzoGZf1Q/OTfC4pYpSd2i6wpU3IQ4lGsTnupsmd0VCidXiPvkfDdefLUJn/p nrk1ah7ukB5YCRsecOPoaEcV4rnl947Fzb6o+SWpWN2VGdKBG1DBYOmJu8QcQuhij4W+ KWe4eP99+n4Vu15JxvmYO7Gc3iYmMDzdzyG1eLXnAz/LedDvv4RNERxMJ9iaAaSZwkbz 029Q== X-Gm-Message-State: ALoCoQkFbWAyMHWpAuAvZ7nsdUzztkCQ+6pNK1VMnQuMHe8WhPabfwaX9HdKJ3KVv8JhLBfKeDv0 X-Received: by 10.52.181.196 with SMTP id dy4mr24433489vdc.67.1432050970275; Tue, 19 May 2015 08:56:10 -0700 (PDT) MIME-Version: 1.0 Sender: mmocny@google.com Received: by 10.52.181.170 with HTTP; Tue, 19 May 2015 08:55:49 -0700 (PDT) In-Reply-To: References: From: Michal Mocny Date: Tue, 19 May 2015 11:55:49 -0400 X-Google-Sender-Auth: 2mt98zrnyqKKqjA3wA_Cl7znefI Message-ID: Subject: Re: build.json file To: dev Content-Type: multipart/alternative; boundary=bcaec5485aba6247760516715992 --bcaec5485aba6247760516715992 Content-Type: text/plain; charset=UTF-8 2 cents: A pattern I was introduced to recently was simply to use: .SECRET.json For any sensitive settings for any file, and: .SAMPLE.json To provide dummy data for any SECRET files as a source of documentation. Then, in your .gitignore, you can just ignore **/*.SECRET.*, and write a single helper method for reading any config files which knows to merge in SECRET files. Has worked well for projects I've used recently. -Michal On Mon, May 18, 2015 at 3:39 PM, Steven Gill wrote: > I am generally hesitant to add more config files to cordova projects. I > would rather see us converge to package.json as the de facto config file > over config.xml in the future. > > Aside from that, I do see the value in having a build.json file which > contains sensitive information (certs, passwords, signing identity) and > doesn't get packaged up with the app or checked in to git repos. So this > looks good to me. Also like the ideas for the future. > > -Steve > > On Mon, May 18, 2015 at 10:25 AM, Nikhil Khandelwal < > nikhilkh@microsoft.com> > wrote: > > > I want to bring this to the attention of everyone that I have added a > > build.json for specifying signing parameters for different platforms as > > part of cordova build. Here are the design principles I used: > > > > - build.json should be used over config.xml for specifying build > > time behavior (as opposed to runtime). In the case of signing, it did not > > make sense to have paths to certs, passwords, signing identity info etc. > to > > be part of config.xml and be packaged with the app itself. > > > > - build.json file has the following schema: > > { > > "" : { > > "debug" : { > > "" : > > "" > > }, > > "release" : { > > "" : > > "" > > }, > > } > > > > - So far all properties that can be specified using build.json > > can be specified using command line args. Command line args take > precedence > > if it's specified at both places. > > > > - By convention, a file named 'build.json' on the project root > > alongside 'config.xml' will be passed to platform CLI scripts with its > > location using the '--buildConfig' argument. There is a PR for this here: > > https://github.com/apache/cordova-lib/pull/215 > > > > Ideas for future: > > > > - Cordova CLI will allow to specify a custom build.json > > > > - Add docs for this talking about build.json > > > > - Unify parsing logic for build.json & command line args across > > platforms in a shared module. > > > > - Move some of the config.xml properties to build.json since > they > > belong better there. > > > > Let me know if you have any questions, ideas or concerns related to this. > > > > Thanks, > > Nikhil > > > > > > > --bcaec5485aba6247760516715992--