From 61b30317a65016b9cac69d39652e21d71ae2eb02 Mon Sep 17 00:00:00 2001 From: Nik Tverd <61203447+niktverd@users.noreply.github.com> Date: Mon, 22 May 2023 17:57:40 +0600 Subject: [PATCH] build: add ignoring of test files to gulpfile, remove js,jsx from gulpfile (#53) --- gulpfile.js | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/gulpfile.js b/gulpfile.js index 38de6b03..cddda674 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -30,12 +30,14 @@ const CONFIG_EXTENSION_FOR_COMPILE = { }; const SRC_FOR_INDEX_BUILD = [ - 'src/**/*.{js,jsx,ts,tsx}', - '!src/demo/**/*.{js,jsx,ts,tsx}', - '!src/stories/**/*.{js,jsx,ts,tsx}', - '!src/**/__stories__/**/*.{js,jsx,ts,tsx}', - '!src/data/**/*.{js,jsx,ts,tsx}', + 'src/**/*.{ts,tsx}', + '!src/demo/**/*', + '!src/stories/**/*', + '!src/**/__stories__/**/*', + '!src/**/__tests__/**/*', + '!src/data/**/*', '!src/server.ts', + '!test-utils/**/*', ]; const SRC_FOR_SERVER_REQUIREMENTS = [ @@ -157,6 +159,8 @@ task('copy-js-declarations', () => { '!src/demo/**/*.d.ts', '!src/stories/**/*.d.ts', '!src/**/__stories__/**/*.d.ts', + '!src/**/__tests__/**/*.d.ts', + '!test-utils/**/*.d.ts', ]) .pipe(dest(path.resolve(BUILD_CLIENT_DIR, ESM_DIR))) .pipe(dest(path.resolve(BUILD_CLIENT_DIR, CJS_DIR)));