()
| 35 | } |
| 36 | |
| 37 | async function bundleNativeAdapter () { |
| 38 | console.log(green('\nBundling native adapter')); |
| 39 | // bundle engine-adapter.js |
| 40 | const engineAdapterEntry = normalizePath(ps.join(engineRoot, 'platforms/native/engine/index.js')); |
| 41 | const engineAdapterOutput = normalizePath(ps.join(engineRoot, 'bin/adapter/native/engine-adapter.js')); |
| 42 | await bundle(engineAdapterEntry, engineAdapterOutput, true, 'chrome 80'); |
| 43 | |
| 44 | // bundle web-adapter.js |
| 45 | const webAdapterEntry = normalizePath(ps.join(engineRoot, 'platforms/native/builtin/index.js')); |
| 46 | const webAdapterOutput = normalizePath(ps.join(engineRoot, 'bin/adapter/native/web-adapter.js')); |
| 47 | await bundle(webAdapterEntry, webAdapterOutput, true, 'chrome 80'); |
| 48 | } |
| 49 | |
| 50 | async function bundleMinigameAdapter () { |
| 51 | const platformsPath = ps.join(engineRoot, 'platforms/minigame/platforms'); |
no test coverage detected