First of all, thank you for your interest in lighthouse-plugin-greenhouse!
We'd love to accept your patches and contributions!
You use Lighthouse plugins in larger projects referring to them like so:
npx lighthouse --plugins=lighthouse-plugin-greenhouse --viewLighthouse looks in node_modules to find the code to run.
But if we're in the plugin, how do we refer the plugin in node_modules?
npm link is your friend here. It creates a symlink, so you can then refer to the module you're working on as if it had already been installed into node_modules.
Witchcraft.
npm link # create a global link for lighthouse-plugin-greenhouse
npm link lighthouse-plugin-greenhouse # install the link locally
npm install #actually install everything, with the plugin available as a symlinkAlternatively, you can run the setup.sh script, which does this for you.
# add symlink to test the plugin locally
npm run mobile-run https://www.google.com/Write your patc
Helpful links:
Coding style is fully defined in .prettierrc.
npm test # run testsIf you're looking for support or pointers, come say hi in the ClimateActionTech slack.