From 2beae79f6e35904c3803d17081db65782df82f24 Mon Sep 17 00:00:00 2001 From: Jon Ursenbach Date: Fri, 13 Mar 2020 09:35:16 -0700 Subject: [PATCH] chore: excluding unnecessary files from our published packages (#524) --- .editorconfig | 12 ------------ packages/api-explorer/.editorconfig | 12 ------------ packages/api-explorer/.npmignore | 7 ++++++- packages/api-logs/.editorconfig | 12 ------------ packages/api-logs/.npmignore | 7 ++++++- packages/api-logs/example.js | 0 packages/http-status-codes/.npmignore | 7 ++----- packages/markdown-magic/.npmignore | 5 ++++- packages/markdown-magic/example.js | 0 packages/markdown/.editorconfig | 11 ----------- packages/markdown/.npmignore | 7 +++++++ packages/oas-extensions/.editorconfig | 11 ----------- packages/oas-extensions/.npmignore | 1 + packages/oas-to-har/.npmignore | 5 ++++- packages/syntax-highlighter/.editorconfig | 11 ----------- packages/syntax-highlighter/.npmignore | 6 +++++- packages/variable/.editorconfig | 11 ----------- packages/variable/.npmignore | 6 +++++- 18 files changed, 40 insertions(+), 91 deletions(-) delete mode 100644 .editorconfig delete mode 100644 packages/api-explorer/.editorconfig delete mode 100644 packages/api-logs/.editorconfig delete mode 100644 packages/api-logs/example.js delete mode 100644 packages/markdown-magic/example.js delete mode 100644 packages/markdown/.editorconfig create mode 100644 packages/markdown/.npmignore delete mode 100644 packages/oas-extensions/.editorconfig create mode 100644 packages/oas-extensions/.npmignore delete mode 100644 packages/syntax-highlighter/.editorconfig delete mode 100644 packages/variable/.editorconfig diff --git a/.editorconfig b/.editorconfig deleted file mode 100644 index 18e3f010c..000000000 --- a/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*{js,jsx,json}] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true -indent_size = 2 diff --git a/packages/api-explorer/.editorconfig b/packages/api-explorer/.editorconfig deleted file mode 100644 index 82f732f67..000000000 --- a/packages/api-explorer/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*{js,jsx}] -charset = utf-8 -indent_style = space -indent_size = 2 -trim_trailing_whitespace = true diff --git a/packages/api-explorer/.npmignore b/packages/api-explorer/.npmignore index 404abb221..6df7c03f0 100644 --- a/packages/api-explorer/.npmignore +++ b/packages/api-explorer/.npmignore @@ -1 +1,6 @@ -coverage/ +__tests__/ +.eslint* +.jsinspectrc +.prettier* +jest.config.js +webpack.*.js diff --git a/packages/api-logs/.editorconfig b/packages/api-logs/.editorconfig deleted file mode 100644 index 18e3f010c..000000000 --- a/packages/api-logs/.editorconfig +++ /dev/null @@ -1,12 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*{js,jsx,json}] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true -indent_size = 2 diff --git a/packages/api-logs/.npmignore b/packages/api-logs/.npmignore index 404abb221..6df7c03f0 100644 --- a/packages/api-logs/.npmignore +++ b/packages/api-logs/.npmignore @@ -1 +1,6 @@ -coverage/ +__tests__/ +.eslint* +.jsinspectrc +.prettier* +jest.config.js +webpack.*.js diff --git a/packages/api-logs/example.js b/packages/api-logs/example.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/http-status-codes/.npmignore b/packages/http-status-codes/.npmignore index 0631cb2ff..c560f725f 100644 --- a/packages/http-status-codes/.npmignore +++ b/packages/http-status-codes/.npmignore @@ -1,8 +1,5 @@ __tests__/ -coverage/ -.eslintignore -.eslintrc +.eslint* .jsinspectrc -.prettierignore -.prettierrc +.prettier* jest.config.js diff --git a/packages/markdown-magic/.npmignore b/packages/markdown-magic/.npmignore index d14449ad4..c560f725f 100644 --- a/packages/markdown-magic/.npmignore +++ b/packages/markdown-magic/.npmignore @@ -1,2 +1,5 @@ __tests__/ -coverage/ +.eslint* +.jsinspectrc +.prettier* +jest.config.js diff --git a/packages/markdown-magic/example.js b/packages/markdown-magic/example.js deleted file mode 100644 index e69de29bb..000000000 diff --git a/packages/markdown/.editorconfig b/packages/markdown/.editorconfig deleted file mode 100644 index f3602775c..000000000 --- a/packages/markdown/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*js] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true diff --git a/packages/markdown/.npmignore b/packages/markdown/.npmignore new file mode 100644 index 000000000..e530fe2c2 --- /dev/null +++ b/packages/markdown/.npmignore @@ -0,0 +1,7 @@ +__tests__/ +.babelrc +.eslint* +.jsinspectrc +.prettier* +jest.config.js +wepback.*.js diff --git a/packages/oas-extensions/.editorconfig b/packages/oas-extensions/.editorconfig deleted file mode 100644 index f3602775c..000000000 --- a/packages/oas-extensions/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*js] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true diff --git a/packages/oas-extensions/.npmignore b/packages/oas-extensions/.npmignore new file mode 100644 index 000000000..50d35fce6 --- /dev/null +++ b/packages/oas-extensions/.npmignore @@ -0,0 +1 @@ +.eslint* diff --git a/packages/oas-to-har/.npmignore b/packages/oas-to-har/.npmignore index 404abb221..763fb7e1c 100644 --- a/packages/oas-to-har/.npmignore +++ b/packages/oas-to-har/.npmignore @@ -1 +1,4 @@ -coverage/ +__tests__/ +.eslint* +.jsinspectrc +.prettier* diff --git a/packages/syntax-highlighter/.editorconfig b/packages/syntax-highlighter/.editorconfig deleted file mode 100644 index f3602775c..000000000 --- a/packages/syntax-highlighter/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*js] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true diff --git a/packages/syntax-highlighter/.npmignore b/packages/syntax-highlighter/.npmignore index 404abb221..c560f725f 100644 --- a/packages/syntax-highlighter/.npmignore +++ b/packages/syntax-highlighter/.npmignore @@ -1 +1,5 @@ -coverage/ +__tests__/ +.eslint* +.jsinspectrc +.prettier* +jest.config.js diff --git a/packages/variable/.editorconfig b/packages/variable/.editorconfig deleted file mode 100644 index f3602775c..000000000 --- a/packages/variable/.editorconfig +++ /dev/null @@ -1,11 +0,0 @@ -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true - -[*js] -charset = utf-8 -indent_style = space -trim_trailing_whitespace = true diff --git a/packages/variable/.npmignore b/packages/variable/.npmignore index 404abb221..c560f725f 100644 --- a/packages/variable/.npmignore +++ b/packages/variable/.npmignore @@ -1 +1,5 @@ -coverage/ +__tests__/ +.eslint* +.jsinspectrc +.prettier* +jest.config.js