Skip to content

A JavaScript-based monorepo boilerplate for bundling serverless functions with PNPM, Webpack, and Babel—optimized for multi-cloud deployment and lean CI/CD builds.

Notifications You must be signed in to change notification settings

mindfiredigital/js-serverless-monorepo-boilerplate

Repository files navigation

PNPM Functions Bundler

This project demonstrates how to bundle multiple independent Node.js functions (like functionA, functionB) using Webpack, PNPM workspaces, and Babel.

Each function lives in its own folder under packages/, and is bundled separately into the dist/ folder.


1. Install Dependencies

This will add all dependencies according to their respective packages

pnpm install

2. Build

Run build command in root directory

This will generate build files in root directory for all packages together

pnpm build

This will generate build files in specific package, you can use functionB as well. According to your package you can mention build commands in package.json file

pnpm build:functionA

I have targeted functionC from dist folder for start command, on starting command it will run from build files. You can modify commands accordingly in package.json

pnpm start

About

A JavaScript-based monorepo boilerplate for bundling serverless functions with PNPM, Webpack, and Babel—optimized for multi-cloud deployment and lean CI/CD builds.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors