dev-howto.md
April 13, 2026 ยท View on GitHub
This extension uses Node.js
- Install Node.js
- Install the dependencies:
npm install - Build the extension:
npm run build - The extension is built in the
distdirectory - Add to your Chrome
- Chrome: chrome://extensions/ -> Load unpacked
- Additional
- Build Script copies the /dist folder to your Chrome Extension Folder
- A script increases the version number.
- There are legacy PowerShell scripts that might be outdated.
Deployment
Scripts in package.json
dev: Watches for changes in the source files and rebuilds the extension automatically.
build: Cleans the dist directory, increments the version number, builds the extension, copies necessary files to dist, and runs the deployment script. Also copies files to your chrome's extension folder (adopt to your path!)
zip: Creates a zip file of the dist directory for publishing.
To Publishing to chrome marketplace, get some settings following this Use the Chrome Web Store Publish API.
You get settings for clientId, clientSecret, refreshToken & extensionId
publish-init: Initializes the publish-browser-extension configuration. You enter the values above, it creates a .env.submit file, needed for publish
publish: Uses publish-browser-extension to publish the extension to the Chrome Web Store.
Extract Supported maps to MD
node extract-maps.js creates maps-list.md