* Makes a temporary copy of the demos directory with symlinks resolved. * * @param {function} callback
(callback)
| 132 | * @param {function} callback |
| 133 | */ |
| 134 | function makeTempCopy (callback) { |
| 135 | ncp('./demos', deployTmpPath, { |
| 136 | dereference: true |
| 137 | }, function (error) { |
| 138 | if (error) { |
| 139 | return console.error(error); |
| 140 | } |
| 141 | console.log('Temporary copy created!'); |
| 142 | callback(); |
| 143 | }); |
| 144 | } |
| 145 | |
| 146 | }); |
| 147 |