-
-
Notifications
You must be signed in to change notification settings - Fork 110
/
package.json
134 lines (134 loc) · 3.44 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
{
"name": "md-to-pdf",
"version": "5.2.4",
"description": "CLI tool for converting Markdown files to PDF.",
"keywords": [
"markdown-to-pdf",
"cli",
"pdf-generation",
"documentation",
"assignments",
"homework",
"markdown",
"pdf",
"puppeteer",
"headless-chrome",
"html-to-pdf"
],
"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",
"prepack": "npm run clean && npm run build",
"lint": "xo",
"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.2",
"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.7.0",
"iconv-lite": "^0.6.3",
"listr": "^0.14.3",
"marked": "^4.2.12",
"puppeteer": ">=8.0.0",
"semver": "^7.3.7",
"serve-handler": "^6.1.3"
},
"devDependencies": {
"@types/listr": "0.14.5",
"@types/marked": "4.3.0",
"@types/semver": "7.5.4",
"@types/serve-handler": "6.1.3",
"ava": "3.15.0",
"nyc": "15.1.0",
"pdfjs-dist": "3.6.172",
"prettier": "2.8.8",
"prettier-plugin-organize-imports": "3.2.3",
"tap-xunit": "2.4.1",
"ts-node": "10.9.1",
"tsd": "0.29.0",
"typescript": "5.1.6",
"xo": "0.39.1"
},
"ava": {
"extensions": [
"ts"
],
"require": [
"ts-node/register"
],
"verbose": true
},
"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"
}
}
]
}
}