Skip to content

Commit

Permalink
feat(.gitkeep): added .gitkeep to ensure dir(s) are tracked by git fr…
Browse files Browse the repository at this point in the history
…om creation
  • Loading branch information
robophil committed Oct 13, 2017
1 parent 93e0824 commit c55e6a9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions bin/cmd/new.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ const postfixName = '-service'
const makeProject = (name) => {
const newDir = []
newDir.push(fs.ensureDir(`${cwd}/${name}/`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/models/`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/requester/`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/responder/`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/publisher/`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/subscriber/`))
newDir.push(fs.ensureFile(`${cwd}/${name}/src/models/.gitkeep`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/requester/.gitkeep`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/responder/.gitkeep`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/publisher/.gitkeep`))
newDir.push(fs.ensureDir(`${cwd}/${name}/src/app/subscriber/.gitkeep`))

return Promise.all(newDir)
}
Expand Down

0 comments on commit c55e6a9

Please sign in to comment.