eligius 2.2.2 → 2.3.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 +15 -0
- package/dist/index.mjs.map +1 -1
- package/dist/metadata.d.mts +2885 -0
- package/dist/metadata.mjs +2489 -0
- package/dist/metadata.mjs.map +1 -0
- package/package.json +2 -1
package/README.md
CHANGED
|
@@ -368,6 +368,21 @@ It is encouraged to use this API to build specialized DSL's for specific present
|
|
|
368
368
|
|
|
369
369
|
Also, there is the [Eligian](https://github.com/rolandzwaga/eligian) project that aims to become an actual programming language for the Eligius runtime.
|
|
370
370
|
|
|
371
|
+
## Metadata import (`eligius/metadata`)
|
|
372
|
+
|
|
373
|
+
Tooling that only needs to *inspect* Eligius's operation, controller and event **metadata** — code generators, DSL compilers, completion providers, documentation tools — can import it from the dedicated `eligius/metadata` entry point:
|
|
374
|
+
|
|
375
|
+
```javascript
|
|
376
|
+
import { metadata, ctrlmetadata, eventmetadata } from 'eligius/metadata';
|
|
377
|
+
|
|
378
|
+
const operationNames = Object.keys(metadata); // 'addClass', 'selectElement', ...
|
|
379
|
+
const { description, properties } = metadata.addClass();
|
|
380
|
+
```
|
|
381
|
+
|
|
382
|
+
This entry is bundled separately and contains **only metadata** — it does not pull in the engine runtime (jQuery, lottie-web, video.js). As a result it can be imported from a plain Node process **without a DOM**, unlike the main `eligius` entry, which evaluates the browser runtime (jQuery) on import and therefore requires a `window`.
|
|
383
|
+
|
|
384
|
+
Rule of thumb: use `eligius/metadata` for build-time and server-side tooling; use the main `eligius` entry to actually run the engine.
|
|
385
|
+
|
|
371
386
|
## Source documentation
|
|
372
387
|
|
|
373
388
|
[Check out this link for the full type docs](https://rolandzwaga.github.io/eligius/)
|