Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-25817

CLI: gitignore file not copied across on creation of a default project

    Details

    • Type: Bug
    • Status: Open
    • Priority: None
    • Resolution: Unresolved
    • Affects Version/s: Release 6.3.0, Release 7.1.0, Release 7.0.2
    • Fix Version/s: None
    • Component/s: CLI
    • Labels:

      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

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              eharris Ewan Harris
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-6212
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Integration