domma-js 0.3.0-a → 0.3.0-alpha.0

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
@@ -18,6 +18,47 @@ modern UI components in one cohesive package.
18
18
 
19
19
  ## Installation
20
20
 
21
+ ### Via npm (Recommended)
22
+
23
+ To install Domma-js in your project:
24
+
25
+ ```bash
26
+ npm install domma-js@alpha
27
+ ```
28
+
29
+ Then, import it into your JavaScript:
30
+
31
+ ```javascript
32
+ import Domma, { $, _, M, D } from 'domma-js';
33
+ ```
34
+
35
+ Or use CommonJS:
36
+
37
+ ```javascript
38
+ const Domma = require('domma-js');
39
+ const { $, _, M, D } = Domma;
40
+ ```
41
+
42
+ ### Via jsDelivr CDN
43
+
44
+ For quick integration, you can directly include Domma-js from jsDelivr in your HTML. Always specify the version to
45
+ ensure stability.
46
+
47
+ ```html
48
+ <!-- CSS (include these in your <head>) -->
49
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/domma-js@0.3.0-a/public/dist/domma.css">
50
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/domma-js@0.3.0-a/public/dist/grid.css">
51
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/domma-js@0.3.0-a/public/dist/elements.css">
52
+ <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/domma-js@0.3.0-a/public/dist/themes/domma-themes.css">
53
+
54
+ <!-- JavaScript (include before your closing </body> tag) -->
55
+ <script src="https://cdn.jsdelivr.net/npm/domma-js@0.3.0-a/public/dist/domma.min.js"></script>
56
+ ```
57
+
58
+ ### Local Files (UMD and ES Module)
59
+
60
+ You can also download the distribution files and host them yourself.
61
+
21
62
  **Browser (UMD):**
22
63
 
23
64
  ```html
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "domma-js",
3
- "version": "0.3.0-a",
3
+ "version": "0.3.0-alpha.0",
4
4
  "description": "Dynamic Object Manipulation & Modeling API - A complete front-end toolkit.",
5
5
  "main": "public/dist/domma.min.js",
6
6
  "module": "public/dist/domma.esm.js",
@@ -13,6 +13,7 @@
13
13
  "public/dist/elements.css",
14
14
  "public/dist/grid.css",
15
15
  "public/dist/syntax.css",
16
+ "public/dist/themes/",
16
17
  "assets/types/",
17
18
  "LICENSE",
18
19
  "README.md"