(projectDir string)
| 76 | } |
| 77 | |
| 78 | func 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 | |
| 88 | func buildBundle(config BundleConfig) error { |
| 89 | jsName := "main.jsbundle" |
no test coverage detected