This repository uses the @pie-framework/pie-code-health tool to analyze code quality.
# Scan packages and generate reports
npm run health:check
# Or run individual steps:
npm run health:scan # Scan packages
npm run health:report # Generate reports
npm run health:serve # Start dashboard server on http://localhost:8080-
Dependency in package.json:
"@pie-framework/pie-code-health": "git+ssh://git@github.com:pie-framework/pie-code-health.git#main"
-
NPM Scripts:
health:scan- Scans packages directoryhealth:report- Generates reportshealth:serve- Starts server on port 8080health:check- Runs all steps
-
Gitignore:
- Add
reports/to ignore generated reports
- Add
To use a local version of pie-code-health during development:
# In pie-code-health repo
cd /path/to/pie-code-health
yarn link
# In this repo
cd /path/to/pie-elements
yarn link "@pie-framework/pie-code-health"
# Make changes in pie-code-health and they'll be reflected immediately
# When done:
yarn unlink "@pie-framework/pie-code-health"
yarn install --forceReports are generated in the reports/ directory:
dashboard.html- Interactive dashboardsummary.json- Summary statisticsscan-results.json- Raw scan datapackage-reports/- Individual package reports
All configuration and logic lives in the pie-code-health repository.