@twin.org/ts-to-jsonld-context 0.0.3-next.6
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/LICENSE +201 -0
- package/README.md +137 -0
- package/bin/index.js +8 -0
- package/dist/es/cli.js +37 -0
- package/dist/es/cli.js.map +1 -0
- package/dist/es/commands/tsToJsonLdContext.js +287 -0
- package/dist/es/commands/tsToJsonLdContext.js.map +1 -0
- package/dist/es/index.js +6 -0
- package/dist/es/index.js.map +1 -0
- package/dist/es/models/IJsonLdProps.js +4 -0
- package/dist/es/models/IJsonLdProps.js.map +1 -0
- package/dist/es/models/ITsToJsonLdContextConfig.js +4 -0
- package/dist/es/models/ITsToJsonLdContextConfig.js.map +1 -0
- package/dist/locales/en.json +206 -0
- package/dist/types/cli.d.ts +23 -0
- package/dist/types/commands/tsToJsonLdContext.d.ts +20 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/models/IJsonLdProps.d.ts +24 -0
- package/dist/types/models/ITsToJsonLdContextConfig.d.ts +29 -0
- package/docs/changelog.md +17 -0
- package/docs/examples.md +15 -0
- package/docs/reference/classes/CLI.md +83 -0
- package/docs/reference/functions/actionCommandTsToJsonLdContext.md +29 -0
- package/docs/reference/functions/buildCommandTsToJsonLdContext.md +17 -0
- package/docs/reference/functions/tsToJsonLdContext.md +23 -0
- package/docs/reference/index.md +15 -0
- package/docs/reference/interfaces/ITsToJsonLdContextConfig.md +51 -0
- package/locales/en.json +34 -0
- package/package.json +57 -0
package/locales/en.json
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
{
|
|
2
|
+
"error": {
|
|
3
|
+
"commands": {
|
|
4
|
+
"ts-to-jsonld-context": {
|
|
5
|
+
"configFailed": "Configuration failed to load.",
|
|
6
|
+
"noJsonLdProps": "No JSON-LD properties found for property \"{propertyName}\"."
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
"commands": {
|
|
11
|
+
"ts-to-jsonld-context": {
|
|
12
|
+
"options": {
|
|
13
|
+
"config": {
|
|
14
|
+
"param": "'<'config'>'",
|
|
15
|
+
"description": "Path to the JSON configuration file."
|
|
16
|
+
},
|
|
17
|
+
"output-file": {
|
|
18
|
+
"param": "'<'output-file'>'",
|
|
19
|
+
"description": "The file to write the JSON-LD Context to."
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"progress": {
|
|
23
|
+
"loadingConfigJson": "Loading Config JSON"
|
|
24
|
+
},
|
|
25
|
+
"labels": {
|
|
26
|
+
"configJson": "Config JSON",
|
|
27
|
+
"outputFile": "Output File",
|
|
28
|
+
"writingOutputFile": "Writing Output File",
|
|
29
|
+
"model": "Model",
|
|
30
|
+
"property": "Property"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@twin.org/ts-to-jsonld-context",
|
|
3
|
+
"version": "0.0.3-next.6",
|
|
4
|
+
"description": "Tool to convert TypeScript definitions to JSON-LD contexts",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "git+https://github.com/twinfoundation/tools.git",
|
|
8
|
+
"directory": "apps/ts-to-jsonld-context"
|
|
9
|
+
},
|
|
10
|
+
"author": "martyn.janes@iota.org",
|
|
11
|
+
"license": "Apache-2.0",
|
|
12
|
+
"type": "module",
|
|
13
|
+
"engines": {
|
|
14
|
+
"node": ">=20.0.0"
|
|
15
|
+
},
|
|
16
|
+
"dependencies": {
|
|
17
|
+
"@twin.org/cli-core": "next",
|
|
18
|
+
"@twin.org/core": "next",
|
|
19
|
+
"@twin.org/nameof": "next",
|
|
20
|
+
"@twin.org/tools-core": "0.0.3-next.6",
|
|
21
|
+
"commander": "14.0.2",
|
|
22
|
+
"glob": "11.0.3",
|
|
23
|
+
"typescript": "5.9.3"
|
|
24
|
+
},
|
|
25
|
+
"main": "./dist/es/index.js",
|
|
26
|
+
"types": "./dist/types/index.d.ts",
|
|
27
|
+
"exports": {
|
|
28
|
+
".": {
|
|
29
|
+
"types": "./dist/types/index.d.ts",
|
|
30
|
+
"import": "./dist/es/index.js",
|
|
31
|
+
"default": "./dist/es/index.js"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"files": [
|
|
35
|
+
"bin",
|
|
36
|
+
"dist/es",
|
|
37
|
+
"dist/locales",
|
|
38
|
+
"dist/types",
|
|
39
|
+
"locales",
|
|
40
|
+
"docs"
|
|
41
|
+
],
|
|
42
|
+
"bin": {
|
|
43
|
+
"ts-to-jsonld-context": "bin/index.js"
|
|
44
|
+
},
|
|
45
|
+
"keywords": [
|
|
46
|
+
"twin",
|
|
47
|
+
"trade",
|
|
48
|
+
"iota",
|
|
49
|
+
"framework",
|
|
50
|
+
"blockchain",
|
|
51
|
+
"tools"
|
|
52
|
+
],
|
|
53
|
+
"bugs": {
|
|
54
|
+
"url": "git+https://github.com/twinfoundation/tools/issues"
|
|
55
|
+
},
|
|
56
|
+
"homepage": "https://twindev.org"
|
|
57
|
+
}
|