forked from tdmalone/sns-to-slack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
47 lines (47 loc) · 2.04 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
{
"name": "sns-to-slack",
"version": "0.2.1",
"description": "AWS Lambda function to send SNS notifications to a Slack channel.",
"homepage": "https://github.com/tdmalone/sns-to-slack#readme",
"repository": "git+https://github.com/tdmalone/sns-to-slack.git",
"main": "index.js",
"author": "Tim Malone <[email protected]>",
"license": "MIT",
"scripts": {
"lint": "cross-env DEBUG=eslint:cli-engine eslint --color --ignore-pattern '/coverage/' --ignore-pattern '/docs/' --ignore-pattern '!.eslintrc.js' \"**/*.js\"",
"fix": "yarn lint --fix",
"test": "yarn test-code-build-string && yarn test-code-commit-single-property && yarn test-config-change-single-string && yarn test-config-change && yarn test-form-data && yarn test-generic-event && yarn unit-tests",
"test-code-build-string": "yarn _test \"$(cat tests/fixtures/code-build-string.json)\"",
"test-code-commit-single-property": "yarn _test \"$(cat tests/fixtures/code-commit-single-property.json)\"",
"test-config-change-single-string": "yarn _test \"$(cat tests/fixtures/config-change-single-string.json)\"",
"test-config-change": "yarn _test \"$(cat tests/fixtures/config-change.json)\"",
"test-form-data": "yarn _test \"$(cat tests/fixtures/form-data.json)\"",
"test-generic-event": "yarn _test \"$(cat tests/fixtures/generic-event.json)\"",
"_test": "docker run --rm -e CI -e SLACK_HOOK -v \"${PWD}\":/var/task lambci/lambda:nodejs6.10 index.handler",
"unit-tests": "jest --verbose --coverage",
"package": "rm -rf node_modules && yarn --prod && rm -f function.zip && zip -r function.zip index.js package.json node_modules filters && yarn"
},
"keywords": [
"aws",
"lambda",
"slack",
"sns"
],
"jest": {
"testMatch": [
"**/tests/**/*.js"
]
},
"dependencies": {
"aws-sdk": "^2.170.0",
"globby": "^7.1.1",
"is-plain-obj": "^1.1.0"
},
"devDependencies": {
"cross-env": "^5.1.0",
"eslint": "^4.8.0",
"eslint-config-tdmalone": "^0.0.1",
"jest": "^21.2.1",
"jest-tobetype": "^1.1.0"
}
}