@cobol-ts/default-projection-typescript 0.0.14 → 0.0.16
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/README.md +15 -1
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -1,9 +1,23 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @cobol-ts/default-projection-typescript
|
|
2
2
|
|
|
3
3
|
`@cobol-ts/default-projection-typescript` generates an **editable default projection definition** from a parsed `CopybookAst`. It is the bootstrap stage between the copybook source contract and the eventual projected TypeScript contract.
|
|
4
4
|
|
|
5
5
|
The source contract describes what is available; the projection definition describes what the modernisation reader is asked to expose. The two may initially be identical in logical content, but they have different reasons to change. Generating the default projection avoids making developers manually duplicate a copybook merely to begin work.
|
|
6
6
|
|
|
7
|
+
## Quick orientation
|
|
8
|
+
|
|
9
|
+
**In this README:** [API](#api) · [Generated definition](#generated-definition) · [Naming, options and imports](#naming-options-and-imports) · [Terminal, object and array mapping](#terminal-object-and-array-mapping) · [Important current limits](#important-current-limits) · [Bootstrap, then maintain](#bootstrap-then-maintain) · [Testing and integration](#testing-and-integration) · [Shared in-memory default projection](#shared-in-memory-default-projection)
|
|
10
|
+
|
|
11
|
+
**Responsibility.** Bootstrap an editable identity projection definition from a copybook and print its TypeScript source.
|
|
12
|
+
|
|
13
|
+
**Boundary.** Once authored, a projection is maintained independently of the legacy source contract.
|
|
14
|
+
|
|
15
|
+
**Public modules.** [default.projection.typescript.ts](./src/default.projection.typescript.ts).
|
|
16
|
+
|
|
17
|
+
**Tests.** [default.projection.typescript.spec.ts](src/default.projection.typescript.spec.ts)
|
|
18
|
+
|
|
19
|
+
**Related packages.** [@cobol-ts/cursor-projection](../../cursor-loader/projection/README.md) · [@cobol-ts/projection-typescript](../projection-typescript/README.md).
|
|
20
|
+
|
|
7
21
|
## API
|
|
8
22
|
|
|
9
23
|
```typescript
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cobol-ts/default-projection-typescript",
|
|
3
3
|
"description": "Generates typed default projection definitions from COBOL copybook ASTs",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.16",
|
|
5
5
|
"main": "dist/index",
|
|
6
6
|
"types": "dist/index",
|
|
7
7
|
"browserslist": {
|
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
]
|
|
18
18
|
},
|
|
19
19
|
"dependencies": {
|
|
20
|
-
"@cobol-ts/copybook": "0.0.
|
|
21
|
-
"@cobol-ts/layout": "0.0.
|
|
22
|
-
"@cobol-ts/errors": "0.0.
|
|
23
|
-
"@cobol-ts/cursor-projection": "0.0.
|
|
24
|
-
"@cobol-ts/cursor-loader-types": "0.0.
|
|
20
|
+
"@cobol-ts/copybook": "0.0.16",
|
|
21
|
+
"@cobol-ts/layout": "0.0.16",
|
|
22
|
+
"@cobol-ts/errors": "0.0.16",
|
|
23
|
+
"@cobol-ts/cursor-projection": "0.0.16",
|
|
24
|
+
"@cobol-ts/cursor-loader-types": "0.0.16"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"typescript": "^5.2.2",
|