Skip to content

Commit e2909ed

Browse files
fix: git commit after creation
1 parent 89ce49a commit e2909ed

File tree

3 files changed

+28
-1
lines changed

3 files changed

+28
-1
lines changed

package-lock.json

Lines changed: 23 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@
111111
"pug": "^2.0.3",
112112
"reload": "^2.3.0",
113113
"rxjs": "^6.2.2",
114+
"simple-git": "^1.96.0",
114115
"ts-jest": "22.4.6",
115116
"ts-node": "^7.0.0",
116117
"tslint": "^5.11.0",

src/commands/create.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -363,7 +363,10 @@ function create(overwriteExisting = false) {
363363
)
364364
.subscribe(
365365
res => {
366-
// noop
366+
require('simple-git')()
367+
.init()
368+
.add('./*')
369+
.commit('init')
367370
},
368371
err => {
369372
console.error(err)

0 commit comments

Comments
 (0)