@arbocollab/arbo-web-search 1.0.1 → 1.0.4

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 CHANGED
@@ -3,3 +3,61 @@
3
3
  This template should help get you started developing with Vue 3 and TypeScript in Vite. The template uses Vue 3 `<script setup>` SFCs, check out the [script setup docs](https://v3.vuejs.org/api/sfc-script-setup.html#sfc-script-setup) to learn more.
4
4
 
5
5
  Learn more about the recommended Project Setup and IDE Support in the [Vue Docs TypeScript Guide](https://vuejs.org/guide/typescript/overview.html#project-setup).
6
+
7
+
8
+ # JsDelivr expected output:
9
+
10
+ Accessible from:
11
+ https://cdn.jsdelivr.net/npm/<package-name\>@<version\>/<file-path\>
12
+
13
+ #### Example:
14
+ \<script src="https://cdn.jsdelivr.net/npm/gs@latest/gs.umd.min.js">\</script>
15
+
16
+
17
+ #### Auto-resolving main fle
18
+ - Define "main" file in package.json
19
+
20
+ ```
21
+
22
+ {
23
+ "main": "dist/gs.umd.min.js" // global all browsers
24
+ "module": "dist/gsm.esm.js" // ESM modern browsers
25
+ "browser": dist/gs.umd.min.js", // fallback for browsers
26
+ "files" : ["dist"], // push the dist folder
27
+ ...
28
+ ```
29
+
30
+ # How to publish to NpmJS?
31
+
32
+ - UMD/ESM build => prefer UMD minified
33
+
34
+ - register npmjs registry entry in .npmrc
35
+
36
+ - npm run build --mode=production
37
+
38
+ - npm publish (to npmJS, ONLY dist/.umd file)
39
+
40
+ # Live publish using makefile
41
+
42
+ ## i. Preparation
43
+
44
+ - Update dependencies to live version: `"@arbocollab/arbo-ui-components": "npm:@arbocollab/arbo-ui-components@^1.x.xxx",`
45
+
46
+ - Change `"version": "1.x.x",`
47
+
48
+ ## ii. Publish to NpmJS & JsDelivr CDN
49
+
50
+ - Publish using Makefile instruction:
51
+
52
+ - Install
53
+ `make install`
54
+
55
+ - Build for production
56
+ `make build-production`
57
+
58
+ - Publish to npmjs public package repository
59
+ `make publish-npmjs`
60
+
61
+ - Clear cdn cache
62
+ `make purge-cdn-cache`
63
+ ```