(spawner: typeof execa)
| 106 | }; |
| 107 | |
| 108 | export const initialCommit = (spawner: typeof execa) => async ( |
| 109 | hash: string, |
| 110 | projectDir: string |
| 111 | ): Promise<void> => { |
| 112 | const opts: Options = { |
| 113 | cwd: projectDir, |
| 114 | encoding: 'utf8', |
| 115 | stdio: 'pipe', |
| 116 | }; |
| 117 | await spawner('git', ['init'], opts); |
| 118 | await spawner('git', ['add', '-A'], opts); |
| 119 | await spawner( |
| 120 | 'git', |
| 121 | [ |
| 122 | 'commit', |
| 123 | '-m', |
| 124 | `Initial commit\n\nCreated with bitjson/typescript-starter@${hash}`, |
| 125 | ], |
| 126 | opts |
| 127 | ); |
| 128 | }; |
| 129 | |
| 130 | export const install = (spawner: typeof execa) => async ( |
| 131 | runner: Runner, |
no outgoing calls
no test coverage detected