Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
willemliufdmg committed Dec 16, 2021
0 parents commit 4750c66
Show file tree
Hide file tree
Showing 9 changed files with 5,447 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.env
analyzer
dist
images
node_modules
imageMap.json
35 changes: 35 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# IMGIX Upload

Upload images to IMGIX and output a JSON-file with mappings to the hashed filenames on IMGIX.

## Prerequisites

1. Node & NPM

## Getting started

1. Run `npm i` to install all dependencies
1. Run `npm run build` to build the development version of this application.
- Alternatively run `npm run build:prod` to build the production version of this application.
1. Set the following environment are supported:
- ENVIRONMENT
- IMGIX_UPLOAD_AWS_DEFAULT_REGION
- IMGIX_UPLOAD_RELATIVE_IMAGE_MAP_LOCATION
- IMGIX_UPLOAD_RELATIVE_IMAGE_FOLDER_LOCATION
- IMGIX_UPLOAD_ACC_S3_API_KEY
- IMGIX_UPLOAD_ACC_S3_SECRET_KEY
- IMGIX_UPLOAD_ACC_S3_BUCKET_URL
- IMGIX_UPLOAD_ACC_S3_BUCKET
- IMGIX_UPLOAD_ACC_S3_DISTRIBUTION_ID
- IMGIX_UPLOAD_DEV_S3_API_KEY
- IMGIX_UPLOAD_DEV_S3_SECRET_KEY
- IMGIX_UPLOAD_DEV_S3_BUCKET_URL
- IMGIX_UPLOAD_DEV_S3_BUCKET
- IMGIX_UPLOAD_DEV_S3_DISTRIBUTION_ID
- IMGIX_UPLOAD_PROD_S3_API_KEY
- IMGIX_UPLOAD_PROD_S3_SECRET_KEY
- IMGIX_UPLOAD_PROD_S3_BUCKET_URL
- IMGIX_UPLOAD_PROD_S3_BUCKET
- IMGIX_UPLOAD_PROD_S3_DISTRIBUTION_ID
- IMGIX_UPLOAD_S3_DATA_CACHE_CONTROL
1. Run `npm start`
4 changes: 4 additions & 0 deletions custom.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
declare module "file-extension" {
const module: any;
export default module;
}
Loading

0 comments on commit 4750c66

Please sign in to comment.