Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AB436200C63 for ; Wed, 26 Apr 2017 19:26:54 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id A9F55160BB7; Wed, 26 Apr 2017 17:26:54 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id F1E4E160BA8 for ; Wed, 26 Apr 2017 19:26:53 +0200 (CEST) Received: (qmail 777 invoked by uid 500); 26 Apr 2017 17:26:53 -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 299 invoked by uid 99); 26 Apr 2017 17:26:52 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Apr 2017 17:26:52 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 8AEB8E110B; Wed, 26 Apr 2017 17:26:52 +0000 (UTC) From: shazron To: dev@cordova.apache.org Reply-To: dev@cordova.apache.org References: In-Reply-To: Subject: [GitHub] cordova-docs pull request #699: cordova7_post : cordova7 release post Content-Type: text/plain Message-Id: <20170426172652.8AEB8E110B@git1-us-west.apache.org> Date: Wed, 26 Apr 2017 17:26:52 +0000 (UTC) archived-at: Wed, 26 Apr 2017 17:26:54 -0000 Github user shazron commented on a diff in the pull request: https://github.com/apache/cordova-docs/pull/699#discussion_r113512443 --- Diff: www/_posts/2017-04-21-cordova-7.md --- @@ -0,0 +1,46 @@ +--- +layout: post +author: + name: Audrey So + url: https://twitter.com/aud_rey_so +title: "Apache Cordova 7.0.0" +categories: news +tags: news releases +--- + +We are happy to announce that `Apache Cordova 7.0.0` has been released! + +Most notable changes include: +* If a `package.json` does not exist in your project, it will be auto-created for you when `cordova prepare` is called. +* When adding a platform or plugin, it will automatically save that platform or plugin to your `config.xml` and `package.json`. Details about platform and plugin versions are also automatically saved in `config.xml` and `package.json`. The `--save` flag is no longer required to save. Use `--nosave` to prevent saving to `config.xml` or `package.json`. +* Fetch is now the default setting for fetching platforms. Fetch uses your system `npm` to `npm install` modules into your project. The `--fetch` flag is no longer required. Use the `--nofetch` flag to use the older cordova fetching method (pre `cordova@7`) and prevent using `npm install` to do the fetching. +* After `cordova prepare` is run, `package.json` and `config.xml` should contain identical platforms and versions. In case of conflicts, `package.json` is given precedence over `config.xml`. For example, suppose `package.json` contains `cordova-android@6.0.0` and `config.xml` contains `cordova-android@4.0.0`. After `cordova prepare` is run, `config.xml` and `package.json` will each contain only `cordova-android@6.0.0`. +* Users can install any platform due to removing known platform check for platform API. For instance, users can now add custom platforms to their projects. +* Platforms and plugins are now required to have a package.json file. + +Example: + + cordova platform add custom-platform-name + +Link to how to create your own platforms: + +* A cordova config command has been created to `set`, `get`, `delete`, `edit`, and `list` global cordova options. For example, you can use the following command `cordova config set ` to set the value of autosave or fetch to true or false. --- End diff -- `cordova config` in backticks at the start of the sentence --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@cordova.apache.org For additional commands, e-mail: dev-help@cordova.apache.org