Skip to content

Commit

Permalink
feat: create src directory
Browse files Browse the repository at this point in the history
  • Loading branch information
felixfbecker committed Aug 4, 2018
1 parent 2fb2aaf commit 6609544
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/cli.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import 'source-map-support/register'
import chalk from 'chalk'
import exec = require('execa')
import { prompt } from 'inquirer'
import { exists, writeFile } from 'mz/fs'
import { exists, mkdir, writeFile } from 'mz/fs'
import * as path from 'path'
import { createBuildkiteClient, initBuildkite } from './buildkite'
import { CodeCovRepo, createCodeCovClient, getCodeCovBadge } from './codecov'
Expand Down Expand Up @@ -224,6 +224,15 @@ async function main(): Promise<void> {
await writeFile('package.json', JSON.stringify(packageJson, null, 2))
}

try {
console.log('📂 Creating src directory')
await mkdir('src')
} catch (err) {
if (err.code !== 'EEXIST') {
throw err
}
}

console.log('📦 Installing dependencies')
await exec(
'npm',
Expand Down

0 comments on commit 6609544

Please sign in to comment.