pulumi/sdk/nodejs
Luke Hoban 0bcca3883e
[sdk] Wait on remote component dependencies (#7541)
When a resource `dependsOn` a remote component, we were not correctly waiting on it, because we were skipping over waiting on comoponents, and only waiting on their custom resource children.  For remote components, we do not know the children, but waiting on the remote component will always wait on all children.

Co-authored-by: Mike Metral <1112768+metral@users.noreply.github.com>
2021-07-16 16:11:34 -07:00
..
asset
automation detect nodejs side by side pulumi for inline automation programs and fail fast (#7349) 2021-06-23 07:57:36 -07:00
cmd Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
dist
dynamic
iterable
log
npm skip installing dev dependencies for nodejs plugin setup (#7188) 2021-06-02 11:09:03 -07:00
proto Add replaceOnChanges resource option (#7226) 2021-07-01 13:32:08 -06:00
provider Initial support for resource methods (authoring from Node.js, calling from Python) (#7363) 2021-06-30 07:48:56 -07:00
queryable
runtime [sdk] Wait on remote component dependencies (#7541) 2021-07-16 16:11:34 -07:00
tests [sdk/nodejs] Fix a bug in closure serialization. (#6999) 2021-07-15 18:20:09 -07:00
tests_with_mocks
.gitignore
config.ts Fix typo (#7216) 2021-06-05 09:40:28 +10:00
errors.ts
index.ts
invoke.ts
Makefile
metadata.ts
output.ts
package.json [auto/nodejs] - Reimplement JSON event parsing with Readline (#7032) 2021-05-24 13:03:38 -07:00
README.md Update README.md (#7088) 2021-05-21 10:46:56 -07:00
resource.ts [sdk] Wait on remote component dependencies (#7541) 2021-07-16 16:11:34 -07:00
stackReference.ts
tsconfig.json
tslint.json
utils.ts
version.ts

Pulumi Node.js SDK

The Pulumi Node.js SDK lets you write cloud programs in JavaScript.

Installation

Using npm:

$ npm install --save @pulumi/pulumi

Using yarn:

$ yarn add @pulumi/pulumi

This SDK is meant for use with the Pulumi CLI. Please visit pulumi.com for installation instructions.

Building and Testing

For anybody who wants to build from source, here is how you do it.

Prerequisites

This SDK uses Node.js and we support any of the Current, Active and Maintenance LTS versions. We support both NPM and Yarn for package management.

At the moment, we only support building on macOS and Linux, where standard GNU tools like make are available.

Make Targets

To build the SDK, simply run make from the root directory (where this README lives, at sdk/nodejs/ from the repo's root). This will build the code, run tests, and install the package and its supporting artifacts.

At the moment, for local development, we install everything into /opt/pulumi. You will want this on your $PATH.

The tests will verify that everything works, but feel free to try running pulumi preview and/or pulumi up from the examples/minimal/ directory. Remember to run tsc first, since pulumi expects JavaScript, not TypeScript.