CB-7335 Add a .gitignore to android project template
Project: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/repo Commit: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/commit/0ad1ae4f Tree: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/tree/0ad1ae4f Diff: http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/diff/0ad1ae4f Branch: refs/heads/master Commit: 0ad1ae4fcdb805f3d357fa4a454c750957298c3b Parents: aaf2f24 Author: Andrew Grieve <[email protected]> Authored: Tue Aug 19 11:59:18 2014 -0400 Committer: Archana Naik <[email protected]> Committed: Thu Aug 28 11:10:56 2014 -0700 ---------------------------------------------------------------------- bin/lib/create.js | 1 + bin/templates/project/gitignore | 14 ++++++++++++++ 2 files changed, 15 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/0ad1ae4f/bin/lib/create.js ---------------------------------------------------------------------- diff --git a/bin/lib/create.js b/bin/lib/create.js index 89c098a..0f0014c 100755 --- a/bin/lib/create.js +++ b/bin/lib/create.js @@ -280,6 +280,7 @@ exports.createProject = function(project_path, package_name, project_name, proje shell.cp('-r', path.join(project_template_dir, 'assets'), project_path); shell.cp('-r', path.join(project_template_dir, 'res'), project_path); shell.cp('-r', path.join(ROOT, 'framework', 'res', 'xml'), path.join(project_path, 'res')); + shell.cp(path.join(project_template_dir, 'gitignore'), path.join(project_path, '.gitignore')); // Manually create directories that would be empty within the template (since git doesn't track directories). shell.mkdir(path.join(project_path, 'libs')); http://git-wip-us.apache.org/repos/asf/cordova-amazon-fireos/blob/0ad1ae4f/bin/templates/project/gitignore ---------------------------------------------------------------------- diff --git a/bin/templates/project/gitignore b/bin/templates/project/gitignore new file mode 100644 index 0000000..a1c8ff7 --- /dev/null +++ b/bin/templates/project/gitignore @@ -0,0 +1,14 @@ +# Non-project-specific build files: +build.xml +local.properties +/gradlew +/gradlew.bat +/gradle +# Ant builds +ant-built +ant-gen +# Eclipse builds +gen +out +# Gradle builds +/build
