Development - FrostCo/AdvancedProfanityFilter GitHub Wiki
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
- Open the Chrome debugger: chrome://inspect
- Click on
Open dedicated DevTools for Node
- 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