UNPKG

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