atilafassina / create-netlify-ts

πŸ‘Ÿ Building Netlify Functions with TypeScript has never been this easy

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

πŸ‘Ÿ Building Netlify Functions with TypeScript has never been this easy

License:MIT License


Languages

Language:TypeScript 52.4%Language:JavaScript 47.6%