pulumi/sdk/nodejs
Fraser Waters 5ce2ba8508 server 2023-12-15 14:55:57 +00:00
..
asset
automation
cmd Changelog and go.mod updates for v3.97.0 (#14853) 2023-12-14 13:51:44 +00:00
dist
dynamic
iterable
log Move nodejs feature checks to startup 2023-12-14 22:58:11 +00:00
npm
proto MLC transforms 2023-12-14 09:50:28 +00:00
provider Add transform feature getter 2023-12-15 13:04:23 +00:00
queryable
runtime server 2023-12-15 14:55:57 +00:00
tests Move nodejs feature checks to startup 2023-12-14 22:58:11 +00:00
tests_with_mocks
.eslintrc.js
.gitignore
Makefile increase the timeout for automation API tests (#14844) 2023-12-13 10:40:27 +00:00
README.md
config.ts
errors.ts
index.ts
invoke.ts
metadata.ts
output.ts
package.json use uuid instead of random number for test suffix (#14827) 2023-12-12 13:09:27 +00:00
resource.ts Working on node sdk 2023-12-15 14:07:05 +00:00
rome.json
stackReference.ts
tsconfig.json
tsutils.ts
utils.ts
version.ts
yarn.lock use uuid instead of random number for test suffix (#14827) 2023-12-12 13:09:27 +00:00

README.md

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. Visit Pulumi's Download & Install to install the CLI.

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 $HOME/.dev-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.