sitespeedio / coach

Clear Eyes. Full Hearts. Can’t Lose.
MIT License
1.21k stars 64 forks source link

Modifying Coach Locally #327

Open xanderstephens125 opened 5 years ago

xanderstephens125 commented 5 years ago

Hi,

I am attempting to change some of the scoring in the Coach for our personal use case. I am able to build the standalone Coach docker image locally and get the information in the format I want. I am wondering how I would use this updated coach code and Docker image with the existing SiteSpeed repo. Where does the SiteSpeed Repo call the Coach repo?

Thank you

xanderstephens125 commented 5 years ago

@soulgalore

soulgalore commented 5 years ago

Hi @xanderstephens125 sitespeed.io uses the coach as a node module and get the JS from the coach and run it standalone through Browsertime. https://github.com/sitespeedio/sitespeed.io/blob/master/lib/plugins/browsertime/index.js https://github.com/sitespeedio/sitespeed.io/tree/master/lib/plugins/coach and https://github.com/sitespeedio/sitespeed.io/blob/master/package.json

Best Peter

xanderstephens125 commented 5 years ago

@soulgalore,

Thank you for the quick reply. So, if I pull the coach.js out of the dist folder from building Coach locally, can I place that somewhere in the sitespeed.io project in order to use that instead of pulling the centralized node module?

Thank you