diff options
author | Joe George <joe@zeroc.com> | 2015-02-18 15:43:52 -0500 |
---|---|---|
committer | Joe George <joe@zeroc.com> | 2015-02-18 15:43:52 -0500 |
commit | e1f8da73ec82a44bd23f6dfe430a3ed23b8c3e7c (patch) | |
tree | 75be9d70a067f0898abea22684e9eb41b2f6a297 /js/gulp/gulp-slice2js/index.js | |
parent | Undo bogus change where EventLoggerMsg.h/.rc was added to the git repo. (diff) | |
download | ice-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.js | 15 |
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; + } +})(); |