MCPcopy Create free account
hub / github.com/SwishHQ/spread / createBundleCommand

Function createBundleCommand

cli/bundle_cli.go:231–250  ·  view source on GitHub ↗
(config BundleConfig, buildPath, bundleURL, indexFile, minify string)

Source from the content-addressed store, hash-verified

229}
230
231func 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
252func processHermesBundle(config BundleConfig) error {
253 sysType := runtime.GOOS

Callers 1

buildBundleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected