This repository has been archived by the owner on Mar 22, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 28
/
package.json
144 lines (144 loc) · 3.47 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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "serverless-sharp-image",
"version": "0.10.1",
"description": "Serverless-based Lambda function to resize images based on S3 events with the awesome Sharp library",
"main": "handler.js",
"engines": {
"node": ">= 6.10.0"
},
"config": {
"jsSrc": "src/"
},
"scripts": {
"test": "npm run lint && nyc ava",
"watch:test": "ava --watch",
"lint": "npm run lint:eslint -s",
"lint:eslint": "eslint --ext .js .",
"format": "prettier-eslint *.js src/**/*.js",
"coverage": "nyc report",
"deploy": "npm test && serverless deploy -v",
"invoke": "serverless invoke --function sharpImage --path ./event.json --log",
"postinstall": "if [ ! -f ./config.js ]; then cp ./config.sample.js ./config.js; fi && if [ ! -f ./event.json ]; then cp ./event.sample.json ./event.json; fi",
"build:sharp": "docker build -t serverless-sharp-image lambda-sharp && docker run -v \"$PWD/lambda-sharp\":/var/task serverless-sharp-image"
},
"repository": {
"type": "git",
"url": "https://github.com/adieuadieu/serverless-sharp-image.git"
},
"keywords": [
"serverless",
"sharp",
"libvips",
"image",
"resize",
"optimize"
],
"author": "Marco Lüthy",
"license": "MIT",
"bugs": {
"url": "https://github.com/adieuadieu/serverless-sharp-image/issues"
},
"homepage": "https://github.com/adieuadieu/serverless-sharp-image",
"dependencies": {
"aws-sdk": "2.149.0",
"babel-runtime": "6.26.0",
"exif-reader": "1.0.2",
"mime-types": "2.1.17",
"prettier": "1.8.2",
"sharp": "0.18.2",
"sprintf-js": "1.1.1"
},
"devDependencies": {
"ava": "0.23.0",
"babel-core": "6.26.0",
"babel-eslint": "8.0.2",
"babel-loader": "7.1.2",
"babel-plugin-transform-runtime": "6.23.0",
"babel-polyfill": "6.26.0",
"babel-preset-env": "1.6.1",
"babel-preset-stage-3": "6.24.1",
"babel-register": "6.26.0",
"codacy-coverage": "2.0.3",
"coveralls": "3.0.0",
"decompress": "4.2.0",
"eslint": "4.11.0",
"eslint-config-airbnb-base": "12.1.0",
"eslint-plugin-ava": "4.2.2",
"eslint-plugin-import": "2.8.0",
"eslint-plugin-promise": "3.6.0",
"eslint-tap": "2.0.1",
"fs-extra": "4.0.2",
"husky": "0.14.3",
"lint-staged": "5.0.0",
"nyc": "11.3.0",
"prettier-eslint": "8.2.1",
"prettier-eslint-cli": "4.4.0",
"serverless": "1.24.1",
"serverless-webpack": "4.0.0",
"tap-xunit": "1.7.0",
"webpack": "3.8.1"
},
"ava": {
"require": "babel-register",
"babel": "inherit"
},
"babel": {
"sourceMaps": "inline",
"plugins": [
"transform-runtime"
],
"presets": [
[
"env",
{
"targets": {
"node": "6.10"
}
}
],
"stage-3"
]
},
"eslintConfig": {
"parser": "babel-eslint",
"plugins": [
"ava",
"import"
],
"extends": [
"airbnb-base",
"plugin:ava/recommended"
],
"settings": {
"import/parser": "babel-eslint",
"import/resolve": {
"moduleDirectory": [
"node_modules",
"src",
"./"
]
}
},
"rules": {
"no-console": 0,
"semi": [
"error",
"never"
],
"comma-dangle": [
"error",
"always-multiline"
],
"space-before-function-paren": [
"error",
"always"
]
}
},
"lint-staged": {
"*.{js,ts}": [
"npm run format",
"git add"
]
}
}