- Install Node
v16.17.1 - Copy
.npmrc.distto.npmrcor use:
cp ./.npmrc.dist ./.npmrc- Set
authTokenin.npmrc. You can find it here - Run
npm install --legacy-peer-depsdocker compose run --rm app npm run build-dev
unset SERVER_DOMAINor revert domain changes - just in case if you changed for developmentnpm run-script build-prod- it creates archivedist/timecamp-browser-extension-2.x.x.zipand directorydist/pluginwith same unzipped files- Install plugin in browser
-
Change backend url by creating environment variable:
export SERVER_DOMAIN=app.timecamp.local -
Run:
npm run build-devit createsdist/plugindirectory
- Open
chrome://extensions/ - Select Developer mode
- Disable current TimeCamp plugin if you have any
- Click
Load unpackedand select a folder where you havedist/plugin
Plugin version is stored only in package.json
Version from package.json:version is copied to manifest.json:version
- Create branch:
fix/{projectId}-{taskId}-short-descex.fix/BP-3-format-change - In
package.jsonchange version to2.{currentValue}.{taskId} - Commit changes
- Make PR
Steps to open background console:
- Go to
chrome://extensions/ - Open
detailsof extension - Click
background pageunderInspect views
Extensions-reloader: Useful plugin for fast extension reloading