-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpackage.json
More file actions
159 lines (159 loc) · 6.74 KB
/
package.json
File metadata and controls
159 lines (159 loc) · 6.74 KB
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
149
150
151
152
153
154
155
156
157
158
159
{
"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": "yarn run patch && yarn 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 && yarn 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": "yarn 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/register --require @babel/polyfill './dist/test/**/*.spec.js'",
"test-integration": "yarn run agent-build && yarn run sls-deploy && yarn run docker-start && EDGEGRID_ENV=test node ./node_modules/.bin/mocha --timeout 10000 --require @babel/register --require @babel/polyfill ./dist/test/**/*.spec-int.js",
"semantic-release": "semantic-release",
"sls-deploy": "yarn 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": "yarn 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": "yarn run agent-build && docker-compose restart && yarn 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 <io@zoto.io> (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": "^7.18.10",
"@babel/core": "^7.18.10",
"@babel/plugin-proposal-class-properties": "^7.18.6",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/plugin-proposal-optional-chaining": "^7.18.9",
"@babel/plugin-proposal-private-methods": "^7.18.6",
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
"@babel/plugin-syntax-import-assertions": "^7.26.0",
"babel-plugin-dynamic-import-node": "^2.3.3",
"babel-plugin-add-module-exports": "^1.0.4",
"@babel/plugin-transform-runtime": "^7.18.0",
"@babel/preset-env": "^7.18.10",
"@babel/register": "^7.12.1",
"@babel/polyfill": "^7.12.1",
"@babel/preset-react": "^7.18.9",
"babel-plugin-module-resolver": "^4.1.0",
"@babel/eslint-parser": "^7.27.0",
"babel-plugin-transform-remove-console": "^6.9.4",
"core-js": "^3.24.1",
"jest": "^28.1.3",
"regenerator-runtime": "^0.13.9",
"chai": "^5.2.0",
"commitizen": "^4.3.1",
"cross-env": "^7.0.3",
"cz-conventional-changelog": "^3.3.0",
"dotenv": "^16.4.7",
"eslint": "^9.23.0",
"eslint-config-prettier": "10.1.1",
"eslint-plugin-prettier": "5.2.5",
"firstline": "^2.0.2",
"format-json": "^1.0.3",
"mocha": "^11.1.0",
"nyc": "^17.1.0",
"prettier": "3.5.3",
"rimraf": "^6.0.1",
"sass": "^1.86.0",
"semantic-release": "^24.2.3",
"serverless": "^4.9.1",
"serverless-offline": "^14.4.0",
"serverless-webpack": "^5.15.1",
"sinon": "^20.0.0",
"sqs-producer": "^6.0.1",
"supertest": "^7.1.0"
},
"engines": {
"node": ">=20.0.0"
},
"nyc": {
"require": [
"@babel/register"
],
"reporter": [
"lcov",
"text"
],
"sourceMap": false,
"instrument": false
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"dependencies": {
"@octokit/rest": "21.1.1",
"app-root-path": "^3.1.0",
"@babel/helpers": "^7.27.0",
"@babel/helper-module-transforms": "^7.26.0",
"@babel/helper-define-polyfill-provider": "^0.6.4",
"body-parser": "^1.20.3",
"bunyan": "^1.8.15",
"bunyan-format": "^0.2.1",
"bunyan-logstash-tcp": "^1.0.0",
"cwlogs-writable": "^1.0.0",
"dockerode": "^4.0.4",
"dynamodb-stream": "^1.1.4",
"elasticsearch": "^16.7.3",
"express": "^4.21.2",
"express-nunjucks": "^3.1.2",
"express-sse": "^0.5.3",
"globule": "^1.3.4",
"highlight.js": "^11.11.1",
"http": "^0.0.0",
"https-proxy-agent": "^7.0.6",
"jenkins": "^1.1.0",
"jsontoxml": "^1.0.1",
"launchdarkly-nodeutils": "^4.0.2",
"ldclient-node": "^5.8.0",
"lodash": "^4.17.21",
"node-static": "^0.7.11",
"nunjucks": "^3.2.4",
"proxy-agent": "^6.5.0",
"request": "^2.88.2",
"request-promise-native": "^1.0.9",
"require-dir": "^1.2.0",
"safe-json-stringify": "^1.2.0",
"serverless-kms-secrets": "^1.0.5",
"smoketail": "^0.2.2",
"source-map-support": "^0.5.21",
"sqs-consumer": "^11.6.0",
"systemjs": "^6.15.1",
"teamcity-rest-api": "0.0.8",
"tempus-fugit": "^2.3.1",
"travis-ci": "^2.2.0",
"uuid": "^11.1.0",
"webpack": "^5.98.0",
"xml2js": "^0.6.2",
"yamljs": "^0.3.0",
"zlib": "^1.0.5"
}
}