Skip to content

Development

Richard Frost edited this page Oct 7, 2018 · 3 revisions

Requirements

  • Download the latest node.js
  • Clone the repo (or your fork)

Development Environment

# Getting started
npm install

# Build JS (dist) from TypeScript (src)
npm run build

# Run tests (on JS, make sure to run npm run build before testing)
npm test

# Package Extension Zip
npm run package

Debugging

  1. Open the Chrome debugger: chrome://inspect
  2. Click on Open dedicated DevTools for Node
  3. In the terminal, run the tests: npm run debug-test

Options for debugging

  • Add .only in a test (ex. describe.only(...))
  • Add a debugger; line to the code
  • Add a breakpoint in Chrome Dev Tools