@intelligentgraphics/ig.gfx.packager 2.2.0 → 2.3.1
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/build/index.js +289 -11
- package/build/index.js.map +1 -1
- package/locales/en.json +1 -0
- package/package.json +5 -4
- package/readme.md +42 -0
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.
|
|
4
|
-
"description": "IG.GFX.Packager 2.
|
|
3
|
+
"version": "2.3.1",
|
|
4
|
+
"description": "IG.GFX.Packager 2.3.1 (2.3.1.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",
|
|
@@ -48,7 +49,7 @@
|
|
|
48
49
|
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
49
50
|
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
50
51
|
"@babel/preset-env": "^7.18.9",
|
|
51
|
-
"@intelligentgraphics/ig.tools.core": "^1.5.
|
|
52
|
+
"@intelligentgraphics/ig.tools.core": "^1.5.2",
|
|
52
53
|
"@intelligentgraphics/ig.utilities": "^1.6.6",
|
|
53
54
|
"@types/fs-extra": "^9.0.12",
|
|
54
55
|
"@types/glob": "^7.1.4",
|
package/readme.md
CHANGED
|
@@ -244,8 +244,50 @@ 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.1**
|
|
282
|
+
|
|
283
|
+
- fix scope not being created when only a version ts and animations exist
|
|
284
|
+
|
|
285
|
+
**IG.GFX.Packager 2.3.0**
|
|
286
|
+
|
|
287
|
+
- handle additional white space in version log parsing
|
|
288
|
+
- improve error message on invalid license path
|
|
289
|
+
- add support for generation of index.json files for evaulators
|
|
290
|
+
|
|
249
291
|
**IG.GFX.Packager 2.2.0**
|
|
250
292
|
|
|
251
293
|
- add support for license files
|