Initial commit
This commit is contained in:
2
examples/nodejs/.gitignore
vendored
Normal file
2
examples/nodejs/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/bin/
|
||||
/node_modules/
|
||||
6
examples/nodejs/Pulumi.yaml
Normal file
6
examples/nodejs/Pulumi.yaml
Normal file
@@ -0,0 +1,6 @@
|
||||
name: provider-xyz-native
|
||||
runtime: nodejs
|
||||
plugins:
|
||||
providers:
|
||||
- name: xyz
|
||||
path: ../../bin
|
||||
7
examples/nodejs/index.ts
Normal file
7
examples/nodejs/index.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as xyz from "@pulumi/xyz";
|
||||
|
||||
const myRandomResource = new xyz.Random("myRandomResource", {length: 24});
|
||||
export const output = {
|
||||
value: myRandomResource.result,
|
||||
};
|
||||
11
examples/nodejs/package.json
Normal file
11
examples/nodejs/package.json
Normal file
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "provider-xyz-native",
|
||||
"devDependencies": {
|
||||
"@types/node": "^14"
|
||||
},
|
||||
"dependencies": {
|
||||
"typescript": "^4.0.0",
|
||||
"@pulumi/pulumi": "^3.0.0",
|
||||
"@pulumi/xyz": "0.0.1-alpha.1699945013+97b0e04c"
|
||||
}
|
||||
}
|
||||
18
examples/nodejs/tsconfig.json
Normal file
18
examples/nodejs/tsconfig.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"strict": true,
|
||||
"outDir": "bin",
|
||||
"target": "es2016",
|
||||
"module": "commonjs",
|
||||
"moduleResolution": "node",
|
||||
"sourceMap": true,
|
||||
"experimentalDecorators": true,
|
||||
"pretty": true,
|
||||
"noFallthroughCasesInSwitch": true,
|
||||
"noImplicitReturns": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.ts",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user