UNPKG

822 BJavaScriptView Raw
1/**
2 * This code is closed source and Confidential and Proprietary to
3 * Appcelerator, Inc. All Rights Reserved. This code MUST not be
4 * modified, copied or otherwise redistributed without express
5 * written permission of Appcelerator. This file is licensed as
6 * part of the Appcelerator Platform and governed under the terms
7 * of the Appcelerator license agreement.
8 */
9// load based on the platform to allow it to override
10try {
11 module.exports = require('./'+process.platform);
12}
13catch (e) {
14 // this is OK, no platform to load
15}
16
17// if the platform library doesn't implement, provide defaults
18
19if (!module.exports.run) {
20 module.exports.run = require('./run');
21}
22
23if (!module.exports.install) {
24 module.exports.install = require('./install');
25}
26
27if (!module.exports.use) {
28 module.exports.use = require('./use');
29}
\No newline at end of file