1 | {
|
---|
2 | "name": "hastscript",
|
---|
3 | "version": "6.0.0",
|
---|
4 | "description": "hast utility to create trees",
|
---|
5 | "license": "MIT",
|
---|
6 | "keywords": [
|
---|
7 | "unist",
|
---|
8 | "hast",
|
---|
9 | "hast-util",
|
---|
10 | "util",
|
---|
11 | "utility",
|
---|
12 | "html",
|
---|
13 | "rehype",
|
---|
14 | "vdom",
|
---|
15 | "virtual",
|
---|
16 | "dom",
|
---|
17 | "hyperscript",
|
---|
18 | "dsl"
|
---|
19 | ],
|
---|
20 | "repository": "syntax-tree/hastscript",
|
---|
21 | "bugs": "https://github.com/syntax-tree/hastscript/issues",
|
---|
22 | "funding": {
|
---|
23 | "type": "opencollective",
|
---|
24 | "url": "https://opencollective.com/unified"
|
---|
25 | },
|
---|
26 | "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
---|
27 | "contributors": [
|
---|
28 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)"
|
---|
29 | ],
|
---|
30 | "types": "index.d.ts",
|
---|
31 | "files": [
|
---|
32 | "index.d.ts",
|
---|
33 | "svg.d.ts",
|
---|
34 | "index.js",
|
---|
35 | "factory.js",
|
---|
36 | "html.js",
|
---|
37 | "svg.js",
|
---|
38 | "svg-case-sensitive-tag-names.json"
|
---|
39 | ],
|
---|
40 | "dependencies": {
|
---|
41 | "@types/hast": "^2.0.0",
|
---|
42 | "comma-separated-tokens": "^1.0.0",
|
---|
43 | "hast-util-parse-selector": "^2.0.0",
|
---|
44 | "property-information": "^5.0.0",
|
---|
45 | "space-separated-tokens": "^1.0.0"
|
---|
46 | },
|
---|
47 | "devDependencies": {
|
---|
48 | "browserify": "^16.0.0",
|
---|
49 | "dtslint": "^3.0.0",
|
---|
50 | "nyc": "^15.0.0",
|
---|
51 | "prettier": "^2.0.0",
|
---|
52 | "remark-cli": "^8.0.0",
|
---|
53 | "remark-preset-wooorm": "^7.0.0",
|
---|
54 | "svg-tag-names": "^2.0.0",
|
---|
55 | "tape": "^5.0.0",
|
---|
56 | "tinyify": "^2.0.0",
|
---|
57 | "xo": "^0.32.0"
|
---|
58 | },
|
---|
59 | "scripts": {
|
---|
60 | "generate": "node build",
|
---|
61 | "format": "remark . -qfo && prettier . --write && xo --fix",
|
---|
62 | "build-bundle": "browserify . -s hastscript > hastscript.js",
|
---|
63 | "build-mangle": "browserify . -s hastscript -p tinyify > hastscript.min.js",
|
---|
64 | "build": "npm run build-bundle && npm run build-mangle",
|
---|
65 | "test-api": "node test",
|
---|
66 | "test-coverage": "nyc --reporter lcov tape test.js",
|
---|
67 | "test-types": "dtslint .",
|
---|
68 | "test": "npm run generate && npm run format && npm run build && npm run test-coverage && npm run test-types"
|
---|
69 | },
|
---|
70 | "nyc": {
|
---|
71 | "check-coverage": true,
|
---|
72 | "lines": 100,
|
---|
73 | "functions": 100,
|
---|
74 | "branches": 100
|
---|
75 | },
|
---|
76 | "prettier": {
|
---|
77 | "tabWidth": 2,
|
---|
78 | "useTabs": false,
|
---|
79 | "singleQuote": true,
|
---|
80 | "bracketSpacing": false,
|
---|
81 | "semi": false,
|
---|
82 | "trailingComma": "none"
|
---|
83 | },
|
---|
84 | "xo": {
|
---|
85 | "prettier": true,
|
---|
86 | "esnext": false,
|
---|
87 | "rules": {
|
---|
88 | "unicorn/prefer-number-properties": "off",
|
---|
89 | "no-self-compare": "off",
|
---|
90 | "guard-for-in": "off"
|
---|
91 | },
|
---|
92 | "ignores": [
|
---|
93 | "hastscript.js"
|
---|
94 | ]
|
---|
95 | },
|
---|
96 | "remarkConfig": {
|
---|
97 | "plugins": [
|
---|
98 | "preset-wooorm"
|
---|
99 | ]
|
---|
100 | }
|
---|
101 | }
|
---|