From 6d3a41a15e53f03b2e0e63a34115d816db462a35 Mon Sep 17 00:00:00 2001 From: Archish Thakkar Date: Wed, 2 Jun 2021 15:56:38 +0530 Subject: [PATCH 1/3] :fire: added files to ignore while uploading --- bin/helpers/constants.js | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/bin/helpers/constants.js b/bin/helpers/constants.js index 04f62613..1d456271 100644 --- a/bin/helpers/constants.js +++ b/bin/helpers/constants.js @@ -131,7 +131,23 @@ const messageTypes = { const allowedFileTypes = ['js', 'json', 'txt', 'ts', 'feature', 'features', 'pdf', 'jpg', 'jpeg', 'png', 'zip', 'npmrc', 'xml', 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'jsx', 'coffee', 'cjsx', 'csv', 'tsv', 'yml', 'yaml']; -const filesToIgnoreWhileUploading = ['**/node_modules/**', 'node_modules/**', 'package-lock.json', 'package.json', 'browserstack-package.json', 'tests.zip', 'cypress.json'] +const filesToIgnoreWhileUploading = ['**/node_modules/**', + 'node_modules/**', + 'package-lock.json', + 'package.json', + 'browserstack-package.json', + 'tests.zip', + 'cypress.json', + '.idea/', + '*.iml', + '.vscode/', + '.npm/', + '.vscode-test', + '.yarn/cache', + '.yarn/unplugged', + '.yarn/install-state.gz', + '.pnp.*' + ] const specFileTypes = ['js', 'ts', 'feature', 'jsx', 'coffee', 'cjsx']; From 4ee300685712eb53f25014c1889de16ca1bc89c4 Mon Sep 17 00:00:00 2001 From: Archish Thakkar Date: Wed, 2 Jun 2021 16:03:33 +0530 Subject: [PATCH 2/3] :art: identation fixes --- bin/helpers/constants.js | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/bin/helpers/constants.js b/bin/helpers/constants.js index 1d456271..18a3e9cc 100644 --- a/bin/helpers/constants.js +++ b/bin/helpers/constants.js @@ -131,23 +131,24 @@ const messageTypes = { const allowedFileTypes = ['js', 'json', 'txt', 'ts', 'feature', 'features', 'pdf', 'jpg', 'jpeg', 'png', 'zip', 'npmrc', 'xml', 'doc', 'docx', 'ppt', 'pptx', 'xls', 'xlsx', 'jsx', 'coffee', 'cjsx', 'csv', 'tsv', 'yml', 'yaml']; -const filesToIgnoreWhileUploading = ['**/node_modules/**', - 'node_modules/**', - 'package-lock.json', - 'package.json', - 'browserstack-package.json', - 'tests.zip', - 'cypress.json', - '.idea/', - '*.iml', - '.vscode/', - '.npm/', - '.vscode-test', - '.yarn/cache', - '.yarn/unplugged', - '.yarn/install-state.gz', - '.pnp.*' - ] +const filesToIgnoreWhileUploading = [ + '**/node_modules/**', + 'node_modules/**', + 'package-lock.json', + 'package.json', + 'browserstack-package.json', + 'tests.zip', + 'cypress.json', + '.idea/', + '*.iml', + '.vscode/', + '.npm/', + '.vscode-test', + '.yarn/cache', + '.yarn/unplugged', + '.yarn/install-state.gz', + '.pnp.*' +]; const specFileTypes = ['js', 'ts', 'feature', 'jsx', 'coffee', 'cjsx']; From 54dbe112444669347ee66aec39b8f9449b1f01ec Mon Sep 17 00:00:00 2001 From: Archish Thakkar Date: Wed, 2 Jun 2021 19:48:44 +0530 Subject: [PATCH 3/3] :fire: removed unwanted files --- bin/helpers/constants.js | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/bin/helpers/constants.js b/bin/helpers/constants.js index 18a3e9cc..f4219805 100644 --- a/bin/helpers/constants.js +++ b/bin/helpers/constants.js @@ -139,15 +139,10 @@ const filesToIgnoreWhileUploading = [ 'browserstack-package.json', 'tests.zip', 'cypress.json', - '.idea/', - '*.iml', - '.vscode/', - '.npm/', - '.vscode-test', - '.yarn/cache', - '.yarn/unplugged', - '.yarn/install-state.gz', - '.pnp.*' + '.idea/**', + '.vscode/**', + '.npm/**', + '.yarn/**', ]; const specFileTypes = ['js', 'ts', 'feature', 'jsx', 'coffee', 'cjsx'];