-
Notifications
You must be signed in to change notification settings - Fork 53
/
package.json
36 lines (36 loc) · 1.27 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
{
"name": "zeplin-html-to-pdf",
"version": "2.4.0",
"description": "AWS Lambda function that converts HTML pages to PDF documents",
"scripts": {
"lint": "./node_modules/.bin/eslint --quiet .",
"lint:staged": "./node_modules/.bin/eslint --quiet",
"lint:fix": "npm run lint -- --fix",
"pack": "rm -f package.zip && zip package.zip -r index.js utils lib fonts",
"deploy:dev": "npm run pack && aws lambda update-function-code --region us-east-1 --query '{State: State, StateReasonCode: StateReasonCode}' --function-name htmlToPdf --zip-file fileb://`pwd`/package.zip",
"deploy:prod": "npm run pack && aws lambda update-function-code --region us-west-2 --query '{State: State, StateReasonCode: StateReasonCode}' --function-name htmlToPdf --zip-file fileb://`pwd`/package.zip"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zeplin/zeplin-html-to-pdf.git"
},
"bugs": {
"url": "https://github.com/zeplin/zeplin-html-to-pdf/issues"
},
"devDependencies": {
"@zeplin/eslint-config": "^2.3.2",
"eslint": "^8.10.0",
"husky": "^4.2.1",
"lint-staged": "^10.0.2"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"npm run --silent lint:staged"
]
}
}