@abapify/adt-export 0.0.0 → 0.3.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/README.md +80 -1
- package/package.json +48 -3
package/README.md
CHANGED
|
@@ -1,3 +1,82 @@
|
|
|
1
1
|
# @abapify/adt-export
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
[](https://github.com/abapify/adt-cli/pkgs/npm/%40abapify%2Fadt-export)
|
|
4
|
+
|
|
5
|
+
Export CLI plugin for adt-cli — deploy local serialized files to SAP.
|
|
6
|
+
|
|
7
|
+
## Installation
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @abapify/adt-export
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Usage
|
|
14
|
+
|
|
15
|
+
Add to your `adt.config.ts`:
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
export default {
|
|
19
|
+
commands: ['@abapify/adt-export/commands/export'],
|
|
20
|
+
};
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
Then use the command:
|
|
24
|
+
|
|
25
|
+
```bash
|
|
26
|
+
# Dry run - see what would be exported
|
|
27
|
+
adt export --source ./my-objects --format abapgit --dry-run
|
|
28
|
+
|
|
29
|
+
# Export to SAP with transport
|
|
30
|
+
adt export --source ./my-objects --format abapgit --transport DEVK900123
|
|
31
|
+
|
|
32
|
+
# Export specific object types only
|
|
33
|
+
adt export --source ./my-objects --format abapgit --transport DEVK900123 --types CLAS,INTF
|
|
34
|
+
|
|
35
|
+
# Export without activation (save inactive)
|
|
36
|
+
adt export --source ./my-objects --format abapgit --transport DEVK900123 --no-activate
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
## Options
|
|
40
|
+
|
|
41
|
+
| Option | Description | Default |
|
|
42
|
+
| --------------------------- | ------------------------------------------------------- | ------------------------- |
|
|
43
|
+
| `-s, --source <path>` | Source directory containing serialized files | `.` |
|
|
44
|
+
| `-f, --format <format>` | Format plugin: `abapgit`, `@abapify/adt-plugin-abapgit` | `abapgit` |
|
|
45
|
+
| `-t, --transport <request>` | Transport request for changes | (required unless dry-run) |
|
|
46
|
+
| `-p, --package <package>` | Target package for new objects | |
|
|
47
|
+
| `--types <types>` | Filter by object types (comma-separated) | |
|
|
48
|
+
| `--dry-run` | Validate without saving to SAP | `false` |
|
|
49
|
+
| `--no-activate` | Save inactive (skip activation) | `false` |
|
|
50
|
+
|
|
51
|
+
## Architecture
|
|
52
|
+
|
|
53
|
+
This plugin follows the two-generator pattern:
|
|
54
|
+
|
|
55
|
+
1. **FileTree** (provided by CLI) → yields files to format plugin
|
|
56
|
+
2. **Format Plugin** → yields ADK objects ready to deploy
|
|
57
|
+
|
|
58
|
+
The export command:
|
|
59
|
+
|
|
60
|
+
1. Creates a FileTree from the source directory
|
|
61
|
+
2. Calls the format plugin's `export(fileTree)` generator
|
|
62
|
+
3. For each yielded ADK object:
|
|
63
|
+
- Filters by type if specified
|
|
64
|
+
- Saves inactive (unless dry run)
|
|
65
|
+
4. Bulk activates all objects (unless `--no-activate`)
|
|
66
|
+
|
|
67
|
+
## Why a Separate Plugin?
|
|
68
|
+
|
|
69
|
+
Export functionality can modify your SAP system. By making it an explicit opt-in plugin:
|
|
70
|
+
|
|
71
|
+
- Users must consciously add it to their config
|
|
72
|
+
- No accidental deployments from typos
|
|
73
|
+
- Clear separation of read-only vs write operations
|
|
74
|
+
- Easier to audit which projects have deploy capabilities
|
|
75
|
+
|
|
76
|
+
## Supported Formats
|
|
77
|
+
|
|
78
|
+
- **abapgit** / `@abapify/adt-plugin-abapgit` - abapGit format (`.abap` + `.xml` files)
|
|
79
|
+
|
|
80
|
+
## License
|
|
81
|
+
|
|
82
|
+
MIT
|
package/package.json
CHANGED
|
@@ -1,5 +1,50 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abapify/adt-export",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
5
|
-
|
|
3
|
+
"version": "0.3.6",
|
|
4
|
+
"description": "Export CLI plugin for adt-cli - deploy local files to SAP",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"publishConfig": {
|
|
7
|
+
"access": "public"
|
|
8
|
+
},
|
|
9
|
+
"type": "module",
|
|
10
|
+
"main": "./dist/index.mjs",
|
|
11
|
+
"types": "./dist/index.d.mts",
|
|
12
|
+
"exports": {
|
|
13
|
+
".": "./dist/index.mjs",
|
|
14
|
+
"./commands/export": "./dist/commands/export.mjs",
|
|
15
|
+
"./commands/roundtrip": "./dist/commands/roundtrip.mjs",
|
|
16
|
+
"./commands/activate": "./dist/commands/activate.mjs",
|
|
17
|
+
"./package.json": "./package.json"
|
|
18
|
+
},
|
|
19
|
+
"files": [
|
|
20
|
+
"dist",
|
|
21
|
+
"README.md"
|
|
22
|
+
],
|
|
23
|
+
"keywords": [
|
|
24
|
+
"sap",
|
|
25
|
+
"adt",
|
|
26
|
+
"abap",
|
|
27
|
+
"export",
|
|
28
|
+
"deploy",
|
|
29
|
+
"abapgit"
|
|
30
|
+
],
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@abapify/adk": "0.3.6",
|
|
33
|
+
"@abapify/adt-locks": "0.3.6",
|
|
34
|
+
"@abapify/adt-plugin": "0.3.6",
|
|
35
|
+
"@abapify/adt-plugin-abapgit": "0.3.6",
|
|
36
|
+
"chalk": "^5.6.2",
|
|
37
|
+
"diff": "^8.0.3",
|
|
38
|
+
"fast-xml-parser": "^5.5.5"
|
|
39
|
+
},
|
|
40
|
+
"module": "./dist/index.mjs",
|
|
41
|
+
"repository": {
|
|
42
|
+
"type": "git",
|
|
43
|
+
"url": "git+https://github.com/abapify/adt-cli.git",
|
|
44
|
+
"directory": "packages/adt-export"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://github.com/abapify/adt-cli/tree/main/packages/adt-export#readme",
|
|
47
|
+
"bugs": {
|
|
48
|
+
"url": "https://github.com/abapify/adt-cli/issues"
|
|
49
|
+
}
|
|
50
|
+
}
|