1 | {
|
---|
2 | "name": "refractor",
|
---|
3 | "version": "3.6.0",
|
---|
4 | "description": "Lightweight, robust, elegant virtual syntax highlighting using Prism",
|
---|
5 | "license": "MIT",
|
---|
6 | "keywords": [
|
---|
7 | "syntax",
|
---|
8 | "code",
|
---|
9 | "ast",
|
---|
10 | "virtual",
|
---|
11 | "dom",
|
---|
12 | "highlight",
|
---|
13 | "highlighting",
|
---|
14 | "prism"
|
---|
15 | ],
|
---|
16 | "repository": "wooorm/refractor",
|
---|
17 | "bugs": "https://github.com/wooorm/refractor/issues",
|
---|
18 | "funding": {
|
---|
19 | "type": "github",
|
---|
20 | "url": "https://github.com/sponsors/wooorm"
|
---|
21 | },
|
---|
22 | "author": "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
---|
23 | "contributors": [
|
---|
24 | "Titus Wormer <tituswormer@gmail.com> (https://wooorm.com)",
|
---|
25 | "Conor Hastings <hastings.conorm@gmail.com>",
|
---|
26 | "Daniel Stefanovic <daniel.stefanovic@gmail.com>",
|
---|
27 | "Mike Kruk <tamagokun@gmail.com>",
|
---|
28 | "Peter Williams <peterwilliams@gmail.com>",
|
---|
29 | "Brian Mearns <bmearns@commercehub.com>",
|
---|
30 | "Gray Zhang <otakustay@gmail.com>"
|
---|
31 | ],
|
---|
32 | "files": [
|
---|
33 | "index.js",
|
---|
34 | "core.js",
|
---|
35 | "lang"
|
---|
36 | ],
|
---|
37 | "dependencies": {
|
---|
38 | "hastscript": "^6.0.0",
|
---|
39 | "parse-entities": "^2.0.0",
|
---|
40 | "prismjs": "~1.27.0"
|
---|
41 | },
|
---|
42 | "devDependencies": {
|
---|
43 | "@babel/core": "^7.0.0",
|
---|
44 | "alpha-sort": "^4.0.0",
|
---|
45 | "arr-diff": "^4.0.0",
|
---|
46 | "async": "^3.0.0",
|
---|
47 | "bail": "^1.0.0",
|
---|
48 | "browserify": "^17.0.0",
|
---|
49 | "chalk": "^4.0.0",
|
---|
50 | "detab": "^2.0.0",
|
---|
51 | "is-hidden": "^1.0.0",
|
---|
52 | "is-keyword": "^1.2.2",
|
---|
53 | "mdast-zone": "^4.0.0",
|
---|
54 | "not": "^0.1.0",
|
---|
55 | "nyc": "^15.0.0",
|
---|
56 | "prettier": "^2.0.0",
|
---|
57 | "rehype": "^11.0.0",
|
---|
58 | "remark-cli": "^9.0.0",
|
---|
59 | "remark-preset-wooorm": "^8.0.0",
|
---|
60 | "tape": "^5.0.0",
|
---|
61 | "tinyify": "^3.0.0",
|
---|
62 | "trim-lines": "^1.0.0",
|
---|
63 | "unist-builder": "^2.0.0",
|
---|
64 | "unist-util-remove-position": "^3.0.0",
|
---|
65 | "xo": "^0.37.0"
|
---|
66 | },
|
---|
67 | "scripts": {
|
---|
68 | "generate": "node script/languages && node script/list",
|
---|
69 | "format": "remark . -qfo && prettier . -w --loglevel warn && xo --fix",
|
---|
70 | "build-bundle": "browserify index.js -s refractor > refractor.js",
|
---|
71 | "build-mangle": "browserify index.js -s refractor -p tinyify > refractor.min.js",
|
---|
72 | "build": "npm run build-bundle && npm run build-mangle",
|
---|
73 | "test-api": "node test",
|
---|
74 | "test-coverage": "nyc --reporter lcov tape test/index.js",
|
---|
75 | "test": "npm run generate && npm run format && npm run build && npm run test-coverage"
|
---|
76 | },
|
---|
77 | "nyc": {
|
---|
78 | "check-coverage": true,
|
---|
79 | "lines": 100,
|
---|
80 | "functions": 100,
|
---|
81 | "branches": 100,
|
---|
82 | "exclude": [
|
---|
83 | "lang/*.js"
|
---|
84 | ]
|
---|
85 | },
|
---|
86 | "prettier": {
|
---|
87 | "tabWidth": 2,
|
---|
88 | "useTabs": false,
|
---|
89 | "singleQuote": true,
|
---|
90 | "bracketSpacing": false,
|
---|
91 | "semi": false,
|
---|
92 | "trailingComma": "none"
|
---|
93 | },
|
---|
94 | "xo": {
|
---|
95 | "prettier": true,
|
---|
96 | "esnext": false,
|
---|
97 | "rules": {
|
---|
98 | "import/extensions": "off",
|
---|
99 | "unicorn/no-array-callback-reference": "off",
|
---|
100 | "unicorn/no-fn-reference-in-iterator": "off",
|
---|
101 | "unicorn/prefer-includes": "off",
|
---|
102 | "unicorn/prefer-optional-catch-binding": "off",
|
---|
103 | "unicorn/prefer-type-error": "off",
|
---|
104 | "unicorn/string-content": "off",
|
---|
105 | "guard-for-in": "off"
|
---|
106 | },
|
---|
107 | "ignores": [
|
---|
108 | "lang/*.js",
|
---|
109 | "refractor.js"
|
---|
110 | ]
|
---|
111 | },
|
---|
112 | "remarkConfig": {
|
---|
113 | "plugins": [
|
---|
114 | "preset-wooorm",
|
---|
115 | [
|
---|
116 | "toc",
|
---|
117 | {
|
---|
118 | "heading": "contents",
|
---|
119 | "skip": "license"
|
---|
120 | }
|
---|
121 | ],
|
---|
122 | "./script/count",
|
---|
123 | "./script/support"
|
---|
124 | ]
|
---|
125 | }
|
---|
126 | }
|
---|