Skip to content

ether-camp/heroku-buildpack-gradle-npm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Heroku buildpack: Gradle + NPM

Requirements:
  • Backend (Java Gradle) in backend folder with build.gradle
  • Frontend (NPM) in frontend folder with package.json
Executes following tasks:
  • Install Node.js according to Frontend package.json engine settings
  • Install NPM according to Frontend package.json engine settings
  • Install dependencies according to Frontend package.json
  • Executes build assets task in Frontend using npm run build:prod
  • Install JDK for Backend
  • Installs Gradle Wrapper for Backend if not provided
  • Build app by running Gradle task stage
Settings:

Default dirs (backend and frontend) could be overwritten with env vars:

export BACKEND_SOURCE_DIR=back
export FRONTEND_SOURCE_DIR=front

Also several directories supported, splitted by ;

export BACKEND_SOURCE_DIR=backend;worker
export FRONTEND_SOURCE_DIR=frontend;embed

Frontend build could be skipped by using appropriate var set to YES

export SKIP_FRONTEND_BUILD=YES

About

Heroku buildpack for Gradle backend + NPM frontend app

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

  •  
  •  
  •  

Languages