polydev is the Polymer DevTools Extension - a tool to help develop Polymer and custom elements.
polydev must be built before running. The build step externalizes inline scripts for CSP compliance, and copies some dependencies into convenient locations.
To build, run gulp
:
> gulp
The built project is available at build/polydev
.
- Create a new Chrome profile
- Navigate to chrome://extensions
- Check the "Developer mode" checkbox
- Click "Load unpacked extension..."
- Choose
/polydev/build/polydev
Because of the build step gulp must be run after changes. Depending on the change you can either then close and reopen the devtools, or if you've made a change to the content-script or to element-zones, you must reload both the extension and any page you're testing it on.
polydev uses the element-zones library to capture custom element stats. If you want to work on element-zones and see the results in polydev, then:
- Run
bower link
in the element-zones directory - Run
bower link element-zones
in the polydev directory - Run
gulp
as normal