Skip to content

Commit f8ba17f

Browse files
committed
update readmes
1 parent 65c2765 commit f8ba17f

File tree

4 files changed

+23
-8
lines changed

4 files changed

+23
-8
lines changed

.changeset/small-eggs-pull.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"esbuild-cf-functions-plugin": minor
3+
---
4+
5+
Initial release

README.md

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
# `esbuild-cf-functions-plugin`
22

3-
<!--
4-
[![npm](https://img.shields.io/npm/v/NAME_HERE)](https://www.npmjs.com/package/NAME_HERE)
5-
![npm bundle size](https://img.shields.io/bundlephobia/minzip/NAME_HERE)
6-
![node-current](https://img.shields.io/node/v/NAME_HERE)
7-
[![Codecov](https://img.shields.io/codecov/c/github/BeeeQueue/NAME_HERE?token=TOKEN_HERE)](https://app.codecov.io/github/BeeeQueue/NAME_HERE)
8-
-->
3+
[![npm](https://img.shields.io/npm/v/esbuild-cf-functions-plugin)](https://www.npmjs.com/package/esbuild-cf-functions-plugin)
4+
![node-current](https://img.shields.io/node/v/esbuild-cf-functions-plugin)
5+
![esbuild-current](https://img.shields.io/badge/esbuild-^0.14.46-green)
6+
[![Codecov](https://img.shields.io/codecov/c/github/BeeeQueue/esbuild-cf-functions-plugin?token=TOKEN_HERE)](https://app.codecov.io/github/BeeeQueue/esbuild-cf-functions-plugin)
97

108
This plugin configures ESBuild for building code [compatible][runtime] with [CloudFront Functions][cf-functions].
119

12-
As can be seen in the documentation CloudFront Functions do not run on Node, but on AWS's custom JS runtime.
10+
As can be seen in the documentation, CloudFront Functions do not run on Node, but on AWS's custom JS runtime.
1311

14-
According to them it
12+
According to them, it
1513

1614
> ... is compliant with ECMAScript (ES) version 5.1 and also supports some features of ES versions 6 through 9.
1715

example/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Redirect example
2+
3+
This example shows a set up where a TypeScript function is build and deployed to CloudFront Functions via Terraform!
4+
5+
The function does one thing: if the path starts with `/foo*` it will redirect it to `/bar*`.
6+
7+
This can be tested by visiting the URL below and seeing the path change from `/foo/nebula.webp` to `/bar/nebula.webp`!
8+
9+
https://d31lz94z7iimag.cloudfront.net/foo/nebula.webp

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@
3737
"release": "pnpm build && pnpm changeset publish",
3838
"prepare": "simple-git-hooks"
3939
},
40+
"peerDependencies": {
41+
"esbuild": "^0.14.46"
42+
},
4043
"devDependencies": {
4144
"@beequeue/eslint-plugin": "0.6.0",
4245
"@changesets/changelog-github": "0.4.5",

0 commit comments

Comments
 (0)