This buildpack runs particle library install --vendor
command inside of user sources which installs all dependencies inside of the project.
$ docker-compose build
Provided you have a project with dependencies in ~/tmp/input
directory running following command will install those and save both project and dependencies in ~/tmp/output
:
$ export ACCESS_TOKEN=<VALID_TOKEN>
$ docker run --rm \
-v ~/tmp/input:/input \
-v ~/tmp/output:/output \
-e ACCESS_TOKEN=$ACCESS_TOKEN \
particle/buildpack-install-dependencies
To run tests use:
$ docker run --rm \
-e ACCESS_TOKEN=$ACCESS_TOKEN \
particle/buildpack-install-dependencies \
/bin/run-tests