Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-25817] CLI: gitignore file not copied across on creation of a default project

GitHub Issuen/a
TypeBug
PriorityNone
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 6.3.0, Release 7.1.0, Release 7.0.2
Fix Version/sn/a
ComponentsCLI
Labelscb-tooling
ReporterEwan Harris
AssigneeUnknown
Created2018-02-27T14:52:27.000+0000
Updated2020-01-30T21:30:49.000+0000

Description

Description

When creating a new titanium project the default .gitignore file is not copied across to the application folder, this is because the create process filters out files in config.cli.ignoreFiles, which contains .gitignore I'm unsure on the best way to fix this, as we have to remove it from the regex in cli.ignoreFiles in the ti config, it might be best to just change the if to } else if (filename === '.gitignore' || !ignoreFiles.test(filename)) {

Steps to reproduce

1. Run appc new -t titanium --name testgitignore --force --id com.foo --no-prompt --classic 2. Check the testgitignore folder

Actual

No .gitignore file

Expected

.gitignore file should exist

Comments

  1. Michael Gangolf 2018-10-21

    same problem for module creation: copyDir: https://github.com/appcelerator/titanium_mobile/blob/1a2343d1500a47ea5adabe8a52fcc077dd4b5169/cli/lib/creators/module.js#L147

JSON Source