@dagger.io/dagger 0.9.5 → 0.9.7
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 +10 -10
- package/dist/api/client.gen.d.ts +519 -480
- package/dist/api/client.gen.d.ts.map +1 -1
- package/dist/api/client.gen.js +885 -406
- package/dist/entrypoint/entrypoint.d.ts +1 -1
- package/dist/entrypoint/entrypoint.d.ts.map +1 -1
- package/dist/entrypoint/entrypoint.js +13 -25
- package/dist/entrypoint/invoke.d.ts +14 -6
- package/dist/entrypoint/invoke.d.ts.map +1 -1
- package/dist/entrypoint/invoke.js +21 -8
- package/dist/entrypoint/load.d.ts +42 -5
- package/dist/entrypoint/load.d.ts.map +1 -1
- package/dist/entrypoint/load.js +122 -25
- package/dist/entrypoint/register.d.ts +3 -2
- package/dist/entrypoint/register.d.ts.map +1 -1
- package/dist/entrypoint/register.js +15 -16
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1 -0
- package/dist/introspector/registry/registry.d.ts +1 -9
- package/dist/introspector/registry/registry.d.ts.map +1 -1
- package/dist/introspector/registry/registry.js +6 -25
- package/dist/introspector/scanner/metadata.d.ts +1 -1
- package/dist/introspector/scanner/scan.d.ts +8 -4
- package/dist/introspector/scanner/scan.d.ts.map +1 -1
- package/dist/introspector/scanner/scan.js +33 -22
- package/dist/introspector/scanner/serialize.d.ts +3 -3
- package/dist/introspector/scanner/serialize.js +3 -3
- package/dist/introspector/scanner/typeDefs.d.ts +16 -7
- package/dist/introspector/scanner/typeDefs.d.ts.map +1 -1
- package/dist/introspector/scanner/utils.js +6 -6
- package/dist/provisioning/default.d.ts +1 -1
- package/dist/provisioning/default.js +1 -1
- package/package.json +5 -4
package/README.md
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
# Dagger
|
|
1
|
+
# Dagger TypeScript SDK
|
|
2
2
|
|
|
3
3
|
A client package for running [Dagger](https://dagger.io/) pipelines.
|
|
4
4
|
|
|
5
|
-
## What is the Dagger
|
|
5
|
+
## What is the Dagger TypeScript SDK?
|
|
6
6
|
|
|
7
|
-
The Dagger
|
|
7
|
+
The Dagger TypeScript SDK contains everything you need to develop CI/CD pipelines in TypeScript or Javascript, and run them on any OCI-compatible container runtime.
|
|
8
8
|
|
|
9
9
|
## Install
|
|
10
10
|
|
|
@@ -14,7 +14,7 @@ npm install @dagger.io/dagger --save-dev
|
|
|
14
14
|
|
|
15
15
|
## Local development
|
|
16
16
|
|
|
17
|
-
You may want to work on the
|
|
17
|
+
You may want to work on the TypeScript SDK and test it directly on a local node project.
|
|
18
18
|
|
|
19
19
|
### 1. Create a new Node project
|
|
20
20
|
|
|
@@ -52,32 +52,32 @@ You must also update your `tsconfig.json` to use `NodeNext` as `module`.
|
|
|
52
52
|
|
|
53
53
|
### 3. Symlink Dagger local module
|
|
54
54
|
|
|
55
|
-
Go to the Dagger
|
|
55
|
+
Go to the Dagger TypeScript SDK directory and do the following :
|
|
56
56
|
|
|
57
57
|
```shell
|
|
58
|
-
cd path/to/dagger/sdk/
|
|
58
|
+
cd path/to/dagger/sdk/typescript # go into the package directory
|
|
59
59
|
npm link # creates global link
|
|
60
60
|
```
|
|
61
61
|
|
|
62
|
-
Go back to the root directory of your local project to link the
|
|
62
|
+
Go back to the root directory of your local project to link the TypeScript SDK.
|
|
63
63
|
|
|
64
64
|
```shell
|
|
65
65
|
cd path/to/my_app # go into your project directory.
|
|
66
66
|
npm link @dagger.io/dagger # link install the package
|
|
67
67
|
```
|
|
68
68
|
|
|
69
|
-
:bulb: Any changes to `path/to/dagger/sdk/
|
|
69
|
+
:bulb: Any changes to `path/to/dagger/sdk/typescript` will be reflected in `path/to/my_app/node_modules/@dagger.io/dagger`.
|
|
70
70
|
|
|
71
71
|
### 4. Make your contribution
|
|
72
72
|
|
|
73
73
|
While making SDK code modification you should `watch` the input files:
|
|
74
74
|
|
|
75
75
|
```shell
|
|
76
|
-
cd path/to/dagger/sdk/
|
|
76
|
+
cd path/to/dagger/sdk/typescript # go into the package directory
|
|
77
77
|
yarn watch # Recompile the code when input files are modified
|
|
78
78
|
```
|
|
79
79
|
|
|
80
|
-
You can now import the local Dagger
|
|
80
|
+
You can now import the local Dagger TypeScript SDK as if you were using the official one.
|
|
81
81
|
|
|
82
82
|
```ts
|
|
83
83
|
import { connect } from "@dagger.io/dagger"
|