@lemonsliceai/lemon-slice-widget 1.0.11 → 1.0.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +35 -7
- package/dist/index.js +42 -42
- package/package.json +6 -7
package/README.md
CHANGED
|
@@ -1,11 +1,39 @@
|
|
|
1
|
-
#
|
|
1
|
+
# video-chat-widget
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
## CLI Commands
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
``` bash
|
|
6
|
+
# install dependencies
|
|
7
|
+
pnpm install
|
|
6
8
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
9
|
+
# serve with hot reload at localhost:5177
|
|
10
|
+
pnpm run dev
|
|
11
|
+
|
|
12
|
+
# lint the project with eslint to find code style issues
|
|
13
|
+
pnpm run lint
|
|
14
|
+
|
|
15
|
+
# run tests with jest and vitest
|
|
16
|
+
pnpm run test
|
|
11
17
|
```
|
|
18
|
+
|
|
19
|
+
## How to Deploy
|
|
20
|
+
|
|
21
|
+
``` bash
|
|
22
|
+
# Login to lemon slice npm account
|
|
23
|
+
npm login
|
|
24
|
+
|
|
25
|
+
# Update version by running one of these commands
|
|
26
|
+
npm version patch # 0.0.X
|
|
27
|
+
npm version minor # 0.X.0
|
|
28
|
+
npm version major # X.0.0
|
|
29
|
+
|
|
30
|
+
# Build the latest code
|
|
31
|
+
npm run build
|
|
32
|
+
|
|
33
|
+
# Publish it
|
|
34
|
+
npm publish --access public
|
|
35
|
+
|
|
36
|
+
# Use it
|
|
37
|
+
# <lemon-slice-widget agent-id="bot_123"></lemon-slice-widget>
|
|
38
|
+
# <script type="module" src="https://unpkg.com/lemon-slice-widget"></script>
|
|
39
|
+
```
|