cordova-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CB-12397) .gitignore fix
Date Sun, 03 Jun 2018 17:52:00 GMT


ASF GitHub Bot commented on CB-12397:

brodybits opened a new pull request #8: CB-12397 fix .gitignore for plugins & platforms
(cordova-create part)
   Please make sure the checklist boxes are all checked before submitting the PR. The checklist
   is intended as a quick reference, for complete details please see our Contributor Guidelines:
   ### Platforms affected
   ### What does this PR do?
   Workaround for [Apache Cordova CB-12397](
include .gitignore from `template_src` subdirectory of `cordova-app-hello-world`, needed due
to the npm .gitignore/.npmignore behavior discussed in:
   - npm/npm#1862
   - npm/npm#3763
   - npm/npm#7252
   NOTE: Another part of the fix for  [Apache Cordova CB-12397](
is in <>, to be raised
after this PR.
   Additional commits:
   - cleanup: remove trailing whitespace
   - general updates to test suite
   ### What testing has been done on this change?
   #### Unit test
   Test suite updated to verify that `.gitignore` is included in the generated app when the
standard `cordova-app-hello-world` template is used.
   #### Cordova CLI test
   - Using `cordova-cli` test version in <>
which uses local test installation of `cordova-lib` from <>
due to limitations discussed in npm/npm#2974.
   - `cordova-lib` in <>
references `cordova-create` in <>
which includes this fix.
   - `cordova-create` in <>
references `cordova-app-hello-world` in <>
which includes the `cordova-app-hello-world` fix in <>.
   **Testing with results and other output on Windows:**
   λ npm install -g
   npm WARN deprecated node-uuid@1.4.8: Use uuid module instead
   C:\Users\Chris\nvs\node\7.10.0\x64\cordova -> C:\Users\Chris\nvs\node\7.10.0\x64\node_modules\cordova\bin\cordova
   `-- cordova@7.0.2-cb-12397-devtest1  (git+
   λ cordova --version
   λ cordova create cb-12397-testapp1
   Creating a new cordova project.
   λ ls -a !$
   History expansion: ls -a cb-12397-testapp1
   ./  ../  .gitignore  .npmignore  config.xml  hooks/  package.json  platforms/  plugins/
 res/  www/
   λ cat cb-12397-testapp1\.gitignore
   # macOS
   # Generated by Cordova
   `.gitignore` is now present in the generated app, with `plugins` and `platforms` as needed
   ### Checklist
   - [x] [Reported an issue]( in the JIRA
   - [x] Commit message follows the format: "CB-3232: (android) Fix bug with resolving file
paths", where CB-xxxx is the JIRA ID & "android" is the platform affected.
   - [x] Added automated test coverage as appropriate for this change.

This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

> .gitignore fix
> --------------
>                 Key: CB-12397
>                 URL:
>             Project: Apache Cordova
>          Issue Type: Improvement
>          Components: cordova-app-hello-world, cordova-cli, cordova-create, cordova-lib
>            Reporter: Chris Brody
>            Priority: Major
>              Labels: backlog, easy-fix
> Followup to CB-12008 (autosave by default in cordova@7): if a user creates an app using
"cordova create" there should be a .gitignore file to exclude the plugins and platforms artifacts
from git.
> I raise this since I have seen way too many apps with outdated plugins / platforms artifacts
included in git.

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message