Skip to content

wangkaiwd/monitor-fe

Repository files navigation

monitor-fe

JS SDK of web monitor for error 、performance and behavior, help developer known about usage of your website

Install

Using pnpm:

pnpm add @monitor-fe/core

Example

import { init } from '@monitor-fe/core'

init({
  appId: 'your_app_id',
  userId: 'your_user_id'
})

Development

Start project:

git clone git@github.com:wangkaiwd/monitor-fe.git
pnpm install
pnpm demo:js

If you want to debug source code, you can write debugger statement where you want to dive in, then debugger it in chrome devtool source panel. Please don't forget delete debugger in source code after debug.

Publish to npm:

  • First, you should set GH_TOKEN in environment variable, refer to here
  • Then execute release script
pnpm release patch

patch can replace with any release type

Reference