-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathpackage.json
148 lines (148 loc) · 6.2 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
145
146
147
148
{
"name": "github-task-manager",
"version": "0.0.0-semantically-released",
"description": "receive github hook, notify agent, receive task results, notify github",
"main": "index.js",
"scripts": {
"build": "npm run patch && npm run lint && rimraf dist/ && babel ./src --out-dir dist/src --copy-files && babel ./test --out-dir dist/test --copy-files && babel ./*.js --out-dir dist/ --copy-files && npm run agent-build",
"patch": "cp -rf ./patches/* ./node_modules/",
"commit": "./node_modules/.bin/git-cz",
"lint": "node ./node_modules/.bin/eslint ./src ./test --fix --ext=.js --ignore-pattern src/agent/static/ --ignore-pattern node_modules/ --ignore-pattern dist/ --ignore-pattern coverage/ --quiet",
"test": "npm run build && cross-env NODE_ENV=test GTM_CRYPT_GITHUB_WEBHOOK_SECRET=abc GTM_AWS_KMS_KEY_ID='' nyc ./node_modules/.bin/mocha --timeout 10000 --require babel-core/register --require babel-polyfill './dist/test/**/*.spec.js'",
"test-integration": "npm run agent-build && npm run sls-deploy && npm run docker-start && EDGEGRID_ENV=test node ./node_modules/.bin/mocha --timeout 10000 --require babel-core/register --require babel-polyfill ./dist/test/**/*.spec-int.js",
"semantic-release": "semantic-release",
"sls-deploy": "npm run build && node --require ./dotenv.js ./node_modules/serverless/bin/serverless deploy -v | tee ./sls.out && cat ./sls.out | grep ServiceEndpoint | sed 's/ServiceEndpoint[^https]*\\(https:\\/\\/.*\\)/\\1\\/gtm-github-hook/' | sed 's/\\x1b\\[[0-9;]*m//g' > ./sls-hook-url.out",
"sls-undeploy": "node --require ./dotenv.js ./node_modules/serverless/bin/serverless remove",
"sls-logs-hook": "node --require ./dotenv.js ./node_modules/serverless/bin/serverless logs -f gtmGithubHook -t",
"sls-logs-results": "node --require ./dotenv.js ./node_modules/serverless/bin/serverless logs -f gtmGithubResults -t",
"sls-logs-metrics": "node --require ./dotenv.js ./node_modules/serverless/bin/serverless logs -f gtmGithubMetricCapture -t",
"sls-encrypt": "chmod 755 ./encrypt.sh && ./encrypt.sh",
"sls-decrypt": "node --require ./dotenv.js ./node_modules/serverless/bin/serverless decrypt -n",
"agent": "export $(cat .env | grep -v ^# | xargs) && node dist/src/agent/startAgent.js",
"agent-build": "node ./dist/src/agent/sass.js && cp ./src/agent/static/*.js ./dist/src/agent/static/",
"docker-build": "docker build -t github-task-manager --no-cache .",
"docker-start": "docker-compose up --force-recreate -d",
"docker-build-tail": "npm run build && docker-compose up --force-recreate",
"docker-siblings": "docker run --rm --env-file ./.env --volume=\"/var/run/docker.sock:/var/run/docker.sock\" zotoio/github-task-manager:latest",
"docker-hub-run": "docker pull zotoio/github-task-manager:latest && docker run --env-file ./.env zotoio/github-task-manager:latest",
"docker-local-logs": "docker-compose logs --tail=0 --follow",
"docker-local-bounce": "npm run agent-build && docker-compose restart && npm run docker-local-logs",
"k8s-apply": "chmod 755 ./k8s.sh && ./k8s.sh apply",
"k8s-delete": "chmod 755 ./k8s.sh && ./k8s.sh delete"
},
"repository": {
"type": "git",
"url": "git+https://github.com/zotoio/github-task-manager.git"
},
"keywords": [
"github",
"ci",
"task"
],
"author": "zotoio <[email protected]> (https://zoto.io)",
"license": "MIT",
"bugs": {
"url": "https://github.com/zotoio/github-task-manager/issues"
},
"homepage": "https://github.com/zotoio/github-task-manager#readme",
"devDependencies": {
"babel-cli": "^6.26.0",
"babel-core": "^6.26.3",
"babel-loader": "^7.1.4",
"babel-plugin-istanbul": "^4.1.6",
"babel-plugin-transform-async-to-generator": "^6.24 .1",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-preset-es2015": "^6.24.1",
"babel-preset-stage-0": "^6.24.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"commitizen": "^2.10.1",
"cross-env": "^5.2.0",
"cz-conventional-changelog": "^2.1.0",
"dotenv": "^6.0.0",
"eslint": "^4.19.1",
"eslint-config-prettier": "2.9.0",
"eslint-plugin-prettier": "2.6.0",
"firstline": "^2.0.2",
"format-json": "^1.0.3",
"mocha": "^5.2.0",
"node-sass": "^4.9.0",
"nyc": "^12.0.2",
"prettier": "1.13.5",
"rimraf": "^2.6.2",
"semantic-release": "^15.5.4",
"serverless": "^1.27.3",
"serverless-dotenv-plugin": "^1.1.3",
"serverless-offline": "^3.25.4",
"serverless-webpack": "^5.1.5",
"sinon": "^6.0.0",
"sqs-producer": "^1.6.2",
"supertest": "^3.1.0"
},
"engines": {
"node": ">=8.4.0"
},
"nyc": {
"require": [
"babel-register"
],
"reporter": [
"lcov",
"text"
],
"sourceMap": false,
"instrument": false
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@octokit/rest": "18.0.10",
"app-root-path": "^2.0.1",
"babel-plugin-source-map-support": "^2.1.0",
"babel-plugin-transform-runtime": "^6.23.0",
"babel-polyfill": "^6.26.0",
"body-parser": "^1.20.3",
"bunyan": "^1.8.13",
"bunyan-format": "^0.2.1",
"bunyan-logstash-tcp": "^1.0.0",
"cwlogs-writable": "^1.0.0",
"dockerode": "^4.0.0",
"dynamodb-stream": "^1.1.3",
"elasticsearch": "^15.0.0",
"express": "^4.21.1",
"express-nunjucks": "^2.2.5",
"express-sse": "^0.5.0",
"globule": "^1.2.1",
"highlight.js": "^10.4.1",
"http": "^0.0.0",
"https-proxy-agent": "^2.2.3",
"jenkins": "^0.22.1",
"jsontoxml": "^1.0.0",
"launchdarkly-nodeutils": "^4.0.2",
"ldclient-node": "^5.8.0",
"lodash": "^4.17.10",
"node-static": "^0.7.10",
"nunjucks": "^3.2.4",
"proxy-agent": "^6.3.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.5",
"require-dir": "^1.0.0",
"safe-json-stringify": "^1.2.0",
"smoketail": "^0.1.1",
"source-map-support": "^0.5.6",
"sqs-consumer": "^5.5.0",
"systemjs": "^0.21.4",
"teamcity-rest-api": "0.0.8",
"tempus-fugit": "^2.3.1",
"travis-ci": "^2.2.0",
"uuid": "^3.2.1",
"webpack": "^5.94.0",
"xml2js": "^0.5.0",
"yamljs": "^0.3.0",
"zlib": "^1.0.5",
"serverless-kms-secrets": "^1.0.3"
}
}