The Wayback Machine - https://web.archive.org/web/20221205110535/https://github.com/atilafassina/create-netlify-ts
Skip to content

atilafassina/create-netlify-ts

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 
 
 

create-netlify-ts

👟 Building Netlify Functions with TypeScript easily

📦 Package Manager agnostic

� No production footprint

🚀 Ready to deploy

â?¯_

npm

npx create-netlify-ts

yarn

yarn create netlify-ts

â?“ Answer the questions and start coding!

Terminal showing create-netlify-ts working

🌲 File tree

 {{ package-name }}
  ├── src
  │   └── {{ your-function-name }}.ts
  ├── package.json
  ├── .babelrc
  ├── .gitignore
  └── netlify.toml

🧳 Installed dependencies

All depdendencies are installed as devDependencies, create-netlify-ts has no footprint on your production code.

Required dependencies

Package Name Why
netlify-lambda Adds build-step to Netlify Functions
typescript The compiler for TypeScript (tsc)
@babel/preset-env Tells Babel which JavaScript syntax to output
@babel/preset-typescript Teach Babel to use TypeScript compiler
@types/aws-lambda Request/Response types for AWS Lambdas†

†: Netlify Functions runs on top of AWS-Lambdas

Optional dependencies

🛫 Flying solo

It‘s a dangerous road out there. Take these:

📹 Write an API with Netlify Functions and TypeScript

� Monster As A Service: written in TS, deployed to Netlify

�� Netlify Functions 💜 TypeScript