package.json 3.3 KB
Newer Older
DCloud_JSON's avatar
DCloud_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
{
  "name": "highlight.js",
  "description": "Syntax highlighting with language autodetection.",
  "keywords": [
    "highlight",
    "syntax"
  ],
  "homepage": "https://highlightjs.org/",
  "version": "11.7.0",
  "author": "Josh Goebel <hello@joshgoebel.com>",
  "contributors": [
    "Josh Goebel <hello@joshgoebel.com>",
    "Egor Rogov <e.rogov@postgrespro.ru>",
    "Vladimir Jimenez <me@allejo.io>",
    "Ivan Sagalaev <maniac@softwaremaniacs.org>",
    "Jeremy Hull <sourdrums@gmail.com>",
    "Oleg Efimov <efimovov@gmail.com>",
    "Gidi Meir Morris <gidi@gidi.io>",
    "Jan T. Sott <git@idleberg.com>",
    "Li Xuanji <xuanji@gmail.com>",
    "Marcos Cáceres <marcos@marcosc.com>",
    "Sang Dang <sang.dang@polku.io>"
  ],
  "bugs": {
    "url": "https://github.com/highlightjs/highlight.js/issues"
  },
  "license": "BSD-3-Clause",
  "repository": {
    "type": "git",
    "url": "git://github.com/highlightjs/highlight.js.git"
  },
  "type": "commonjs",
  "main": "./lib/index.js",
  "types": "./types/index.d.ts",
  "sideEffects": [
    "*.css",
    "*.scss"
  ],
  "scripts": {
    "mocha": "mocha",
    "lint": "eslint src/*.js src/lib/*.js demo/*.js tools/**/*.js --ignore-pattern vendor",
    "lint-languages": "eslint --no-eslintrc -c .eslintrc.lang.js src/languages/**/*.js",
    "build_and_test": "npm run build && npm run test",
    "build_and_test_browser": "npm run build-browser && npm run test-browser",
    "build": "node ./tools/build.js -t node",
    "build-cdn": "node ./tools/build.js -t cdn",
    "build-browser": "node ./tools/build.js -t browser :common",
    "test": "mocha test",
    "test-markup": "mocha test/markup",
    "test-detect": "mocha test/detect",
    "test-browser": "mocha test/browser",
    "test-parser": "mocha test/parser"
  },
  "engines": {
    "node": ">=12.0.0"
  },
  "devDependencies": {
    "@colors/colors": "^1.5.0",
    "@rollup/plugin-commonjs": "^22.0.0",
    "@rollup/plugin-json": "^4.1.0",
    "@rollup/plugin-node-resolve": "^13.3.0",
    "@types/mocha": "^9.1.1",
    "@typescript-eslint/eslint-plugin": "^5.27.1",
    "@typescript-eslint/parser": "^5.27.1",
    "clean-css": "^5.3.0",
    "cli-table": "^0.3.1",
    "commander": "9.3",
    "css": "^3.0.0",
    "css-color-names": "^1.0.1",
    "deep-freeze-es6": "^1.4.1",
    "del": "^6.1.1",
    "dependency-resolver": "^2.0.1",
    "eslint": "^8.17.0",
    "eslint-config-standard": "^17.0.0",
    "eslint-plugin-import": "^2.26.0",
    "eslint-plugin-node": "^11.1.0",
    "eslint-plugin-promise": "^6.0.0",
    "glob": "^7.2.3",
    "glob-promise": "^4.2.2",
    "handlebars": "^4.7.6",
    "jsdom": "^20.0.0",
    "lodash": "^4.17.20",
    "mocha": "^10.0.0",
    "refa": "^0.4.1",
    "rollup": "^2.47.0",
    "should": "^13.2.3",
    "terser": "^5.14.1",
    "tiny-worker": "^2.3.0",
    "typescript": "^4.7.3",
    "wcag-contrast": "^3.0.0"
  },
  "exports": {
    ".": {
      "require": "./lib/index.js",
      "import": "./es/index.js"
    },
    "./package.json": "./package.json",
    "./lib/common": {
      "require": "./lib/common.js",
      "import": "./es/common.js"
    },
    "./lib/core": {
      "require": "./lib/core.js",
      "import": "./es/core.js"
    },
    "./lib/languages/*": {
      "require": "./lib/languages/*.js",
      "import": "./es/languages/*.js"
    },
    "./scss/*": "./scss/*",
    "./styles/*": "./styles/*",
    "./types/*": "./types/*"
  }
}