[TIMOB-25817] CLI: gitignore file not copied across on creation of a default project
GitHub Issue | n/a |
Type | Bug |
Priority | None |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 6.3.0, Release 7.1.0, Release 7.0.2 |
Fix Version/s | n/a |
Components | CLI |
Labels | cb-tooling |
Reporter | Ewan Harris |
Assignee | Unknown |
Created | 2018-02-27T14:52:27.000+0000 |
Updated | 2020-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
JSON Source
same problem for module creation: copyDir: https://github.com/appcelerator/titanium_mobile/blob/1a2343d1500a47ea5adabe8a52fcc077dd4b5169/cli/lib/creators/module.js#L147