File tree 2 files changed +25
-1
lines changed
2 files changed +25
-1
lines changed Original file line number Diff line number Diff line change @@ -105,6 +105,30 @@ module.exports.initGitRepo = async (opts) => {
105
105
dest
106
106
} = opts
107
107
108
+ const gitIgnorePath = path . join ( dest , '.gitignore' )
109
+ fs . writeFileSync ( gitIgnorePath , `
110
+ # See https://help.github.com/ignore-files/ for more about ignoring files.
111
+
112
+ # dependencies
113
+ node_modules
114
+
115
+ # builds
116
+ build
117
+ dist
118
+
119
+ # misc
120
+ .DS_Store
121
+ .env
122
+ .env.local
123
+ .env.development.local
124
+ .env.test.local
125
+ .env.production.local
126
+
127
+ npm-debug.log*
128
+ yarn-debug.log*
129
+ yarn-error.log*
130
+ ` , 'utf8' )
131
+
108
132
const cmd = `git init && git add . && git commit -m "init ${ pkg . name } @${ pkg . version } "`
109
133
return execa . shell ( cmd , { cwd : dest } )
110
134
}
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " react-modern-library-cli" ,
3
- "version" : " 1.2 .0" ,
3
+ "version" : " 1.3 .0" ,
4
4
"description" : " CLI for easily bootstrapping modern react libraries" ,
5
5
"main" : " index.js" ,
6
6
"license" : " MIT" ,
You can’t perform that action at this time.
0 commit comments