{"id":16361412,"url":"https://github.com/pevers/swat","last_synced_at":"2025-10-26T04:32:26.450Z","repository":{"id":152037445,"uuid":"371644455","full_name":"pevers/swat","owner":"pevers","description":"Serverless Webpack and Typescript starter in a Monorepo with Prisma integration as example","archived":false,"fork":false,"pushed_at":"2021-06-02T18:25:13.000Z","size":549,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-07T15:11:10.216Z","etag":null,"topics":["monorepo","prisma2","serverless","typescript","webpack"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/pevers.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-05-28T09:11:24.000Z","updated_at":"2024-08-24T16:02:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"47bef097-f703-450d-a330-5ff219885b5a","html_url":"https://github.com/pevers/swat","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/pevers/swat","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fswat","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fswat/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fswat/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fswat/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pevers","download_url":"https://codeload.github.com/pevers/swat/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pevers%2Fswat/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281059645,"owners_count":26437056,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-26T02:00:06.575Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["monorepo","prisma2","serverless","typescript","webpack"],"created_at":"2024-10-11T02:13:58.009Z","updated_at":"2025-10-26T04:32:26.443Z","avatar_url":"https://github.com/pevers.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Serverless Webpack Monorepo Typescript Starter\n\nHeavily inspired on this repo: https://github.com/tommedema/serverless-mono-example . This example showcases a monorepo setup for Serverless applications in Typescript using Yarn Workspaces and Webpack. The Lambda integrates with [Prisma](https://github.com/prisma/prisma) to demonstrate forcefully including packages that cannot be bundled by Webpack. It works by preventing these dependencies to be hoisted to the root folder, by adding them to Yarn's `nohoist` (see `package.json`).\n\n## Stack\n\n- Typescript (with references)\n- Lerna\n- Yarn Workspaces\n- Serverless Framework\n- Webpack\n- Prisma (database)\n\n## Install \u0026 Build\n\nEverything from the root folder.\n\n```sh\nyarn install\nyarn build\n```\n\n## Features\n\n- Testing from the root folder and in individual packages.\n- Deployments from the root folder and in individual packages.\n- Webpack bundling. Example showcases forcefully including packages that are not compatible with Webpack, such as `Prisma` or `knex.js`.\n- Automatic prettier and linting via Husky.\n\n### Test\n\nRun tests for all packages by simply running `yarn test`, or run them individually by navigating to a package.\n\n```sh\nyarn test\n```\n\n### Deploy\n\nDeploy all Lambda's from the root folder or individually by navigating to a package.\n\n```sh\nyarn deploy\n```\n\n### Exclude more dependencies for bundling\n\nPrisma generates Typescript definitions and a Prisma engine. This Prisma engine is a direct interface to the database. These files cannot be bundled by Webpack and should therefore be excluded. Other dependencies can be added or removed by adding them to the `nohoist` option in the `package.json` file.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Fswat","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpevers%2Fswat","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpevers%2Fswat/lists"}