feat: support .gitignore files in generated app (#53)

It is impossible to deploy `.gitignore` files via npm packages.
Instead, Cordova templates should include `gitignore` files that we
rename to `.gitignore`. This PR implements that renaming.

For more details see apache/cordova-discuss#69.

This also bumps the dependency on `cordova-app-hello-world`
to a version that includes apache/cordova-app-hello-world#50.

Closes #8, apache/cordova-app-hello-world#30 and
apache/cordova-discuss#69.
4 files changed
tree: 435927c0389e24aa874739d4ec0760b402332f8a
  1. .github/
  2. spec/
  3. .eslintignore
  4. .eslintrc.yml
  5. .gitignore
  6. .npmignore
  7. .ratignore
  8. .travis.yml
  9. appveyor.yml
  10. index.js
  11. LICENSE
  12. package-lock.json
  13. package.json
  14. README.md
  15. RELEASENOTES.md
README.md

Build status Build Status

cordova-create

This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.

Usage:

const create = require('cordova-create');
await create(dest, opts);

Parameters

dest

Required. Path to the destination where the project will be created. Must be an empty dir if it exists.

opts

Optional. Supports following properties.

{
    // Attributes to be set in package.json & config.xml
    id: String,
    name: String,
    version: String,

    // The path/url/package-name to the template that should be used
    template: String,

    // An EventEmitter instance that will be used for logging purposes
    // (actually it only needs to implement a compatible `emit` method)
    events: EventEmitter
}