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 committed Oct 4, 2019
1 parent 53b1101 commit 13c79dc
Show file tree
Hide file tree
Showing 8 changed files with 45 additions and 321 deletions.
7 changes: 1 addition & 6 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -120,16 +120,11 @@ module.exports = {
'import/no-extraneous-dependencies': 'error',
},
excludedFiles: [
'**/{storybook,stories}\/*\.js',
'**/*.@(android|ios|native).js',
'**/@(benchmark|test|__tests__)/**/*.js',
],
},
{
files: [ 'packages/**/{storybook,stories}\/*\.js' ],
rules: {
'import/no-extraneous-dependencies': 'off',
},
},
{
files: [
'packages/jest*/**/*.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 13c79dc

Please sign in to comment.