- Install Node
v16.17.1
- Copy
.npmrc.dist
to.npmrc
or use:
cp ./.npmrc.dist ./.npmrc
- Set
authToken
in.npmrc
. You can find it here - Run
npm install --legacy-peer-deps
unset SERVER_DOMAIN
or revert domain changes - just in case if you changed for developmentnpm run-script build-prod
- it creates archivedist/timecamp-browser-extension-2.x.x.zip
and directorydist/plugin
with same unzipped files- Install plugin in browser
-
Change backend url by creating environment variable:
export SERVER_DOMAIN=app.timecamp.local
-
Run:
npm run build-dev
it createsdist/plugin
directory
- Open
chrome://extensions/
- Select Developer mode
- Disable current TimeCamp plugin if you have any
- Click
Load unpacked
and 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-desc
ex.fix/BP-3-format-change
- In
package.json
change version to2.{currentValue}.{taskId}
- Commit changes
- Make PR
Steps to open background console:
- Go to
chrome://extensions/
- Open
details
of extension - Click
background page
underInspect views
Extensions-reloader: Useful plugin for fast extension reloading