forked from danger/danger-js
-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
145 lines (145 loc) · 5.35 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
{
"name": "danger",
"version": "3.7.18",
"description": "Unit tests for Team Culture",
"main": "distribution/danger.js",
"typings": "distribution/danger.d.ts",
"bin": {
"danger": "distribution/commands/danger.js",
"danger-pr": "distribution/commands/danger-pr.js",
"danger-runner": "distribution/commands/danger-runner.js",
"danger-process": "distribution/commands/danger-process.js",
"danger-ci": "distribution/commands/danger-ci.js",
"danger-init": "distribution/commands/danger-init.js",
"danger-local": "distribution/commands/danger-local.js",
"danger-reset-status": "distribution/commands/danger-reset-status.js"
},
"jest": {
"transform": {
".(ts|tsx)": "<rootDir>/node_modules/ts-jest/preprocessor.js"
},
"testResultsProcessor": "jest-json-reporter",
"testRegex": "(.test)\\.(ts|tsx)$",
"testPathIgnorePatterns": ["/node_modules/", "/distribution/", "/types/"],
"moduleFileExtensions": ["js", "jsx", "json", "ts", "tsx"],
"cacheDirectory": ".jest/cache"
},
"lint-staged": {
"*.json": ["yarn prettier --write", "git add"],
"*.@(ts|tsx)": ["tslint --fix", "yarn prettier --write", "git add"],
"*.md": ["yarn prettier --write", "git add"]
},
"prettier": {
"printWidth": 120,
"semi": false,
"singleQuote": false,
"trailingComma": "es5",
"bracketSpacing": true,
"proseWrap": "always"
},
"scripts": {
"precommit": "lint-staged",
"prepush": "yarn build; yarn danger:prepush",
"test": "jest",
"test:watch": "jest --watch",
"lint": "tslint \"source/**/*.ts\"",
"lint:fix": "tslint \"source/**/*.ts\" --fix",
"prepublishOnly": "yarn build && yarn declarations && yarn build:flow-types && yarn build:pretty-types",
"build": "shx rm -rf ./distribution && tsc -p tsconfig.production.json && madge ./distribution --circular",
"build:fast": "tsc -p tsconfig.production.json",
"build:flow-types":
"cp source/danger.d.ts source/_danger.d.ts && sed -ie 's/api: GitHub/api: any/g' source/_danger.d.ts && npx flowgen source/_danger.d.ts -o distribution/danger.js.flow && node scripts/update_flow_types.js",
"build:pretty-types":
"yarn prettier --write distribution/danger.d.ts; yarn prettier --parser flow distribution/danger.js.flow --write",
"build:watch": "tsc -w",
"link": "yarn run build && chmod +x distribution/commands/danger.js && npm link",
"declarations": "ts-node ./scripts/create-danger-dts.ts",
"docs:cp_defs":
"mkdir docs/docs_generate; cp source/danger.d.ts docs/docs_generate; cp node_modules/@octokit/rest/index.d.ts docs/docs_generate/github.d.ts",
"docs":
"yarn run docs:cp_defs; yarn typedoc --ignoreCompilerErrors --mode modules --json docs/js_ref_dsl_docs.json --includeDeclarations source",
"dts-lint": "yarn run declarations && yarn dtslint types",
"danger:prepush": "node distribution/commands/danger.js local --dangerfile dangerfile.lite.ts"
},
"repository": {
"type": "git",
"url": "git+https://github.com/danger/danger-js.git"
},
"keywords": ["danger", "ci"],
"author": "Orta Therox",
"license": "MIT",
"bugs": {
"url": "https://github.com/danger/danger-js/issues"
},
"homepage": "https://github.com/danger/danger-js#readme",
"devDependencies": {
"@types/debug": "0.0.30",
"@types/get-stdin": "^5.0.1",
"@types/jest": "^22.2.3",
"@types/json5": "^0.0.29",
"@types/jsonwebtoken": "^7.2.7",
"@types/lodash.includes": "^4.3.3",
"@types/node-fetch": "^1.6.6",
"@types/p-limit": "^1.1.2",
"@types/readline-sync": "^1.4.2",
"@types/voca": "^1.3.0",
"babel-cli": "7.0.0-alpha.19",
"babel-core": "7.0.0-alpha.19",
"babel-plugin-syntax-async-functions": "7.0.0-alpha.19",
"babel-plugin-transform-flow-strip-types": "7.0.0-alpha.19",
"babel-plugin-transform-regenerator": "7.0.0-alpha.19",
"babel-plugin-transform-typescript": "7.0.0-alpha.19",
"babel-preset-es2015": "7.0.0-alpha.19",
"babel-preset-stage-3": "7.0.0-alpha.19",
"babel-traverse": "7.0.0-alpha.19",
"danger-plugin-jest": "^1.0.1",
"danger-plugin-yarn": "^1.2.1",
"date-fns": "^1.29.0",
"flow-bin": "^0.71.0",
"husky": "^0.14.0",
"jest": "22.4.3",
"jest-json-reporter": "^1.2.2",
"lint-staged": "^7.0.0",
"madge": "^3.1.1",
"prettier": "^1.10.2",
"shx": "^0.2.1",
"ts-jest": "^22.4.2",
"ts-node": "^6.0.0",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.8.0",
"typedoc": "0.9.0",
"typescript": "^2.9.1"
},
"dependencies": {
"@octokit/rest": "^15.5.0",
"babel-polyfill": "^6.23.0",
"chalk": "^2.3.0",
"commander": "^2.13.0",
"debug": "^3.1.0",
"get-stdin": "^6.0.0",
"hyperlinker": "^1.0.0",
"jsome": "^2.3.25",
"json5": "^1.0.0",
"jsonpointer": "^4.0.1",
"jsonwebtoken": "^8.2.1",
"lodash.find": "^4.6.0",
"lodash.includes": "^4.3.0",
"lodash.isobject": "^3.0.2",
"lodash.keys": "^4.0.8",
"node-cleanup": "^2.1.2",
"node-fetch": "^2.1.2",
"p-limit": "^1.2.0",
"parse-diff": "^0.4.2",
"parse-git-config": "^2.0.2",
"parse-github-url": "^1.0.2",
"parse-link-header": "^1.0.1",
"pinpoint": "^1.1.0",
"readline-sync": "^1.4.9",
"require-from-string": "^2.0.2",
"rfc6902": "^2.2.2",
"supports-hyperlinks": "^1.0.1",
"vm2": "^3.6.0",
"voca": "^1.4.0"
},
"optionalDependencies": {}
}