Skip to content

Commit

Permalink
clean up examples
Browse files Browse the repository at this point in the history
  • Loading branch information
jordanstephens committed Mar 5, 2025
1 parent 67fb473 commit 2e04007
Show file tree
Hide file tree
Showing 7 changed files with 9 additions and 32 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,9 @@ examples: go_example \
nodejs_example \
python_example \
# dotnet_example
# clean up package name in nodejs example
sed -i -e 's|@pulumi/defang|@defang-io/pulumi-defang|' examples/nodejs/package.json examples/nodejs/index.ts


%_example:
rm -rf ${WORKING_DIR}/examples/$*
Expand Down
2 changes: 1 addition & 1 deletion docs/installation-configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ The Pulumi provider for [Defang] (https://defang.io) - a radically simpler way t

The Defang Pulumi provider, is available in most pulumi languages.

* JavaScript/TypeScript: [`@pulumi/defang`](https://www.npmjs.com/package/@pulumi/defang)
* JavaScript/TypeScript: [`@defang-io/pulumi-defang`](https://www.npmjs.com/package/@defang-io/pulumi-defang)
* Python: [`pulumi-defang`](https://pypi.org/project/pulumi-defang/)
* Go: [`github.com/DefangLabs/pulumi-defang/sdk/v1/go/defang`](https://github.com/DefangLabs/pulumi-defang)
* Java: Coming soon
Expand Down
2 changes: 1 addition & 1 deletion examples/go/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ go 1.20

require (
github.com/pulumi/pulumi/sdk/v3 v3.30.0
example.com/pulumi-defang/sdk v1.1.0-alpha.1741138078+d0029c80.dirty
example.com/pulumi-defang/sdk v1.0.0-alpha+f8e6a2ee.dirty
)
2 changes: 1 addition & 1 deletion examples/nodejs/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import * as pulumi from "@pulumi/pulumi";
import * as defang from "@pulumi/defang";
import * as defang from "@defang-io/pulumi-defang";

const myProject = new defang.Project("myProject", {
providerID: "aws",
Expand Down
2 changes: 1 addition & 1 deletion examples/nodejs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@
"dependencies": {
"typescript": "^4.0.0",
"@pulumi/pulumi": "^3.0.0",
"@pulumi/defang": "1.1.0-alpha.1741138078+d0029c80.dirty"
"@defang-io/pulumi-defang": "1.0.0-alpha+f8e6a2ee.dirty"
}
}
2 changes: 1 addition & 1 deletion examples/python/requirements.txt
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
pulumi-defang==1.1.0-alpha.1741138078+d0029c80.dirty
pulumi-defang==1.0.0-alpha+f8e6a2ee.dirty
pulumi>=3.0.0,<4.0.0
28 changes: 1 addition & 27 deletions schema-defang.json
Original file line number Diff line number Diff line change
@@ -1,27 +1 @@
{
"name": "defang",
"version": "1.1.0-alpha.1741138078+d0029c80.dirty",
"config": {},
"types": { "defang:v1:ServiceInfo": { "type": "object" } },
"provider": {},
"resources": {
"defang:index:Project": {
"properties": {
"albArn": { "type": "string" },
"configPaths": { "type": "array", "items": { "type": "string" } },
"etag": { "type": "string" },
"providerID": { "type": "string" },
"services": {
"type": "array",
"items": { "$ref": "#/types/defang:v1:ServiceInfo" }
}
},
"required": ["providerID", "configPaths", "etag", "albArn", "services"],
"inputProperties": {
"configPaths": { "type": "array", "items": { "type": "string" } },
"providerID": { "type": "string" }
},
"requiredInputs": ["providerID", "configPaths"]
}
}
}
{"name":"defang","version":"v1.0.0-alpha+f8e6a2ee.dirty","config":{},"types":{"defang:v1:ServiceInfo":{"type":"object"}},"provider":{},"resources":{"defang:index:Project":{"properties":{"albArn":{"type":"string"},"configPaths":{"type":"array","items":{"type":"string"}},"etag":{"type":"string"},"providerID":{"type":"string"},"services":{"type":"array","items":{"$ref":"#/types/defang:v1:ServiceInfo"}}},"required":["providerID","configPaths","etag","albArn","services"],"inputProperties":{"configPaths":{"type":"array","items":{"type":"string"}},"providerID":{"type":"string"}},"requiredInputs":["providerID","configPaths"]}}}

0 comments on commit 2e04007

Please sign in to comment.