initial commit
This commit is contained in:
2
examples/basic-ts/.gitignore
vendored
Normal file
2
examples/basic-ts/.gitignore
vendored
Normal file
@@ -0,0 +1,2 @@
|
||||
/bin/
|
||||
/node_modules/
|
||||
3
examples/basic-ts/Pulumi.yaml
Normal file
3
examples/basic-ts/Pulumi.yaml
Normal file
@@ -0,0 +1,3 @@
|
||||
name: basic-ts
|
||||
runtime: nodejs
|
||||
description: A basic typescript program for integration testing
|
||||
6
examples/basic-ts/index.ts
Normal file
6
examples/basic-ts/index.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as pulumi from "@pulumi/pulumi";
|
||||
import * as xyz from "@pulumi/xyz";
|
||||
|
||||
const resource = new xyz.Resource("Resource", { sampleAttribute: "attr" });
|
||||
|
||||
export const sampleAttribute = resource.sampleAttribute;
|
||||
10
examples/basic-ts/package.json
Normal file
10
examples/basic-ts/package.json
Normal file
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"name": "basic",
|
||||
"main": "index.ts",
|
||||
"devDependencies": {
|
||||
"@types/node": "^18"
|
||||
},
|
||||
"dependencies": {
|
||||
"@pulumi/pulumi": "^3.0.0"
|
||||
}
|
||||
}
|
||||
18
examples/basic-ts/tsconfig.json
Normal file
18
examples/basic-ts/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