How to test or use capacitor plugin project with Ionic 5 application project during development?

Hi, I’m trying to create a capacitor plugin. But I wonder how to test it with Ionic 5 project while still coding or debugging the plugin project?

I tried to search for guideline to do this. but I cannot find its in following links:

they are just a good guideline to create then how to put code into its. but not for testing with main application project.

  1. Could you help me or giving me a link for this instruction, or tutorial?
  2. Is it better way to test it without publish to npm? it consumed time too much.