{"id":20293270,"url":"https://github.com/mingderwang/serverless-esbuild-test","last_synced_at":"2025-10-18T07:49:41.041Z","repository":{"id":36953149,"uuid":"463783855","full_name":"mingderwang/serverless-esbuild-test","owner":"mingderwang","description":"serverless-esbuild testing","archived":false,"fork":false,"pushed_at":"2023-03-06T10:06:19.000Z","size":529,"stargazers_count":1,"open_issues_count":5,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-29T03:46:15.188Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mingderwang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","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":"2022-02-26T07:21:09.000Z","updated_at":"2023-03-03T22:38:17.000Z","dependencies_parsed_at":"2024-11-14T15:23:13.627Z","dependency_job_id":"a3dfa686-3ff8-46f0-921c-0cd2c515ff84","html_url":"https://github.com/mingderwang/serverless-esbuild-test","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":"Hebilicious/serverless-esbuild-template","purl":"pkg:github/mingderwang/serverless-esbuild-test","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fserverless-esbuild-test","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fserverless-esbuild-test/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fserverless-esbuild-test/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fserverless-esbuild-test/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mingderwang","download_url":"https://codeload.github.com/mingderwang/serverless-esbuild-test/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mingderwang%2Fserverless-esbuild-test/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279490260,"owners_count":26179465,"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-18T02:00:06.492Z","response_time":62,"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":[],"created_at":"2024-11-14T15:23:08.049Z","updated_at":"2025-10-18T07:49:40.996Z","avatar_url":"https://github.com/mingderwang.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![serverless](http://public.serverless.com/badges/v3.svg)](http://www.serverless.com) ![Serverless ESBuild CI](https://github.com/Hebilicious/serverless-esbuild-template/workflows/Serverless%20ESBuild%20CI/badge.svg) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release)\n\n# Serverless Esbuild Template\n\nThis is a template repository to get you started really quickly with the serverless framework and typescript, using the incredible esbuild.\nIt is slighlty opinionated.\n\n## TL:DR =\u003e How to use\n\n```bash\n# Make sure you have a modern node environment (example: node 14+, yarn)\n# Make sure you have AWS credentials https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-files.html\n\n# Install dependencies\nyarn\n\n# Make sure everything works ™\nyarn test\n\n# Bundle your code and deploy it (This creates the needed AWS resources, Lambda, apiGw, s3...)\n# Deploy will output the URL, refer to serverless documentation to see how everything gets mapped from the serverless.yml\n# Everything is configurable, the default stage is dev, and default region is us-east-1\nyarn deploy\n\n# Example using curl to test your deployed lambda (make sure to use the correct url)\ncurl https://00000000.execute-api.us-east-1.amazonaws.com/dev/hello | jq\n\n# Remove service (Removes everything created by sls deploy)\nyarn remove\n```\n\n## Features\n\n### ⚡ serverless + esbuild = ❤\n\n-   Built on top of the incredible [esbuild](https://github.com/evanw/esbuild), mad props to [@evanw](https://github.com/evanw)\n-   Refer to [serverless-esbuild](https://github.com/floydspace/serverless-esbuild) for the plugin documentation, credits to [@floydspace](https://github.com/floydspace)\n-   Includes the amazing [esbuild-register](https://github.com/egoist/esbuild-register), thanks to [@egoist](https://github.com/egoist)\n\n```bash\nnode -r esm -r esbuild-register script.ts #Aliased to TS for your convenience\n```\n\n\u003e Enjoy lighting fast build and script execution in typescript\n\n### ⚙ Eslint / Prettier / Typescript / Yarn / dotenv\n\nWith sensible defaults because writing boilerplate takes too much time.\n\n\u003e _dotenv is intentionally a dev dependencies, if you want to use it at runtime, move it to dependencies, import it in your code then load your env file._\n\n### 🧪 Tests with Jest, GitHub Actions, Dependabot\n\nAn example of an integration test that works with the great `sls offline` and the node-fetch package.\n\nSimply run :\n\n```bash\nyarn test\n```\n\n\u003e A Github Action basic pipeline is setup with yarn caching and tests, check .github/workflows/main.yaml\n\n### 📴 Serverless-offline dev/start/stop scripts with pm2\n\npm2 is a node process manager, very handy when you're dealing with several local microservices ...\n\n```json\n{\n    \"offline:dev\": \"yarn ts scripts/offline.ts dev\",\n    \"offline:start\": \"yarn ts scripts/offline.ts start\",\n    \"offline:stop\": \"yarn ts scripts/offline.ts stop\"\n}\n```\n\n-   `offline:dev` : Start `sls offline` in the foreground.\n-   `offline:start` : Start `sls offline` in the background with pm2, log the output to pm2.log\n-   `offline:stop` : Terminate the pm2 process(es) cleanly (based on the name, check offline.ts)\n\nCheck offline.ts if you need custom behavior.\n\n### 🌀 Serverless.ts\n\nUse a serverless.ts files instead of a serverless.yml file for the configuration.\nYou can delete the serverless.ts and rename serverless.example.yml to serverless.yml if you prefer yaml.\nRefer to the [docs](https://www.serverless.com/framework/docs/providers/aws/guide/intro/).\nMore info in the [PR](https://github.com/serverless/serverless/pull/7755).\n\n\u003e View this repository on GitHub: \u003chttps://github.com/Hebilicious/serverless-esbuild-template\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingderwang%2Fserverless-esbuild-test","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmingderwang%2Fserverless-esbuild-test","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmingderwang%2Fserverless-esbuild-test/lists"}