summaryrefslogtreecommitdiff
path: root/js/gulp/gulp-slice2js/index.js
diff options
context:
space:
mode:
authorJoe George <joe@zeroc.com>2015-02-18 15:43:52 -0500
committerJoe George <joe@zeroc.com>2015-02-18 15:43:52 -0500
commite1f8da73ec82a44bd23f6dfe430a3ed23b8c3e7c (patch)
tree75be9d70a067f0898abea22684e9eb41b2f6a297 /js/gulp/gulp-slice2js/index.js
parentUndo bogus change where EventLoggerMsg.h/.rc was added to the git repo. (diff)
downloadice-e1f8da73ec82a44bd23f6dfe430a3ed23b8c3e7c.tar.bz2
ice-e1f8da73ec82a44bd23f6dfe430a3ed23b8c3e7c.tar.xz
ice-e1f8da73ec82a44bd23f6dfe430a3ed23b8c3e7c.zip
ICE-6301 - Align nodejs source and npm distributions
Diffstat (limited to 'js/gulp/gulp-slice2js/index.js')
-rw-r--r--js/gulp/gulp-slice2js/index.js15
1 files changed, 13 insertions, 2 deletions
diff --git a/js/gulp/gulp-slice2js/index.js b/js/gulp/gulp-slice2js/index.js
index 22b8833a901..0135f48fb95 100644
--- a/js/gulp/gulp-slice2js/index.js
+++ b/js/gulp/gulp-slice2js/index.js
@@ -120,7 +120,7 @@ function compile(slice2js, file, args, cb)
});
}
-module.exports = function(options)
+module.exports.compile = function(options)
{
var opts = options || {};
var slice2js;
@@ -130,7 +130,7 @@ module.exports = function(options)
{
try
{
- slice2js = require("zeroc-slice2js");
+ slice2js = require("zeroc-slice2js").compile;
}
catch(e)
{
@@ -200,3 +200,14 @@ module.exports = function(options)
}
});
};
+
+module.exports.sliceDir = (function() {
+ try
+ {
+ return require('zeroc-slice2js').sliceDir;
+ }
+ catch(e)
+ {
+ return null;
+ }
+})();