-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathpackage.json
216 lines (216 loc) · 5.99 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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
{
"name": "@stencila/encoda",
"version": "1.0.10",
"description": "Codecs for executable document formats",
"files": [
"install.js",
"dist"
],
"main": "dist/index.js",
"scripts": {
"install": "node install.js",
"format": "npx prettier --write './**/*.{js,json,md,ts,yaml}'",
"lint": "eslint 'src/**/*.{ts,js}'",
"lint:fix": "eslint 'src/**/*.{ts,js}' --fix",
"fixtures": "npx ts-node --files src/__fixtures__/make",
"test": "jest --maxWorkers=4 --testTimeout=120000",
"test:cover": "npm test -- --coverage",
"test:watch": "npm test -- --watchAll",
"test:docker": "docker build --tag stencila/encoda . && docker run -it --rm stencila/encoda",
"check": "npm run build && npm run check:deps-used && npm run check:deps-unused",
"check:deps-used": "dependency-check --missing .",
"check:deps-unused": "dependency-check --unused --no-dev --ignore-module @stencila/schema --ignore-module @stencila/thema .",
"start": "ts-node --files src",
"convert-jats": "ts-node ./src/convertJats.ts",
"debug": "node --require ./ts-node-register.js --inspect=9229 src --debug=1",
"build": "npm run build:dist && npm run build:docs",
"build:dist": "tsc -p tsconfig.prod.json",
"build:docs": "typedoc --options typedoc.js ./src",
"clean": "rm -rf bin coverage dist docs tests/**/*.to.*",
"prepublishOnly": "npm run build"
},
"license": "Apache-2.0",
"homepage": "https://github.com/stencila/encoda#readme",
"repository": {
"type": "git",
"url": "git+https://github.com/stencila/encoda.git"
},
"bugs": {
"url": "https://github.com/stencila/encoda/issues"
},
"dependencies": {
"fp-ts": "^2.16.5",
"fs-extra": "^11.2.0",
"get-stdin": "^8.0.0",
"js-yaml": "^4.1.0",
"mathjax-node": "^2.1.1",
"mime": "^3.0.0",
"tempy": "^1.0.1",
"to-vfile": "^6.1.0",
"vfile": "^4.2.1",
"xml-js": "^1.6.11"
},
"peerDependencies": {
"@stencila/schema": "1.9.0"
},
"devDependencies": {
"@qiwi/semantic-release-gh-pages-plugin": "5.2.8",
"@semantic-release/exec": "6.0.3",
"@semantic-release/npm": "12.0.1",
"@stencila/dev-config": "3.0.4",
"@stencila/eslint-config": "^3.0.4",
"@stencila/semantic-release-config": "2.0.20",
"@testing-library/jest-dom": "5.17.0",
"@types/fs-extra": "9.0.13",
"@types/jest": "29.5.4",
"@types/js-yaml": "4.0.5",
"@types/json-schema": "^7.0.15",
"@types/mime": "2.0.3",
"@types/node": "18.17.9",
"callsites": "3.1.0",
"delay": "5.0.0",
"dependency-check": "4.1.0",
"jest": "29.6.4",
"jest-file-snapshot": "0.5.0",
"jest-matcher-utils": "29.6.4",
"semantic-release": "24.1.0",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
"typedoc": "0.24.8",
"typescript": "4.9.5"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"scope-case": [
2,
"always",
"sentence-case"
],
"subject-case": [
2,
"always",
"sentence-case"
]
}
},
"eslintConfig": {
"extends": "@stencila/eslint-config",
"rules": {
"@typescript-eslint/ban-types": "off",
"@typescript-eslint/ban-ts-comment": "off",
"@typescript-eslint/no-explicit-any": "off",
"@typescript-eslint/no-unsafe-assignment": "off",
"@typescript-eslint/no-unsafe-call": "off",
"@typescript-eslint/no-unsafe-member-access": "off",
"@typescript-eslint/no-unsafe-return": "off",
"@typescript-eslint/restrict-template-expressions": "off"
}
},
"eslintIgnore": [
"**/__fixtures__/*",
"**/__mocks__/*",
"**/__tests__/*",
"*.test.ts"
],
"jest": {
"preset": "ts-jest",
"testEnvironment": "node",
"setupFilesAfterEnv": [
"<rootDir>/src/__tests__/matchers.ts"
],
"testMatch": [
"<rootDir>/src/**/__tests__/**/*.[jt]s?(x)",
"<rootDir>/src/**/*.test.[jt]s?(x)"
],
"modulePathIgnorePatterns": [
"<rootDir>/dist"
],
"testPathIgnorePatterns": [
"<rootDir>/dist/",
"__tests__/matchers.ts",
"__tests__/teardown.ts",
"__tests__/helpers.ts"
],
"coveragePathIgnorePatterns": [
"__tests__/helpers.ts",
"__fixtures__/*",
"__outputs__/*"
],
"watchPathIgnorePatterns": [
"__file_snapshots__",
"__outputs__/*",
".out.*"
]
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"prettier": "@stencila/dev-config/prettier-config.json",
"release": {
"extends": "@stencila/semantic-release-config",
"branches": [
"master"
],
"plugins": [
"@semantic-release/commit-analyzer",
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"@semantic-release/npm",
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i -e \"s!softwareVersion: .*!softwareVersion: '${nextRelease.version}',!\" src/index.ts"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md",
"package.json",
"codemeta.json"
]
}
],
"@semantic-release/github",
"@qiwi/semantic-release-gh-pages-plugin"
]
},
"renovate": {
"extends": [
"config:base"
],
"timezone": "UTC",
"stabilityDays": 3,
"masterIssue": true,
"masterIssueTitle": "Update dependencies",
"packageRules": [
{
"matchDepTypes": [
"dependencies"
],
"rangeStrategy": "bump",
"semanticCommitType": "fix",
"semanticCommitScope": "Dependencies",
"automerge": false
},
{
"groupName": "Dev dependencies",
"groupSlug": "dev",
"matchDepTypes": [
"devDependencies"
],
"rangeStrategy": "pin",
"semanticCommitType": "chore",
"semanticCommitScope": "Dev dependencies",
"automerge": true
}
]
}
}