Skip to content

Commit

Permalink
build: add ignoring of test files to gulpfile, remove js,jsx from gul…
Browse files Browse the repository at this point in the history
…pfile (#53)
  • Loading branch information
niktverd authored May 22, 2023
1 parent a3a91f8 commit 61b3031
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
Expand Down Expand Up @@ -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)));
Expand Down

0 comments on commit 61b3031

Please sign in to comment.