@witzo-ai/chat-widget-embed-zycus 0.0.1
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 +43 -0
- package/dist/index.js +1870 -0
- package/dist/index.js.map +1 -0
- package/package.json +35 -0
package/README.md
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
# Static File Server & NPM Package
|
|
2
|
+
|
|
3
|
+
This project allows you to serve static files locally and publish an NPM package with version control using Git.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 📦 Development & Serving
|
|
8
|
+
|
|
9
|
+
### 1. Serve Static Files Locally
|
|
10
|
+
|
|
11
|
+
To quickly serve files from the current directory using a static HTTP server:
|
|
12
|
+
|
|
13
|
+
```bash
|
|
14
|
+
npx http-server .
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
This will start a server and serve files from the current directory.
|
|
18
|
+
|
|
19
|
+
### 2. Development Mode
|
|
20
|
+
|
|
21
|
+
To run the project in development mode:
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pnpm run dev
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
# Publishing to NPM
|
|
29
|
+
|
|
30
|
+
### 1. Tag the Release in Git
|
|
31
|
+
|
|
32
|
+
```bash
|
|
33
|
+
git tag v0.0.22
|
|
34
|
+
git push origin v0.0.22
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
Make sure to increment the version number appropriately based on your changes (v0.0.x for patches, etc.).
|
|
38
|
+
|
|
39
|
+
### 2. Publish to NPM
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
npm publish --access public
|
|
43
|
+
```
|