@intelligentgraphics/ig.gfx.packager 2.2.0 → 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/locales/en.json CHANGED
@@ -18,6 +18,7 @@
18
18
  "options.pushOnly.description": "Try to upload an existing zip file without building and validating the version number",
19
19
  "options.noValidate.description": "Skip validation of wether newVersion is higher than the current version for releases",
20
20
  "options.docs.description": "Generates typedoc",
21
+ "options.ignore.description": "Files to ignore while generating index",
21
22
  "options.license.description": "Path to a license file",
22
23
  "messages.buildSkipEmpty": "No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
23
24
  "messages.releaseSkipEmpty": "No release targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@intelligentgraphics/ig.gfx.packager",
3
- "version": "2.2.0",
4
- "description": "IG.GFX.Packager 2.2.0 (2.2.0.100)",
3
+ "version": "2.3.0",
4
+ "description": "IG.GFX.Packager 2.3.0 (2.3.0.100)",
5
5
  "author": "Michael Beier <mb@intelligentgraphics.biz>",
6
6
  "main": "build/index.js",
7
7
  "private": false,
@@ -24,7 +24,8 @@
24
24
  "clean": "rimraf build *.tsbuildinfo",
25
25
  "prepublishOnly": "yarn clean && yarn dist",
26
26
  "test": "jest",
27
- "_postinstall": "node scripts/postinstall.js"
27
+ "_postinstall": "node scripts/postinstall.js",
28
+ "format": "prettier --write \"**/*.{ts,tsx,json}\""
28
29
  },
29
30
  "dependencies": {
30
31
  "ajv": "^8.6.2",
package/readme.md CHANGED
@@ -244,8 +244,46 @@ class Test {
244
244
 
245
245
  The path specified after the media:// schema will be resolved within a directory called `Media` next to the \_Package.json file.
246
246
 
247
+ ### \_Index.json generation
248
+
249
+ The packager has a cli command `generateIndex [directory]`, it will generate an \_Index.json file for Evaluator packages.
250
+ The ts files have to adhere to a certain form to be processed.
251
+
252
+ 1. The namespace/module name has to have two parts like: `namespace IG.Test`
253
+ 2. The evaluator class has to extend the base evaluator class IEvaluator from IGX.Eval
254
+ 3. The parameters have the following JSDoc structure
255
+ ```javascript
256
+ /** Symbolische Angabe der Korpusbreite in der Form "W100"
257
+ * Wird in der abgeleitetet Klasse kontextbezogen in den Realwert Width gemappt.
258
+ * @default "W50"
259
+ * @creatorType String
260
+ * @summary Symbolische Angabe der Korpusbreite
261
+ */
262
+ Corpus_Width: string;
263
+ ```
264
+ which results in the following
265
+ ```
266
+ {
267
+ "Name": "Corpus_Width",
268
+ "Description": "Symbolische Angabe der Korpusbreite",
269
+ "Type": "String",
270
+ "Default": "W50",
271
+ "DisplayIndex": 1
272
+ }
273
+ ```
274
+ 4. `DisplayIndex` is generated from the order of the parameters
275
+ 5. Jsdoc for the Evaluator has to be above class
276
+ 6. Parameter and Package name length need to be <=45
277
+ 7. Description is cut off after 99 characters
278
+
247
279
  ## History
248
280
 
281
+ **IG.GFX.Packager 2.3.0**
282
+
283
+ - handle additional white space in version log parsing
284
+ - improve error message on invalid license path
285
+ - add support for generation of index.json files for evaulators
286
+
249
287
  **IG.GFX.Packager 2.2.0**
250
288
 
251
289
  - add support for license files