heroku / buildpacks-nodejs

Heroku's Cloud Native Buildpacks for Node.js applications.
BSD 3-Clause "New" or "Revised" License
2 stars 2 forks source link

Added `nodejs-npm-install` Buildpack #625

Closed colincasey closed 1 year ago

colincasey commented 1 year ago

Initial commit of nodejs-npm-install npm buildpack which replaces partial functionality from the existing bash-based npm buildpack.

The nodejs-npm-install buildpack adds support for Heroku's installing and caching an applications node modules. The nodejs-engine buildpack has also been modified to provide npm as a default system version.

Example Buildpack Output

# Heroku npm Install Buildpack

- Installing node modules
  - Using npm version `6.14.18`
  - Creating npm cache
  - Configuring npm cache directory
  - Running `npm ci "--production=false"`

      added 4 packages in 0.866s

  - Done (1.245s)
- Running scripts
  - Running `npm run -s heroku-prebuild`

      executed heroku-prebuild

  - Done (0.184s)
  - Running `npm run -s build`

      executed build

  - Done (0.180s)
  - Running `npm run -s heroku-postbuild`

      executed heroku-postbuild

  - Done (0.226s)
- Configuring default processes
  - Adding default web process for `npm start`
- Done (finished in 2.310s)
edmorley commented 1 year ago

@colincasey I happened to notice whilst looking at #686 that there are a number of CI jobs not marked as a required in the branch protection status checks list - these are the new CI jobs for the buildpack added here and in #623.

colincasey commented 1 year ago

thanks @edmorley. added the 4 new jobs to the required status checks list.