UNPKG

4.89 kBJSONView Raw
1{
2 "name": "sitemap",
3 "version": "7.1.0",
4 "description": "Sitemap-generating lib/cli",
5 "keywords": [
6 "sitemap",
7 "sitemap.xml"
8 ],
9 "homepage": "https://github.com/ekalinin/sitemap.js#readme",
10 "bugs": {
11 "url": "https://github.com/ekalinin/sitemap.js/issues"
12 },
13 "repository": {
14 "type": "git",
15 "url": "git://github.com/ekalinin/sitemap.js.git"
16 },
17 "license": "MIT",
18 "author": "Eugene Kalinin <e.v.kalinin@gmail.com>",
19 "main": "dist/index.js",
20 "types": "dist/index.d.ts",
21 "bin": "./dist/cli.js",
22 "directories": {
23 "lib": "lib",
24 "test": "tests"
25 },
26 "scripts": {
27 "build": "tsc",
28 "prepare": "husky install",
29 "prepublishOnly": "rm -rf dist && npm run test",
30 "test": "eslint lib/* ./cli.ts && tsc && jest ./tests/sitemap*",
31 "test:full": "eslint lib/* ./cli.ts && tsc && jest && npm run test:xmllint",
32 "test:perf": "node ./tests/perf.js",
33 "test:schema": "node tests/alltags.js | xmllint --schema schema/all.xsd --noout -",
34 "test:typecheck": "tsc",
35 "test:xmllint": "if which xmllint; then npm run test:schema; else echo 'skipping xml tests. xmllint not installed'; fi"
36 },
37 "lint-staged": {
38 "package.json": [
39 "sort-package-json"
40 ],
41 "{lib,tests}/**/*.ts": [
42 "eslint --fix",
43 "prettier --write"
44 ]
45 },
46 "eslintConfig": {
47 "env": {
48 "es6": true,
49 "jest": true,
50 "node": true
51 },
52 "parser": "@typescript-eslint/parser",
53 "parserOptions": {
54 "ecmaVersion": 2018,
55 "sourceType": "module"
56 },
57 "plugins": [
58 "jest",
59 "@typescript-eslint"
60 ],
61 "extends": [
62 "eslint:recommended",
63 "plugin:@typescript-eslint/eslint-recommended",
64 "plugin:@typescript-eslint/recommended",
65 "prettier",
66 "plugin:prettier/recommended"
67 ],
68 "rules": {
69 "indent": "off",
70 "lines-between-class-members": [
71 "error",
72 "always",
73 {
74 "exceptAfterSingleLine": true
75 }
76 ],
77 "no-case-declarations": 0,
78 "no-console": 0,
79 "no-dupe-class-members": "off",
80 "no-unused-vars": 0,
81 "padding-line-between-statements": [
82 "error",
83 {
84 "blankLine": "always",
85 "prev": "multiline-expression",
86 "next": "multiline-expression"
87 }
88 ],
89 "@typescript-eslint/ban-ts-comment": [
90 "error",
91 {
92 "ts-expect-error": "allow-with-description"
93 }
94 ],
95 "@typescript-eslint/explicit-member-accessibility": "off",
96 "@typescript-eslint/naming-convention": [
97 "error",
98 {
99 "selector": "default",
100 "format": null
101 },
102 {
103 "selector": "interface",
104 "prefix": [],
105 "format": null
106 }
107 ],
108 "@typescript-eslint/no-parameter-properties": "off",
109 "@typescript-eslint/no-unused-vars": [
110 "error",
111 {
112 "args": "none"
113 }
114 ]
115 },
116 "overrides": [
117 {
118 "files": [
119 "*.js"
120 ],
121 "rules": {
122 "@typescript-eslint/explicit-function-return-type": [
123 "off"
124 ],
125 "@typescript-eslint/no-var-requires": [
126 "off"
127 ]
128 }
129 }
130 ]
131 },
132 "jest": {
133 "collectCoverage": true,
134 "collectCoverageFrom": [
135 "lib/**/*.ts",
136 "!lib/**/*.d.ts",
137 "!lib/xmllint.ts",
138 "!node_modules/"
139 ],
140 "coverageThreshold": {
141 "global": {
142 "branches": 80,
143 "functions": 90,
144 "lines": 90,
145 "statements": 90
146 }
147 }
148 },
149 "dependencies": {
150 "@types/node": "^17.0.5",
151 "@types/sax": "^1.2.1",
152 "arg": "^5.0.0",
153 "sax": "^1.2.4"
154 },
155 "devDependencies": {
156 "@babel/core": "^7.14.0",
157 "@babel/plugin-proposal-class-properties": "^7.13.0",
158 "@babel/plugin-proposal-nullish-coalescing-operator": "^7.13.8",
159 "@babel/plugin-proposal-optional-chaining": "^7.13.12",
160 "@babel/plugin-transform-typescript": "^7.13.0",
161 "@babel/preset-env": "^7.14.0",
162 "@babel/preset-typescript": "^7.13.0",
163 "@types/jest": "^27.4.0",
164 "@types/memorystream": "^0.3.0",
165 "@typescript-eslint/eslint-plugin": "^5.8.1",
166 "@typescript-eslint/parser": "^5.8.1",
167 "babel-eslint": "^10.1.0",
168 "babel-polyfill": "^6.26.0",
169 "eslint": "^8.5.0",
170 "eslint-config-prettier": "^8.3.0",
171 "eslint-plugin-jest": "^25.3.3",
172 "eslint-plugin-prettier": "^4.0.0",
173 "express": "^4.17.1",
174 "husky": "^7.0.0",
175 "jest": "^27.4.5",
176 "lint-staged": "^12.1.4",
177 "memorystream": "^0.3.1",
178 "prettier": "^2.2.1",
179 "sort-package-json": "^1.49.0",
180 "source-map": "~0.7.3",
181 "stats-lite": "^2.2.0",
182 "stream-json": "^1.7.1",
183 "through2-map": "^3.0.0",
184 "typescript": "^4.2.4"
185 },
186 "engines": {
187 "node": ">=12.0.0",
188 "npm": ">=5.6.0"
189 },
190 "License": "MIT"
191}