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

Function prepareBuildDirectory

cli/bundle_cli.go:78–86  ·  view source on GitHub ↗
(projectDir string)

Source from the content-addressed store, hash-verified

76}
77
78func prepareBuildDirectory(projectDir string) error {
79 buildPath := projectDir + "build"
80 if exist, _ := utils.PathExists(buildPath); exist {
81 if err := os.RemoveAll(buildPath); err != nil {
82 return err
83 }
84 }
85 return os.MkdirAll(projectDir+"build/CodePush", os.ModePerm)
86}
87
88func buildBundle(config BundleConfig) error {
89 jsName := "main.jsbundle"

Callers 1

PushBundleFunction · 0.85

Calls 1

PathExistsFunction · 0.92

Tested by

no test coverage detected