cotomy 0.1.60 → 0.1.63

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
@@ -44,6 +44,33 @@ By passing HTML and CSS strings to the constructor, it is possible to generate E
44
44
  - `"display HTML in character literals with color coding"` → `"syntax highlighting for embedded HTML"`
45
45
  - `"generate Element designs with a limited scope"` → `"generate scoped DOM elements with associated styles"`
46
46
 
47
+ ## Development
48
+
49
+ Cotomy ships with both ESM (`dist/esm`) and CommonJS (`dist/cjs`) builds, plus generated type definitions in `dist/types`.
50
+ For direct `<script>` usage, browser-ready bundles are available at `dist/browser/cotomy.js` and `dist/browser/cotomy.min.js` (also served via the npm `unpkg` entry).
51
+ Include the minified build like so:
52
+
53
+ ```html
54
+ <script src="https://unpkg.com/cotomy/dist/browser/cotomy.min.js"></script>
55
+ <script>
56
+ const el = new Cotomy.CotomyElement("<div>Hello</div>");
57
+ document.body.appendChild(el.element);
58
+ </script>
59
+ ```
60
+
61
+ Run the build to refresh every target bundle:
62
+
63
+ ```bash
64
+ npm install
65
+ npm run build
66
+ ```
67
+
68
+ The Vitest-based test suite can be executed via:
69
+
70
+ ```bash
71
+ npx vitest run
72
+ ```
73
+
47
74
  ## License
48
75
 
49
76
  This project is licensed under the [MIT License](LICENSE).