0.1.0 β€’ Published 5 years ago

create-netlify-ts v0.1.0

Weekly downloads
8
License
MIT
Repository
github
Last release
5 years ago

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 NameWhy
netlify-lambdaAdds build-step to Netlify Functions
typescriptThe compiler for TypeScript (tsc)
@babel/preset-envTells Babel which JavaScript syntax to output
@babel/preset-typescriptTeach Babel to use TypeScript compiler
@types/aws-lambdaRequest/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