commit | 1d0d67e0c6a2a49935591a152597db54b1a5bd01 | [log] [tgz] |
---|---|---|
author | Raphael von der GrĂ¼n <raphinesse@gmail.com> | Fri Nov 15 15:43:10 2019 +0100 |
committer | GitHub <noreply@github.com> | Fri Nov 15 15:43:10 2019 +0100 |
tree | 435927c0389e24aa874739d4ec0760b402332f8a | |
parent | b64df2e9b8e61d2c80903b5fbd059bd8dc868398 [diff] |
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.
This module is used for creating cordova style projects. It also incudes support for cordova templates. It can fetch templates from npm and git.
const create = require('cordova-create'); await create(dest, opts);
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 }