You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by an...@apache.org on 2014/04/24 23:10:50 UTC

[05/45] js commit: adding browserify compile task

adding browserify compile task


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

Branch: refs/heads/master
Commit: bc7843ef79565c5b9748a6cea11cbccd2895b5ce
Parents: 42621ce
Author: Anis Kadri <an...@apache.org>
Authored: Mon Feb 3 22:21:53 2014 -0800
Committer: Anis Kadri <an...@apache.org>
Committed: Mon Feb 3 22:21:53 2014 -0800

----------------------------------------------------------------------
 tasks/compile-browserify.js | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cordova-js/blob/bc7843ef/tasks/compile-browserify.js
----------------------------------------------------------------------
diff --git a/tasks/compile-browserify.js b/tasks/compile-browserify.js
new file mode 100644
index 0000000..1d28510
--- /dev/null
+++ b/tasks/compile-browserify.js
@@ -0,0 +1,29 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements.  See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership.  The ASF licenses this file
+ * to you 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 generate = require('./lib/packager-browserify');
+
+module.exports = function(grunt) {
+    grunt.registerMultiTask('compile-browserify', 'Packages cordova.js browserify style', function() {
+
+        var done = this.async();
+        var platformName = this.target;
+        var useWindowsLineEndings = this.data.useWindowsLineEndings;
+        generate(platformName, useWindowsLineEndings, done);
+    });
+}