* sets up a WindowsSymlinkChecker * * providing it with defaults for: * * * if we are on windows * * if we can symlink * * a reference to exec * * @private * @method _setup * @param UI {UI} * @return {WindowsSymlinkChecker}
(ui)
| 72 | * @return {WindowsSymlinkChecker} |
| 73 | */ |
| 74 | static _setup(ui) { |
| 75 | const exec = require('child_process').exec; |
| 76 | const symlinkOrCopy = require('symlink-or-copy'); |
| 77 | |
| 78 | return new WindowsSymlinkChecker(ui, /^win/.test(process.platform), symlinkOrCopy.canSymlink, exec); |
| 79 | } |
| 80 | |
| 81 | /** |
| 82 | * @public |
no outgoing calls
no test coverage detected