package.json 3.6 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
r116.1  
Mr.doob 已提交
3
  "version": "0.116.1",
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
    "parser": "@typescript-eslint/parser",
L
Lewy Blue 已提交
31 32
    "extends": "mdcs",
    "plugins": [
33 34 35 36
      "html",
      "@typescript-eslint"
    ],
    "rules": {
G
Garrett Johnson 已提交
37 38 39 40 41 42 43 44
      "@typescript-eslint/no-unused-vars": 1,
      "@typescript-eslint/indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
      ]
45
    }
46
  },
B
Ben Ripkens 已提交
47
  "scripts": {
48
    "start": "npm run dev",
G
gero3 已提交
49
    "build": "rollup -c utils/build/rollup.config.js",
G
gero3 已提交
50
    "build-test": "rollup -c test/rollup.unit.config.js",
G
gero3 已提交
51 52
    "build-closure": "rollup -c utils/build/rollup.config.js && google-closure-compiler --warning_level=VERBOSE --jscomp_off=globalThis --jscomp_off=checkTypes --externs utils/build/externs.js --language_in=ECMASCRIPT5_STRICT --js build/three.js --js_output_file build/three.min.js",
    "build-examples": "rollup -c utils/build/rollup-examples.config.js",
M
munrocket@pm.me 已提交
53 54
    "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"http-server -c-1 -p 8080\"",
    "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
55 56
    "test": "npm run test-lint && npm run test-unit",
    "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
L
linbingquan 已提交
57
    "test-lint-docs": "eslint docs --ext html",
58
    "test-lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
59
    "test-unit": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
M
munrocket@pm.me 已提交
60
    "test-e2e": "node --expose-gc test/e2e/puppeteer.js",
M
munrocket@pm.me 已提交
61
    "test-e2e-cov": "node test/e2e/check-coverage.js",
M
munrocket@pm.me 已提交
62
    "make-screenshot": "cross-env MAKE=true npm run test-e2e"
B
Ben Ripkens 已提交
63 64 65 66
  },
  "keywords": [
    "three",
    "three.js",
L
linbingquan 已提交
67
    "javascript",
B
Ben Ripkens 已提交
68
    "3d",
L
linbingquan 已提交
69 70 71 72 73 74
    "virtual-reality",
    "augmented-reality",
    "webgl",
    "webgl2",
    "webaudio",
    "webxr",
M
Mr.doob 已提交
75 76
    "canvas",
    "svg",
L
linbingquan 已提交
77
    "html5"
B
Ben Ripkens 已提交
78 79 80 81 82 83
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
84
  "homepage": "https://threejs.org/",
G
gero3 已提交
85
  "devDependencies": {
M
Mr.doob 已提交
86 87 88 89
    "@typescript-eslint/eslint-plugin": "^2.26.0",
    "@typescript-eslint/parser": "^2.26.0",
    "concurrently": "^5.1.0",
    "cross-env": "^7.0.2",
M
Mugen87 已提交
90
    "eslint": "^6.8.0",
M
Mugen87 已提交
91 92
    "eslint-config-mdcs": "^5.0.0",
    "eslint-plugin-html": "^6.0.2",
G
Gero3 已提交
93
    "failonlyreporter": "^1.0.0",
M
Mugen87 已提交
94
    "google-closure-compiler": "20200224.0.0",
M
Mr.doob 已提交
95
    "http-server": "^0.12.3",
M
munrocket@pm.me 已提交
96 97 98
    "image-output": "^2.4.2",
    "pixelmatch": "5.2.0",
    "pngjs": "5.0.0",
M
munrocket@pm.me 已提交
99
    "puppeteer": "2.1.1",
M
Mr.doob 已提交
100
    "qunit": "^2.9.3",
M
Mr.doob 已提交
101
    "rollup": "^2.3.2",
M
Mr.doob 已提交
102
    "rollup-plugin-buble": "^0.19.8",
M
munrocket@pm.me 已提交
103
    "serve-handler": "^6.1.2",
M
Mugen87 已提交
104
    "typescript": "^3.8.3"
105 106 107 108 109 110 111 112 113 114
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
115
    "directories": {}
A
Abel Allison 已提交
116
  }
B
Ben Ripkens 已提交
117
}