-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 4750c66
Showing
9 changed files
with
5,447 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
.env | ||
analyzer | ||
dist | ||
images | ||
node_modules | ||
imageMap.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module "file-extension" { | ||
const module: any; | ||
export default module; | ||
} |
Oops, something went wrong.