cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From agri...@apache.org
Subject android commit: CB-7335 Add a .gitignore to android project template
Date Tue, 19 Aug 2014 15:59:40 GMT
Repository: cordova-android
Updated Branches:
  refs/heads/master 58cdfd86d -> 71e72f215


CB-7335 Add a .gitignore to android project template


Project: http://git-wip-us.apache.org/repos/asf/cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-android/commit/71e72f21
Tree: http://git-wip-us.apache.org/repos/asf/cordova-android/tree/71e72f21
Diff: http://git-wip-us.apache.org/repos/asf/cordova-android/diff/71e72f21

Branch: refs/heads/master
Commit: 71e72f215dd7472ac2be4aabd0154b41a24df6e5
Parents: 58cdfd8
Author: Andrew Grieve <agrieve@chromium.org>
Authored: Tue Aug 19 11:59:18 2014 -0400
Committer: Andrew Grieve <agrieve@chromium.org>
Committed: Tue Aug 19 11:59:18 2014 -0400

----------------------------------------------------------------------
 bin/lib/create.js               |  1 +
 bin/templates/project/gitignore | 14 ++++++++++++++
 2 files changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-android/blob/71e72f21/bin/lib/create.js
----------------------------------------------------------------------
diff --git a/bin/lib/create.js b/bin/lib/create.js
index 13447da..0e929e3 100755
--- a/bin/lib/create.js
+++ b/bin/lib/create.js
@@ -246,6 +246,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-android/blob/71e72f21/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


Mime
View raw message