├── .eslintignore ├── .eslintrc ├── .github └── workflows │ └── ci.yml ├── .gitignore ├── .husky ├── .gitignore └── pre-commit ├── .nvmrc ├── .prettierignore ├── .prettierrc ├── LICENSE ├── README.md ├── bin └── react-scanner ├── package.json ├── renovate.json ├── scripts └── processors.js ├── src ├── index.js ├── index.test.js ├── processors │ ├── count-components-and-props.js │ ├── count-components.js │ ├── processors.json │ └── raw-report.js ├── run.js ├── scan.js ├── scan.test.js ├── scanner.js ├── scanner.test.js ├── utils.js └── utils.test.js └── test ├── code ├── Home.js └── index.js └── configs ├── invalid.config.js ├── multipleProcessors.config.js ├── noFilesFound.config.js ├── noProcessors.config.js └── singleProcessor.config.js /.eslintignore: -------------------------------------------------------------------------------- 1 | test 2 | test/reports 3 | -------------------------------------------------------------------------------- /.eslintrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/.eslintrc -------------------------------------------------------------------------------- /.github/workflows/ci.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/.github/workflows/ci.yml -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | coverage 3 | test/reports 4 | .DS_Store -------------------------------------------------------------------------------- /.husky/.gitignore: -------------------------------------------------------------------------------- 1 | _ 2 | -------------------------------------------------------------------------------- /.husky/pre-commit: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/.husky/pre-commit -------------------------------------------------------------------------------- /.nvmrc: -------------------------------------------------------------------------------- 1 | v16.17.0 2 | -------------------------------------------------------------------------------- /.prettierignore: -------------------------------------------------------------------------------- 1 | coverage 2 | test/reports 3 | package-lock.json 4 | -------------------------------------------------------------------------------- /.prettierrc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/.prettierrc -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/LICENSE -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/README.md -------------------------------------------------------------------------------- /bin/react-scanner: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env node 2 | 3 | require('../src/index'); -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/package.json -------------------------------------------------------------------------------- /renovate.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/renovate.json -------------------------------------------------------------------------------- /scripts/processors.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/scripts/processors.js -------------------------------------------------------------------------------- /src/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/index.js -------------------------------------------------------------------------------- /src/index.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/index.test.js -------------------------------------------------------------------------------- /src/processors/count-components-and-props.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/processors/count-components-and-props.js -------------------------------------------------------------------------------- /src/processors/count-components.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/processors/count-components.js -------------------------------------------------------------------------------- /src/processors/processors.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/processors/processors.json -------------------------------------------------------------------------------- /src/processors/raw-report.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/processors/raw-report.js -------------------------------------------------------------------------------- /src/run.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/run.js -------------------------------------------------------------------------------- /src/scan.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/scan.js -------------------------------------------------------------------------------- /src/scan.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/scan.test.js -------------------------------------------------------------------------------- /src/scanner.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/scanner.js -------------------------------------------------------------------------------- /src/scanner.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/scanner.test.js -------------------------------------------------------------------------------- /src/utils.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/utils.js -------------------------------------------------------------------------------- /src/utils.test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/src/utils.test.js -------------------------------------------------------------------------------- /test/code/Home.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/test/code/Home.js -------------------------------------------------------------------------------- /test/code/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/test/code/index.js -------------------------------------------------------------------------------- /test/configs/invalid.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | crawlFrom: ["../code"], 3 | exclude: "tests", 4 | }; 5 | -------------------------------------------------------------------------------- /test/configs/multipleProcessors.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/test/configs/multipleProcessors.config.js -------------------------------------------------------------------------------- /test/configs/noFilesFound.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | crawlFrom: "../code", 3 | globs: ["**/*.jsx"], 4 | }; 5 | -------------------------------------------------------------------------------- /test/configs/noProcessors.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | crawlFrom: "../code", 3 | }; 4 | -------------------------------------------------------------------------------- /test/configs/singleProcessor.config.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/moroshko/react-scanner/HEAD/test/configs/singleProcessor.config.js --------------------------------------------------------------------------------