cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lorinb...@apache.org
Subject [14/50] [abbrv] webworks commit: Added clean script to remove build folder
Date Tue, 07 May 2013 15:14:01 GMT
Added clean script to remove build folder

Reviewed by Hasan Ahmad <haahmad@blackberry.com>
Tested by Bryan Higgins <bhiggins@blackberry.com>


Project: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/repo
Commit: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/commit/9160b4ab
Tree: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/tree/9160b4ab
Diff: http://git-wip-us.apache.org/repos/asf/cordova-blackberry/diff/9160b4ab

Branch: refs/heads/future
Commit: 9160b4ab074fead8819bdc8ee758b5628415668c
Parents: 99b61a2
Author: DanielAudino <daudino@blackberry.com>
Authored: Fri Mar 22 16:33:02 2013 -0400
Committer: Bryan Higgins <bhiggins@blackberry.com>
Committed: Fri May 3 10:13:29 2013 -0400

----------------------------------------------------------------------
 blackberry10/bin/templates/project/cordova/clean   |    4 ++
 .../bin/templates/project/cordova/clean.bat        |    6 ++++
 .../bin/templates/project/cordova/lib/clean        |   24 +++++++++++++++
 3 files changed, 34 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9160b4ab/blackberry10/bin/templates/project/cordova/clean
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean b/blackberry10/bin/templates/project/cordova/clean
new file mode 100755
index 0000000..0d29bd7
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/clean
@@ -0,0 +1,4 @@
+#cd into project dir
+cd $( dirname "$0")/../
+
+node ./cordova/lib/clean

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9160b4ab/blackberry10/bin/templates/project/cordova/clean.bat
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/clean.bat b/blackberry10/bin/templates/project/cordova/clean.bat
new file mode 100644
index 0000000..eb5738c
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/clean.bat
@@ -0,0 +1,6 @@
+@ECHO OFF
+
+REM cd into project dir
+cd %~dp0\..\
+
+@node.exe ./cordova/lib/clean

http://git-wip-us.apache.org/repos/asf/cordova-blackberry/blob/9160b4ab/blackberry10/bin/templates/project/cordova/lib/clean
----------------------------------------------------------------------
diff --git a/blackberry10/bin/templates/project/cordova/lib/clean b/blackberry10/bin/templates/project/cordova/lib/clean
new file mode 100644
index 0000000..429e79b
--- /dev/null
+++ b/blackberry10/bin/templates/project/cordova/lib/clean
@@ -0,0 +1,24 @@
+#!/usr/bin/env node
+
+/*
+ *  Copyright 2013 Research In Motion Limited.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+var wrench = require('wrench'),
+    path = require("path"),
+    buildPath = path.normalize(__dirname + "/../../build/");
+
+   wrench.rmdirSyncRecursive(dirPath, true);
+


Mime
View raw message