@intelligentgraphics/ig.gfx.packager 2.1.4 → 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/build/index.js +561 -122
- package/build/index.js.map +1 -1
- package/locales/en.json +6 -4
- package/package.json +11 -28
- package/readme.md +57 -4
package/locales/en.json
CHANGED
|
@@ -9,15 +9,17 @@
|
|
|
9
9
|
"options.domain.description": "Overwrite the publish domain",
|
|
10
10
|
"options.subdomain.description": "Overwrite the publish subdomain",
|
|
11
11
|
"options.address.description": "Address",
|
|
12
|
-
"options.service.description": "
|
|
13
|
-
"options.service.demands": "The
|
|
12
|
+
"options.service.description": "Asset server url",
|
|
13
|
+
"options.service.demands": "The asset server url has to either be provided using the option --service or through the \"%s\" environment variable",
|
|
14
14
|
"options.user.description": "User",
|
|
15
|
-
"options.user.demands": "The
|
|
15
|
+
"options.user.demands": "The username has to either be provided using the option --user or through the \"%s\" environment variable",
|
|
16
16
|
"options.password.description": "Password",
|
|
17
|
-
"options.password.demands": "The
|
|
17
|
+
"options.password.demands": "The user password has to either be provided using the option --password or through the \"%s\" environment variable",
|
|
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",
|
|
22
|
+
"options.license.description": "Path to a license file",
|
|
21
23
|
"messages.buildSkipEmpty": "No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
|
|
22
24
|
"messages.releaseSkipEmpty": "No release targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
|
|
23
25
|
"messages.building": "Creating javascript files",
|
package/package.json
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@intelligentgraphics/ig.gfx.packager",
|
|
3
|
-
"version": "2.
|
|
4
|
-
"description": "IG.GFX.Packager 2.
|
|
3
|
+
"version": "2.3.0",
|
|
4
|
+
"description": "IG.GFX.Packager 2.3.0 (2.3.0.100)",
|
|
5
|
+
"author": "Michael Beier <mb@intelligentgraphics.biz>",
|
|
5
6
|
"main": "build/index.js",
|
|
6
7
|
"private": false,
|
|
7
8
|
"publishConfig": {
|
|
8
9
|
"access": "public"
|
|
9
10
|
},
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=14.0.0"
|
|
13
|
+
},
|
|
10
14
|
"bin": {
|
|
11
15
|
"packager": "./build/index.js"
|
|
12
16
|
},
|
|
@@ -20,9 +24,9 @@
|
|
|
20
24
|
"clean": "rimraf build *.tsbuildinfo",
|
|
21
25
|
"prepublishOnly": "yarn clean && yarn dist",
|
|
22
26
|
"test": "jest",
|
|
23
|
-
"_postinstall": "node scripts/postinstall.js"
|
|
27
|
+
"_postinstall": "node scripts/postinstall.js",
|
|
28
|
+
"format": "prettier --write \"**/*.{ts,tsx,json}\""
|
|
24
29
|
},
|
|
25
|
-
"author": "Michael Beier <mb@intelligentgraphics.biz>",
|
|
26
30
|
"dependencies": {
|
|
27
31
|
"ajv": "^8.6.2",
|
|
28
32
|
"axios": "^0.21.1",
|
|
@@ -42,12 +46,11 @@
|
|
|
42
46
|
"yargs": "^17.0.1"
|
|
43
47
|
},
|
|
44
48
|
"devDependencies": {
|
|
45
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
46
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
49
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
50
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
51
|
+
"@babel/preset-env": "^7.18.9",
|
|
48
52
|
"@intelligentgraphics/ig.tools.core": "^1.5.1",
|
|
49
53
|
"@intelligentgraphics/ig.utilities": "^1.6.6",
|
|
50
|
-
"@types/archiver": "^5.1.1",
|
|
51
54
|
"@types/fs-extra": "^9.0.12",
|
|
52
55
|
"@types/glob": "^7.1.4",
|
|
53
56
|
"@types/node": "^16.4.11",
|
|
@@ -55,29 +58,9 @@
|
|
|
55
58
|
"@types/update-notifier": "^5.1.0",
|
|
56
59
|
"@types/yargs": "^17.0.2",
|
|
57
60
|
"babel-loader": "^8.1.0",
|
|
58
|
-
"jest": "^28.1.1",
|
|
59
|
-
"ts-jest": "^28.0.5",
|
|
60
61
|
"ts-loader": "^9.2.5",
|
|
61
62
|
"ts-node": "^10.1.0",
|
|
62
63
|
"webpack": "^5.64.4",
|
|
63
64
|
"webpack-cli": "^4.7.2"
|
|
64
|
-
},
|
|
65
|
-
"jest": {
|
|
66
|
-
"transform": {
|
|
67
|
-
"\\.tsx?$": "ts-jest"
|
|
68
|
-
},
|
|
69
|
-
"testRegex": "(.*\\.(test))\\.(ts|tsx)$",
|
|
70
|
-
"moduleFileExtensions": [
|
|
71
|
-
"ts",
|
|
72
|
-
"tsx",
|
|
73
|
-
"js",
|
|
74
|
-
"json"
|
|
75
|
-
],
|
|
76
|
-
"moduleNameMapper": {
|
|
77
|
-
"^~/(.*)": "<rootDir>/src/$1"
|
|
78
|
-
},
|
|
79
|
-
"testEnvironmentOptions": {
|
|
80
|
-
"url": "http://localhost/"
|
|
81
|
-
}
|
|
82
65
|
}
|
|
83
66
|
}
|
package/readme.md
CHANGED
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
## Requirements
|
|
4
4
|
|
|
5
|
-
node.js (https://nodejs.org/en/download/) >=
|
|
5
|
+
node.js (https://nodejs.org/en/download/) >= 14
|
|
6
6
|
|
|
7
7
|
## Installation
|
|
8
8
|
|
|
9
9
|
1\. Install this package as a dev dependency
|
|
10
10
|
|
|
11
11
|
```sh
|
|
12
|
-
npm
|
|
12
|
+
npm install --save-dev @intelligentgraphics/ig.gfx.packager@latest
|
|
13
13
|
```
|
|
14
14
|
|
|
15
15
|
2\. Add a build and a release command to the package.json
|
|
@@ -59,6 +59,10 @@ npm i --save-dev @intelligentgraphics/ig.gfx.packager@latest
|
|
|
59
59
|
}
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
+
## Update
|
|
63
|
+
|
|
64
|
+
You can update the installed package by running `npm install --save-dev @intelligentgraphics/ig.gfx.packager@latest` again.
|
|
65
|
+
|
|
62
66
|
## Environment configuration
|
|
63
67
|
|
|
64
68
|
This program requires the following environment variables to be set:
|
|
@@ -67,11 +71,17 @@ This program requires the following environment variables to be set:
|
|
|
67
71
|
|
|
68
72
|
The service to which packages should be uploaded to.
|
|
69
73
|
|
|
70
|
-
###
|
|
74
|
+
### Authentication
|
|
75
|
+
|
|
76
|
+
To use the new license file based authentication, the path to the license file needs to be provided in the `IG_GFX_LICENSE` environment variable. You can download your license file from the creator login page.
|
|
77
|
+
|
|
78
|
+
Alternatively the legacy username and password based authentication can be configured through the following environment variables:
|
|
79
|
+
|
|
80
|
+
**IG_GFX_USER**
|
|
71
81
|
|
|
72
82
|
The identifier of the user that will login at the IG_GFX_ASSET_SERVICE.
|
|
73
83
|
|
|
74
|
-
|
|
84
|
+
**IG_GFX_PWD**
|
|
75
85
|
|
|
76
86
|
The password for the user.
|
|
77
87
|
|
|
@@ -234,8 +244,51 @@ class Test {
|
|
|
234
244
|
|
|
235
245
|
The path specified after the media:// schema will be resolved within a directory called `Media` next to the \_Package.json file.
|
|
236
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
|
+
|
|
237
279
|
## History
|
|
238
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
|
+
|
|
287
|
+
**IG.GFX.Packager 2.2.0**
|
|
288
|
+
|
|
289
|
+
- add support for license files
|
|
290
|
+
- improve error message when encountering invalid syntax in an animation json file
|
|
291
|
+
|
|
239
292
|
**IG.GFX.Packager 2.1.4**
|
|
240
293
|
|
|
241
294
|
- support referencing assets from jsdoc for typedoc generation
|