@intelligentgraphics/ig.gfx.packager 2.1.2 → 2.2.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 +308 -176
- package/build/index.js.map +1 -1
- package/locales/en.json +5 -4
- package/package.json +11 -29
- package/readme.md +56 -4
package/locales/en.json
CHANGED
|
@@ -9,15 +9,16 @@
|
|
|
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.license.description": "Path to a license file",
|
|
21
22
|
"messages.buildSkipEmpty": "No build targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
|
|
22
23
|
"messages.releaseSkipEmpty": "No release targets found. Please check wether a folder with the provided name exists and wether it has _Package.json.",
|
|
23
24
|
"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.2.0",
|
|
4
|
+
"description": "IG.GFX.Packager 2.2.0 (2.2.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
|
},
|
|
@@ -22,7 +26,6 @@
|
|
|
22
26
|
"test": "jest",
|
|
23
27
|
"_postinstall": "node scripts/postinstall.js"
|
|
24
28
|
},
|
|
25
|
-
"author": "Michael Beier <mb@intelligentgraphics.biz>",
|
|
26
29
|
"dependencies": {
|
|
27
30
|
"ajv": "^8.6.2",
|
|
28
31
|
"axios": "^0.21.1",
|
|
@@ -34,20 +37,19 @@
|
|
|
34
37
|
"rimraf": "^3.0.2",
|
|
35
38
|
"source-map-support": "^0.5.19",
|
|
36
39
|
"terser": "^4.8.0",
|
|
37
|
-
"typedoc": "~0.
|
|
38
|
-
"typescript": "~4.
|
|
40
|
+
"typedoc": "~0.23.2",
|
|
41
|
+
"typescript": "~4.7.4",
|
|
39
42
|
"update-notifier": "^5.1.0",
|
|
40
43
|
"v8-compile-cache": "^2.1.1",
|
|
41
44
|
"y18n": "^5.0.8",
|
|
42
45
|
"yargs": "^17.0.1"
|
|
43
46
|
},
|
|
44
47
|
"devDependencies": {
|
|
45
|
-
"@babel/plugin-proposal-class-properties": "^7.
|
|
46
|
-
"@babel/plugin-proposal-object-rest-spread": "^7.
|
|
47
|
-
"@babel/preset-env": "^7.
|
|
48
|
+
"@babel/plugin-proposal-class-properties": "^7.18.6",
|
|
49
|
+
"@babel/plugin-proposal-object-rest-spread": "^7.18.9",
|
|
50
|
+
"@babel/preset-env": "^7.18.9",
|
|
48
51
|
"@intelligentgraphics/ig.tools.core": "^1.5.1",
|
|
49
52
|
"@intelligentgraphics/ig.utilities": "^1.6.6",
|
|
50
|
-
"@types/archiver": "^5.1.1",
|
|
51
53
|
"@types/fs-extra": "^9.0.12",
|
|
52
54
|
"@types/glob": "^7.1.4",
|
|
53
55
|
"@types/node": "^16.4.11",
|
|
@@ -55,29 +57,9 @@
|
|
|
55
57
|
"@types/update-notifier": "^5.1.0",
|
|
56
58
|
"@types/yargs": "^17.0.2",
|
|
57
59
|
"babel-loader": "^8.1.0",
|
|
58
|
-
"jest": "^28.1.1",
|
|
59
|
-
"ts-jest": "^28.0.5",
|
|
60
60
|
"ts-loader": "^9.2.5",
|
|
61
61
|
"ts-node": "^10.1.0",
|
|
62
62
|
"webpack": "^5.64.4",
|
|
63
63
|
"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
64
|
}
|
|
83
65
|
}
|
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
|
|
|
@@ -206,8 +216,50 @@ Sets the javascript version the typescript files should be compiled to.
|
|
|
206
216
|
|
|
207
217
|
Specifies the standard libraries that are available.
|
|
208
218
|
|
|
219
|
+
### Typedoc
|
|
220
|
+
|
|
221
|
+
The IG.GFX.Packager can automatically generate typedoc documentation for your typescript files.
|
|
222
|
+
|
|
223
|
+
This behaviour can be enabled by passing a `--docs` option when executing `build` or `upload`.
|
|
224
|
+
|
|
225
|
+
```sh
|
|
226
|
+
npm run upload Basics -- --newVersion=1.0.0.1 --domain=IG --subdomain=Test --docs
|
|
227
|
+
```
|
|
228
|
+
|
|
229
|
+
The typedoc files will be generated in a docs/<PackageName> folder within the current directory.
|
|
230
|
+
|
|
231
|
+
**Assets**
|
|
232
|
+
|
|
233
|
+
The packager supports referencing assets from jsdoc comments which will be copied to the generated documentation.
|
|
234
|
+
|
|
235
|
+
An asset can be referenced using the following syntax:
|
|
236
|
+
|
|
237
|
+
```ts
|
|
238
|
+
class Test {
|
|
239
|
+
/**
|
|
240
|
+
* <img src="media://image.png" alt="a png image"/>
|
|
241
|
+
*/
|
|
242
|
+
}
|
|
243
|
+
```
|
|
244
|
+
|
|
245
|
+
The path specified after the media:// schema will be resolved within a directory called `Media` next to the \_Package.json file.
|
|
246
|
+
|
|
209
247
|
## History
|
|
210
248
|
|
|
249
|
+
**IG.GFX.Packager 2.2.0**
|
|
250
|
+
|
|
251
|
+
- add support for license files
|
|
252
|
+
- improve error message when encountering invalid syntax in an animation json file
|
|
253
|
+
|
|
254
|
+
**IG.GFX.Packager 2.1.4**
|
|
255
|
+
|
|
256
|
+
- support referencing assets from jsdoc for typedoc generation
|
|
257
|
+
- update typescript and typedoc
|
|
258
|
+
|
|
259
|
+
**IG.GFX.Packager 2.1.3**
|
|
260
|
+
|
|
261
|
+
- use package scope, if available, when adding animations
|
|
262
|
+
|
|
211
263
|
**IG.GFX.Packager 2.1.2**
|
|
212
264
|
|
|
213
265
|
- improve handling of interactors with many dots in name
|