forked from binuks/tachyon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
39 lines (39 loc) · 1.79 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
{
"name": "tachyon",
"version": "2.6.1",
"repository": {
"type": "git",
"url": "https://github.com/humanmade/tachyon.git"
},
"description": "Human Made Tachyon in node",
"main": "index.js",
"config": {
"bucket": "",
"path": "",
"region": "us-east-1",
"function-name": ""
},
"scripts": {
"build-node-modules": "rm -R node_modules ; docker run --rm -v `pwd`:/var/task public.ecr.aws/sam/build-nodejs14.x:latest npm install",
"test-file": "docker run --rm -e S3_BUCKET=hmn-uploads-eu -e S3_REGION=eu-west-1 -v `pwd`:/var/task public.ecr.aws/lambda/nodejs:14 \"lambda-handler.handler '{\"path\":\"/'$npm_config_path'\", \"headers\":{}}'\"",
"test": "docker run --rm -v `pwd`:/var/task -it --entrypoint='node' public.ecr.aws/lambda/nodejs:14 /var/task/test-filesize/index.js",
"update-test-fixtures": "docker run --rm -v `pwd`:/var/task -it --entrypoint='node' public.ecr.aws/lambda/nodejs:14 /var/task/test-filesize/index.js --update-fixtures",
"build-zip": "rm lambda.zip; zip -r --exclude='node_modules/aws-sdk/*' --exclude='node_modules/animated-gif-detector/test/*' lambda.zip ./node_modules/ index.js proxy-file.js lambda-handler.js",
"upload-zip": "aws s3 --region=$npm_config_region cp ./lambda.zip s3://$npm_config_bucket/$npm_config_path",
"update-function-code": "aws lambda update-function-code --region $npm_config_region --function-name $npm_config_function_name --zip-file fileb://`pwd`/lambda.zip"
},
"author": "Joe Hoyle",
"license": "ISC",
"dependencies": {
"animated-gif-detector": "^1.2.0",
"imagemin-pngquant": "^8.0.0",
"sharp": "^0.30.7",
"smartcrop-sharp": "^2.0.6"
},
"devDependencies": {
"aws-sdk": "^2.1354.0",
"aws-xray-sdk-core": "^3.3.6",
"cli-table": "^0.3.1",
"filesize": "^4.1.2"
}
}