Skip to content

Commit

Permalink
Experimenting with the repository setup
Browse files Browse the repository at this point in the history
  • Loading branch information
gziolo authored and epiqueras committed Oct 4, 2019
1 parent 1778807 commit 524b3ad
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 306 deletions.
1 change: 1 addition & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ module.exports = {
'import/no-extraneous-dependencies': 'error',
},
excludedFiles: [
'**/{storybook,stories}\/*\.js',
'**/*.@(android|ios|native).js',
'**/@(benchmark|test|__tests__)/**/*.js',
'**/{storybook,stories}\/*\.js',
Expand Down
4 changes: 2 additions & 2 deletions bin/packages/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,8 +126,8 @@ if ( files.length ) {
`${ PACKAGES_DIR }/*/src/*.scss`,
], {
ignore: [
`**/test/**`,
`**/__mocks__/**`,
`**/{__mocks__,__tests__,test}/**`,
`**/{storybook,stories}/**`,
],
onlyFiles: true,
} );
Expand Down
2 changes: 1 addition & 1 deletion bin/packages/watch.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ const exists = ( filename ) => {
// and files with a suffix of .test or .spec (e.g. blocks.test.js),
// and deceitful source-like files, such as editor swap files.
const isSourceFile = ( filename ) => {
return ! [ /\/(__tests__|test)\/.+.js$/, /.\.(spec|test)\.js$/ ].some( ( regex ) => regex.test( filename ) ) && /.\.(js|json|scss)$/.test( filename );
return ! [ /\/(__tests__|__mocks__|storybook|stories|test)\/.+.js$/, /.\.(spec|test)\.js$/ ].some( ( regex ) => regex.test( filename ) ) && /.\.(js|json|scss)$/.test( filename );
};

const rebuild = ( filename ) => filesToBuild.set( filename, true );
Expand Down
2 changes: 1 addition & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"ignoreChanges": [
"**/benchmark/*.js",
"**/CHANGELOG.md",
"**/test/**",
"**/{__mocks__,__tests__,test}/**",
"**/{storybook,stories}/**"
],
"packages": [
Expand Down
Loading

0 comments on commit 524b3ad

Please sign in to comment.