Function
createBundleCommand
(config BundleConfig, buildPath, bundleURL, indexFile, minify string)
Source from the content-addressed store, hash-verified
| 229 | } |
| 230 | |
| 231 | func createBundleCommand(config BundleConfig, buildPath, bundleURL, indexFile, minify string) *exec.Cmd { |
| 232 | cmd := exec.Command( |
| 233 | "npx", |
| 234 | "react-native", |
| 235 | "bundle", |
| 236 | "--assets-dest", |
| 237 | buildPath, |
| 238 | "--bundle-output", |
| 239 | bundleURL, |
| 240 | "--dev", |
| 241 | "false", |
| 242 | "--entry-file", |
| 243 | indexFile, |
| 244 | "--platform", |
| 245 | config.OSName, |
| 246 | "--minify", |
| 247 | minify) |
| 248 | cmd.Dir = config.ProjectDir |
| 249 | return cmd |
| 250 | } |
| 251 | |
| 252 | func processHermesBundle(config BundleConfig) error { |
| 253 | sysType := runtime.GOOS |
Tested by
no test coverage detected