-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
Copy pathpackage.json
137 lines (137 loc) · 3.56 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
{
"name": "md-to-pdf",
"version": "5.0.1",
"description": "CLI tool for converting Markdown files to PDF.",
"keywords": [
"markdown-to-pdf",
"cli",
"pdf-generation",
"documentation",
"assignments",
"homework",
"markdown",
"pdf",
"puppeteer",
"headless-chrome"
],
"engines": {
"node": ">=12.0"
},
"files": [
"/dist",
"markdown.css"
],
"main": "dist/index.js",
"types": "dist/index.d.ts",
"scripts": {
"start": "tsc -p tsconfig.build.json --watch",
"build": "tsc -p tsconfig.build.json",
"clean": "rm -rf dist",
"prepare": "npm run clean && npm run build",
"test": "xo && tsc -p tsconfig.type-test.json && nyc ava src/test/lib.spec.ts && ava src/test/api.spec.ts && ava src/test/cli.spec.ts --timeout=1m",
"release": "npm test && npx standard-version --infile=changelog.md && git push --follow-tags origin master && npm publish",
"loc": "npx cloc src --exclude-dir=test --by-file"
},
"bin": {
"md-to-pdf": "dist/cli.js",
"md2pdf": "dist/cli.js"
},
"author": "Simon Haenisch (https://github.com/simonhaenisch)",
"license": "MIT",
"repository": "simonhaenisch/md-to-pdf",
"homepage": "https://github.com/simonhaenisch/md-to-pdf#readme",
"dependencies": {
"arg": "5.0.1",
"chalk": "4.1.2",
"chokidar": "3.5.2",
"get-port": "5.1.1",
"get-stdin": "8.0.0",
"gray-matter": "4.0.3",
"highlight.js": "11.3.1",
"iconv-lite": "0.6.3",
"listr": "0.14.3",
"marked": "4.0.3",
"puppeteer": ">=8.0.0",
"semver": "7.3.5",
"serve-handler": "6.1.3"
},
"devDependencies": {
"@types/listr": "0.14.4",
"@types/marked": "4.0.0",
"@types/semver": "7.3.9",
"@types/serve-handler": "6.1.1",
"ava": "3.15.0",
"husky": "4.3.8",
"nyc": "15.1.0",
"pdfjs-dist": "2.10.377",
"prettier": "2.4.1",
"prettier-plugin-organize-imports": "2.3.4",
"tap-xunit": "2.4.1",
"ts-node": "10.4.0",
"tsd": "0.18.0",
"typescript": "4.4.4",
"xo": "0.39.1"
},
"husky": {
"hooks": {
"post-merge": "git diff-tree -r --name-only --no-commit-id ORIG_HEAD HEAD | grep --quiet package-lock.json && npm install"
}
},
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
]
},
"prettier": {
"printWidth": 120,
"singleQuote": true,
"tabWidth": 2,
"trailingComma": "all",
"useTabs": true,
"bracketSpacing": true,
"overrides": [
{
"files": [
"package.json"
],
"options": {
"useTabs": false
}
}
]
},
"xo": {
"prettier": true,
"ignores": [
"src/test/mathjax"
],
"rules": {
"@typescript-eslint/explicit-function-return-type": "off",
"@typescript-eslint/no-confusing-void-expression": "off",
"@typescript-eslint/no-implicit-any-catch": "off",
"@typescript-eslint/no-var-requires": "off",
"@typescript-eslint/prefer-readonly-parameter-types": "off",
"camelcase": "off",
"capitalized-comments": "off",
"no-await-in-loop": "off",
"no-promise-executor-return": "off",
"no-redeclare": "off",
"node/no-unsupported-features/es-syntax": "off",
"unicorn/no-array-callback-reference": "off",
"unicorn/no-fn-reference-in-iterator": "off",
"unicorn/string-content": "off"
},
"overrides": [
{
"files": "**/*.spec.ts",
"rules": {
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unsafe-argument": "off"
}
}
]
}
}