package.json 3.3 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
Mr.doob 已提交
3
  "version": "0.125.2",
B
Ben Ripkens 已提交
4 5
  "description": "JavaScript 3D library",
  "main": "build/three.js",
6
  "module": "build/three.module.js",
7
  "types": "src/Three.d.ts",
8 9 10 11
  "repository": {
    "type": "git",
    "url": "https://github.com/mrdoob/three.js"
  },
12 13 14
  "files": [
    "build/three.js",
    "build/three.min.js",
15
    "build/three.module.js",
16
    "examples/js",
L
linbingquan 已提交
17
    "examples/jsm",
L
linbingquan 已提交
18 19 20 21 22
    "examples/fonts",
    "LICENSE",
    "package.json",
    "README.md",
    "src"
23
  ],
B
Ben Ripkens 已提交
24 25 26 27 28
  "directories": {
    "doc": "docs",
    "example": "examples",
    "test": "test"
  },
29
  "eslintConfig": {
30
    "root": true,
31
    "parser": "@typescript-eslint/parser",
L
Lewy Blue 已提交
32 33
    "extends": "mdcs",
    "plugins": [
34 35 36 37
      "html",
      "@typescript-eslint"
    ],
    "rules": {
M
Mr.doob 已提交
38 39 40
      "@typescript-eslint/no-unused-vars": [
        "error"
      ],
G
Garrett Johnson 已提交
41 42 43 44 45 46
      "@typescript-eslint/indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
R
Rawr 已提交
47
      ],
48 49 50 51
      "quotes": [
        "error",
        "single"
      ],
R
Rawr 已提交
52 53 54 55 56 57 58
      "prefer-const": [
        "error",
        {
          "destructuring": "any",
          "ignoreReadBeforeAssign": false
        }
      ]
59
    }
60
  },
B
Ben Ripkens 已提交
61
  "scripts": {
62
    "start": "npm run dev",
M
Mugen87 已提交
63
    "test": "npm run test-lint && npm run test-unit",
M
Mr.doob 已提交
64
    "build": "rollup -c utils/build/rollup.config.js",
65
    "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"servez -p 8080\"",
G
Garrett Johnson 已提交
66
    "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js examples/jsm --ext js --ext ts --ignore-pattern libs --fix",
M
munrocket@pm.me 已提交
67
    "lint-docs": "eslint docs --ext html",
G
Garrett Johnson 已提交
68
    "lint-examples": "eslint examples/js examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
69
    "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
70
    "test-unit": "npm run unit --prefix test",
71
    "test-unit-examples": "npm run unit-examples --prefix test",
M
munrocket@pm.me 已提交
72
    "test-e2e": "node test/e2e/puppeteer.js",
M
munrocket@pm.me 已提交
73
    "test-e2e-cov": "node test/e2e/check-coverage.js",
M
munrocket@pm.me 已提交
74
    "make-screenshot": "node test/e2e/puppeteer.js --make"
B
Ben Ripkens 已提交
75 76 77 78
  },
  "keywords": [
    "three",
    "three.js",
L
linbingquan 已提交
79
    "javascript",
B
Ben Ripkens 已提交
80
    "3d",
L
linbingquan 已提交
81 82 83 84 85 86
    "virtual-reality",
    "augmented-reality",
    "webgl",
    "webgl2",
    "webaudio",
    "webxr",
M
Mr.doob 已提交
87 88
    "canvas",
    "svg",
L
linbingquan 已提交
89
    "html5"
B
Ben Ripkens 已提交
90 91 92 93 94 95
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
96
  "homepage": "https://threejs.org/",
G
gero3 已提交
97
  "devDependencies": {
L
linbingquan 已提交
98
    "@babel/core": "^7.12.10",
L
linbingquan 已提交
99
    "@babel/plugin-proposal-class-properties": "^7.12.1",
L
linbingquan 已提交
100 101
    "@babel/preset-env": "^7.12.11",
    "@rollup/plugin-babel": "^5.2.2",
M
Mr.doob 已提交
102 103 104
    "@rollup/plugin-node-resolve": "^11.1.0",
    "@typescript-eslint/eslint-plugin": "^4.14.1",
    "@typescript-eslint/parser": "^4.14.1",
L
linbingquan 已提交
105
    "concurrently": "^5.3.0",
M
Mr.doob 已提交
106
    "eslint": "^7.18.0",
M
Mugen87 已提交
107
    "eslint-config-mdcs": "^5.0.0",
L
linbingquan 已提交
108
    "eslint-plugin-html": "^6.1.1",
109
    "regenerator-runtime": "^0.13.7",
M
Mr.doob 已提交
110
    "rollup": "^2.38.0",
111
    "rollup-plugin-terser": "^7.0.2",
M
Mr.doob 已提交
112
    "servez": "^1.11.0",
L
linbingquan 已提交
113
    "typescript": "^4.1.3"
114 115 116 117 118 119 120 121 122 123
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
124
    "directories": {}
A
Abel Allison 已提交
125
  }
B
Ben Ripkens 已提交
126
}