pulumi/sdk/nodejs/Makefile
joeduffy 4c781da93b Add instructions for make configure
And also move the Node.js SDK-specific parts into the sdk/nodejs/ directory.
2017-09-11 15:17:11 -07:00

38 lines
666 B
Makefile

PROCCNT=$(shell nproc --all)
.PHONY: default
default: banner build install
.PHONY: banner
banner:
@echo "\033[1;37m==================\033[0m"
@echo "\033[1;37mPulumi Node.js SDK\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
lint:
@echo "\033[0;32mLINT:\033[0m"
yarn run lint
.PHONY: clean
clean:
rm -rf ./bin
.PHONY: build
build:
@echo "\033[0;32mBUILD:\033[0m"
yarn run build
.PHONY: install
install:
@echo "\033[0;32mINSTALL:\033[0m"
cp package.json bin/
cd bin/ && yarn link