-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
175 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -87,6 +87,7 @@ | |
"clean:packages": "yarn workspaces foreach --all --parallel --verbose --exclude 'wp-calypso' run clean", | ||
"clean:public": "rm -rf public", | ||
"clean:translations": "rm -rf build/strings calypso-strings.pot chunks-map.*.json || true", | ||
"component-usage-stats": "node ./node_modules/react-scanner/bin/react-scanner -c ./react-scanner.config.js", | ||
"components:storybook:start": "echo 'Storybook in Calypso moved into the root directory. Run `yarn storybook:start` instead.'", | ||
"composite-checkout:storybook:start": "echo 'Deprecated, run `yarn workspace @automattic/composite-checkout run storybook` instead'", | ||
"distclean": "yarn run clean && rm -rf **/node_modules **/.cache .yarn/install-state.gz || true", | ||
|
@@ -303,6 +304,7 @@ | |
"postcss-custom-properties": "^11.0.0", | ||
"prettier": "npm:[email protected]", | ||
"react-refresh": "^0.14.0", | ||
"react-scanner": "1.2.0", | ||
"readline-sync": "^1.4.10", | ||
"recursive-copy": "^2.0.14", | ||
"replace": "^1.1.5", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
module.exports = { | ||
// Crawl the entire repo | ||
crawlFrom: './', | ||
// Needed for properly reporting components with dot notation | ||
includeSubComponents: true, | ||
// Exclude any vendor or docs directories | ||
exclude: [ | ||
'bin', | ||
'build', | ||
'build-tools', | ||
'config', | ||
'docs', | ||
'node_modules', | ||
'public', | ||
'results', | ||
'test', | ||
'tools', | ||
'typings', | ||
'vendor', | ||
], | ||
/* | ||
* Filter out any non-component React elements and consider only imports of | ||
* `@wordpress/components` outside of the package. | ||
*/ | ||
importedFrom: '@wordpress/components', | ||
processors: [ [ 'raw-report', { outputTo: './results/calypso.json' } ] ], | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters