package.json 2.7 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
r107  
Mr.doob 已提交
3
  "version": "0.107.0",
B
Ben Ripkens 已提交
4 5
  "description": "JavaScript 3D library",
  "main": "build/three.js",
V
Vincent Klaiber 已提交
6
  "repository": "mrdoob/three.js",
7 8
  "jsnext:main": "build/three.module.js",
  "module": "build/three.module.js",
9
  "types": "src/Three.d.ts",
10 11 12
  "files": [
    "build/three.js",
    "build/three.min.js",
13
    "build/three.module.js",
14
    "examples/js",
L
linbingquan 已提交
15
    "examples/jsm",
L
linbingquan 已提交
16 17 18 19 20
    "examples/fonts",
    "LICENSE",
    "package.json",
    "README.md",
    "src"
21
  ],
B
Ben Ripkens 已提交
22 23 24 25 26
  "directories": {
    "doc": "docs",
    "example": "examples",
    "test": "test"
  },
27
  "eslintConfig": {
28
    "parser": "@typescript-eslint/parser",
L
Lewy Blue 已提交
29 30
    "extends": "mdcs",
    "plugins": [
31 32 33 34
      "html",
      "@typescript-eslint"
    ],
    "rules": {
G
Garrett Johnson 已提交
35 36 37 38 39 40 41 42
      "@typescript-eslint/no-unused-vars": 1,
      "@typescript-eslint/indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
      ]
43
    }
44
  },
B
Ben Ripkens 已提交
45
  "scripts": {
R
Rich Harris 已提交
46
    "build": "rollup -c",
G
gero3 已提交
47
    "build-test": "rollup -c test/rollup.unit.config.js",
48
    "build-closure": "rollup -c && 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",
49
    "build-examples": "rollup -c rollup-examples.config.js",
L
Lewy Blue 已提交
50
    "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
M
Mugen87 已提交
51
    "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"rollup -c test/rollup.unit.config.js -w -m inline\" \"http-server -p 8080\"",
52
    "start": "npm run dev",
53
    "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
G
Gero3 已提交
54
    "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
M
Mr.doob 已提交
55
    "travis": "npm run lint && npm test"
B
Ben Ripkens 已提交
56 57 58 59 60 61 62 63 64 65 66 67
  },
  "keywords": [
    "three",
    "three.js",
    "3d",
    "webgl"
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
68
  "homepage": "https://threejs.org/",
G
gero3 已提交
69
  "devDependencies": {
M
Mugen87 已提交
70 71
    "@typescript-eslint/eslint-plugin": "^2.0.0",
    "@typescript-eslint/parser": "^2.0.0",
M
Mr.doob 已提交
72 73
    "concurrently": "^4.1.2",
    "eslint": "^6.2.1",
M
Mugen87 已提交
74
    "eslint-config-mdcs": "^4.2.3",
75
    "eslint-plugin-html": "^6.0.0",
G
Gero3 已提交
76
    "failonlyreporter": "^1.0.0",
M
Mugen87 已提交
77
    "google-closure-compiler": "20190729.0.0",
M
Mugen87 已提交
78
    "http-server": "^0.11.1",
M
Mr.doob 已提交
79
    "qunit": "^2.9.2",
M
Mugen87 已提交
80
    "rollup": "^1.19.4",
M
Mr.doob 已提交
81
    "typescript": "^3.5.3"
82 83 84 85 86 87 88 89 90 91
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
92
    "directories": {}
A
Abel Allison 已提交
93
  }
B
Ben Ripkens 已提交
94
}