Starcounter / DevTools

A browser extension that helps you debug Starcounter apps with ease
3 stars 1 forks source link
bookmarklet chrome starcounter-debug web-platform-team


Starcounter DevTools logo
Starcounter DevTools

A browser extension that helps you debug Starcounter apps with ease

Chrome Web Store

screenshot

Installing

You can install it for Chrome and Firefox.

Using the Bookmarklet

In case you're not interested in installing the extension, or want to use it in an unsupported browser, you can use the bookmarklet:

javascript:(function(){var script = document.createElement('script');script.src = 'https://rawgit.com/Starcounter/DevTools/master/build/webextension/injected_script.js';document.body.appendChild(script);script.onload=()=>window.dispatchEvent(new CustomEvent('sc-debug-show-overlay'))})()

Build Setup

# install dependencies
npm install

# build for production with minification
npm run build

After you build, you'll have a build directory with two sub-directories webextension and firefox. WebExtension folder can be used for every browser that supports WebExtension except Firefox, and you can use firefox directory with you-guessed-it browser.

Adding to browser

Easier development

You can run

npm install
npm run watch

This will watch for file changes and compile again after every file modification you make. Then in the browser, you'll need to "Reload extension" after each modification. Each modification will take you ~2 seconds to see live. Easy enough.

Publishing

After you build, you'll need to zip the extension and upload it to the desired store.

To do

Write tests