Skip to content

Commit

Permalink
rename to cloudflare-image
Browse files Browse the repository at this point in the history
  • Loading branch information
keyute committed Sep 23, 2024
1 parent b8e4405 commit 991e8e2
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 54 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'npm'
- run: npm ci
- run: npm run build
- run: npm run build
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
node-version: 20
cache: 'npm'
registry-url: 'https://registry.npmjs.org'
- run: npm ci
Expand All @@ -21,4 +21,4 @@ jobs:
- run: npm run build
- run: npm publish ./dist
env:
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Cloudflare Image Resize
# Cloudflare Image Component

A React component that aims to take advantage
of [Cloudflare Image Resizing](https://developers.cloudflare.com/images/image-resizing/) without an object storage.
of [Cloudflare Image](https://developers.cloudflare.com/images/transform-images/transform-via-url/) without an object storage.

## Features

Expand All @@ -14,13 +14,13 @@ of [Cloudflare Image Resizing](https://developers.cloudflare.com/images/image-re
## Install

```bash
npm i cloudflare-image-resize
npm i cloudflare-image
```

## Usage

```typescript jsx
import {Image} from 'cloudflare-image-resize'
import {Image} from 'cloudflare-image'

const oldImage = <img src={'/image.png'}/>

Expand Down Expand Up @@ -56,4 +56,4 @@ open an issue or submit a PR.

As this component is built based on the requirements across all of my projects, any
feature requests outside of that scope will likely be not worked on. As such, I recommend submitting a PR if you
want to add a feature that you need.
want to add a feature that you need.
81 changes: 45 additions & 36 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

18 changes: 9 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,27 +1,27 @@
{
"name": "cloudflare-image-resize",
"name": "cloudflare-image",
"author": "Bryan Low <git@lowbryan.com>",
"license": "MIT",
"repository": {
"type": "git",
"url": "https://github.com/keyute/cloudflare-image-resize.git"
"url": "https://github.com/keyute/cloudflare-image.git"
},
"version": "1.0.0",
"scripts": {
"clean": "rm -rf dist",
"build": "npm run clean && tsc && cp package.json README.md ./dist"
},
"devDependencies": {
"@types/node": "^20.2.5",
"@types/react": "^18.2.7",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"typescript": "^4.9.5"
"@types/node": "^22.5.5",
"@types/react": "^18.3.8",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"typescript": "^5.6.2"
},
"keywords": [
"cloudflare",
"image",
"resize",
"typescript"
"typescript",
"react"
]
}

0 comments on commit 991e8e2

Please sign in to comment.