Add instructions for make configure
And also move the Node.js SDK-specific parts into the sdk/nodejs/ directory.
This commit is contained in:
parent
ac786ed2c9
commit
4c781da93b
|
@ -23,6 +23,7 @@ install:
|
||||||
- git clone git@github.com:pulumi/pulumi ${GOPATH}/src/github.com/pulumi/pulumi
|
- git clone git@github.com:pulumi/pulumi ${GOPATH}/src/github.com/pulumi/pulumi
|
||||||
# Now restore dependencies, build prerequisites, and generally make this thing ready to go.
|
# Now restore dependencies, build prerequisites, and generally make this thing ready to go.
|
||||||
- make configure
|
- make configure
|
||||||
|
- cd nodejs/sdk/ && make configure
|
||||||
before_script:
|
before_script:
|
||||||
- export PATH=$TRAVIS_BUILD_DIR/sdk/nodejs/bin:$PATH
|
- export PATH=$TRAVIS_BUILD_DIR/sdk/nodejs/bin:$PATH
|
||||||
- export LUMIROOT=~/.lumi
|
- export LUMIROOT=~/.lumi
|
||||||
|
|
4
Makefile
4
Makefile
|
@ -35,9 +35,7 @@ banner_all:
|
||||||
.PHONY: configure
|
.PHONY: configure
|
||||||
configure:
|
configure:
|
||||||
dep ensure -v
|
dep ensure -v
|
||||||
cd sdk/nodejs && yarn install
|
cd sdk/nodejs/ && make configure
|
||||||
cd sdk/nodejs/runtime/native && ./ensure_node_v8.sh
|
|
||||||
cd sdk/nodejs/runtime/native && ../../node_modules/.bin/node-gyp configure
|
|
||||||
|
|
||||||
.PHONY: install
|
.PHONY: install
|
||||||
install:
|
install:
|
||||||
|
|
|
@ -41,7 +41,11 @@ To build Lumi, ensure `$GOPATH` is set, and clone into a standard Go workspace:
|
||||||
$ git clone git@github.com:pulumi/pulumi-fabric $GOPATH/src/github.com/pulumi/pulumi-fabric
|
$ git clone git@github.com:pulumi/pulumi-fabric $GOPATH/src/github.com/pulumi/pulumi-fabric
|
||||||
$ cd $GOPATH/src/github.com/pulumi/pulumi-fabric
|
$ cd $GOPATH/src/github.com/pulumi/pulumi-fabric
|
||||||
|
|
||||||
Before building, you will need to ensure dependencies have been restored to your enlistment:
|
The first time you build, you must `make configure` to install dependencies and perform other machine setup:
|
||||||
|
|
||||||
|
$ make configure
|
||||||
|
|
||||||
|
In the future, you can synch dependencies simply by running `dep ensure` explicitly:
|
||||||
|
|
||||||
$ dep ensure
|
$ dep ensure
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,12 @@ banner:
|
||||||
@echo "\033[1;37mPulumi Node.js SDK\033[0m"
|
@echo "\033[1;37mPulumi Node.js SDK\033[0m"
|
||||||
@echo "\033[1;37m==================\033[0m"
|
@echo "\033[1;37m==================\033[0m"
|
||||||
|
|
||||||
|
.PHONY: configure
|
||||||
|
configure:
|
||||||
|
yarn install
|
||||||
|
cd runtime/native && ./ensure_node_v8.sh
|
||||||
|
cd runtime/native && ../../node_modules/.bin/node-gyp configure
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
lint:
|
lint:
|
||||||
@echo "\033[0;32mLINT:\033[0m"
|
@echo "\033[0;32mLINT:\033[0m"
|
||||||
|
|
|
@ -18,6 +18,12 @@ Yarn is faster and therefore preferred. Please follow the directions on Yarn's
|
||||||
|
|
||||||
### Building and Testing
|
### Building and Testing
|
||||||
|
|
||||||
|
The first time you build, you must `make configure` to install and prepare native plugins for V8:
|
||||||
|
|
||||||
|
$ make configure
|
||||||
|
|
||||||
|
Make sure to run this after installing the right version of Node.js above, otherwise it may bind to the wrong version.
|
||||||
|
|
||||||
To build the SDK, simply run `make` from the root directory (`sdk/nodejs/`). This will build the code, run tests, and
|
To build the SDK, simply run `make` from the root directory (`sdk/nodejs/`). This will build the code, run tests, and
|
||||||
then "install" the package (by `yarn link`ing the resulting `bin/` directory).
|
then "install" the package (by `yarn link`ing the resulting `bin/` directory).
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue