File tree Expand file tree Collapse file tree 3 files changed +120
-1
lines changed
Expand file tree Collapse file tree 3 files changed +120
-1
lines changed Original file line number Diff line number Diff line change @@ -1176,3 +1176,119 @@ dist
11761176.vscode-test
11771177
11781178# End of https://www.toptal.com/developers/gitignore/api/node
1179+
1180+ # Created by https://www.toptal.com/developers/gitignore/api/node
1181+ # Edit at https://www.toptal.com/developers/gitignore?templates=node
1182+
1183+ # ## Node ###
1184+ # Logs
1185+ logs
1186+ * .log
1187+ npm-debug.log *
1188+ yarn-debug.log *
1189+ yarn-error.log *
1190+ lerna-debug.log *
1191+
1192+ # Diagnostic reports (https://nodejs.org/api/report.html)
1193+ report. [0-9 ]* . [0-9 ]* . [0-9 ]* . [0-9 ]* .json
1194+
1195+ # Runtime data
1196+ pids
1197+ * .pid
1198+ * .seed
1199+ * .pid.lock
1200+
1201+ # Directory for instrumented libs generated by jscoverage/JSCover
1202+ lib-cov
1203+
1204+ # Coverage directory used by tools like istanbul
1205+ coverage
1206+ * .lcov
1207+
1208+ # nyc test coverage
1209+ .nyc_output
1210+
1211+ # Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
1212+ .grunt
1213+
1214+ # Bower dependency directory (https://bower.io/)
1215+ bower_components
1216+
1217+ # node-waf configuration
1218+ .lock-wscript
1219+
1220+ # Compiled binary addons (https://nodejs.org/api/addons.html)
1221+ build /Release
1222+
1223+ # Dependency directories
1224+ node_modules /
1225+ jspm_packages /
1226+
1227+ # TypeScript v1 declaration files
1228+ typings /
1229+
1230+ # TypeScript cache
1231+ * .tsbuildinfo
1232+
1233+ # Optional npm cache directory
1234+ .npm
1235+
1236+ # Optional eslint cache
1237+ .eslintcache
1238+
1239+ # Microbundle cache
1240+ .rpt2_cache /
1241+ .rts2_cache_cjs /
1242+ .rts2_cache_es /
1243+ .rts2_cache_umd /
1244+
1245+ # Optional REPL history
1246+ .node_repl_history
1247+
1248+ # Output of 'npm pack'
1249+ * .tgz
1250+
1251+ # Yarn Integrity file
1252+ .yarn-integrity
1253+
1254+ # dotenv environment variables file
1255+ .env
1256+ .env.test
1257+ .env * .local
1258+
1259+ # parcel-bundler cache (https://parceljs.org/)
1260+ .cache
1261+ .parcel-cache
1262+
1263+ # Next.js build output
1264+ .next
1265+
1266+ # Nuxt.js build / generate output
1267+ .nuxt
1268+ dist
1269+
1270+ # Gatsby files
1271+ .cache /
1272+ # Comment in the public line in if your project uses Gatsby and not Next.js
1273+ # https://nextjs.org/blog/next-9-1#public-directory-support
1274+ # public
1275+
1276+ # vuepress build output
1277+ .vuepress /dist
1278+
1279+ # Serverless directories
1280+ .serverless /
1281+
1282+ # FuseBox cache
1283+ .fusebox /
1284+
1285+ # DynamoDB Local files
1286+ .dynamodb /
1287+
1288+ # TernJS port file
1289+ .tern-port
1290+
1291+ # Stores VSCode versions used for testing VSCode extensions
1292+ .vscode-test
1293+
1294+ # End of https://www.toptal.com/developers/gitignore/api/node
Original file line number Diff line number Diff line change @@ -32,6 +32,7 @@ const getGeneratedFileValue = async (value = "node") => {
3232const createFile = async ( filePath , contents ) => {
3333 try {
3434 return new Promise ( ( resolve , reject ) => {
35+ console . log ( "== Current create Path ==" , filePath ) ;
3536 fs . writeFile ( filePath , contents , "utf-8" , function ( err ) {
3637 if ( err ) reject ( err ) ;
3738 else {
@@ -48,6 +49,7 @@ const createFile = async (filePath, contents) => {
4849const overWriteFile = async ( filePath , contents ) => {
4950 try {
5051 return new Promise ( ( resolve , reject ) => {
52+ console . log ( "== Current overwrite Path ==" , filePath ) ;
5153 fs . appendFileSync ( filePath , contents , "utf-8" , function ( err ) {
5254 if ( err ) reject ( err ) ;
5355 else {
@@ -62,6 +64,7 @@ const overWriteFile = async (filePath, contents) => {
6264} ;
6365
6466const generateGitignoreFile = async ( contents ) => {
67+ console . log ( "===generateGitignoreFile===" , __dirname ) ;
6568 const filePath = path . resolve ( path . join ( __dirname , ".gitignore" ) ) ;
6669 const isExists = await fs . existsSync ( filePath ) ;
6770 if ( isExists ) {
Original file line number Diff line number Diff line change 11{
22 "name" : " gigen" ,
3- "version" : " 0.0.2 " ,
3+ "version" : " 0.0.3 " ,
44 "description" : " " ,
55 "main" : " app.js" ,
66 "scripts" : {
You can’t perform that action at this time.
0 commit comments