Press n or j to go to the next uncovered block, b, p or k for the previous block.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 | 2x 2x 2x 2x 2x 1x 1x 1x 1x 1x 1x 2x | import LinuxPlatformSetup from './linux'; import WindowsPlatformSetup from './windows'; import DarwinPlatformSetup from './darwin'; import Config from '../config'; export default (c) => { I if (!c) c = Config.getConfig(); const { process: { platform } } = c; I if (platform === 'linux') return new LinuxPlatformSetup(c); I if (platform === 'win32') return new WindowsPlatformSetup(c); I if (platform === 'darwin') return new DarwinPlatformSetup(); // @todo add support for more throw new Error('Platform unsupported for automated SDK setup'); }; |