Heroku's official Cloud Native Buildpacks for the Node.js ecosystem.
ID | Name | Readme | Changelog | Latest Version |
---|---|---|---|---|
heroku/nodejs |
Node.js | Readme | Changelog | |
heroku/nodejs-engine |
Node.js Engine | Readme | Changelog | |
heroku/nodejs-npm |
NPM | Readme | Changelog | |
heroku/nodejs-yarn |
Yarn | Readme | Changelog |
The heroku/nodejs
meta-buildpack is the recommended buildpack for most
applications. It includes heroku/nodejs-engine
,
heroku/nodejs-npm
, and heroku/nodejs-yarn
.
If you're looking for the repositories of the classic Node.js Heroku buildpack for usage on the Heroku platform, please see heroku/nodejs.
- Bash >=
5.0
Ruby
>=2.7
bundler
viagem install bundler
- Build a buildpack or meta-buildpack by running it's
build.sh
script (if it has one):./meta-buildpacks/nodejs/build.sh
- Use the buildpack to build an app:
pack build example-app --buildpack meta-buildpacks/nodejs/target --path /path/to/example-app
Many of the buildpacks in this repository require a separate build step before they can be used. By convention, build
scripts must be located in a file named build.sh
in the buildpack root directory.
build.sh
scripts:
- MUST NOT depend on a specific working directory and can be called from anywhere
- MUST write the finished buildpack to
target/
within the buildpack directory
cargo test
performs Rust unit and intgration tests for theheroku/nodejs-engine
buildpack.bundle exec rspec test/specs/node
runs cutlass integration tests for theheroku/nodejs
buildpack.bundle exec rspec test/specs/node-function
runs cutlass integration tests for theheroku/nodejs-function
buildpack.shpec buildpacks/npm/shpec/*_shpec.sh
runs the shpec unit tests for theheroku/nodejs-npm
buildpack.shpec buildpacks/nodejs-function-invoker/shpec/*_shpec.sh
runs the shpec unit tests for theheroku/nodejs-function-invoker
buildpack.
Deploy Cloud Native Buildpacks
Licensed under the MIT License. See LICENSE file.