package.json 2.8 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
r108  
Mr.doob 已提交
3
  "version": "0.108.0",
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": {
R
Rich Harris 已提交
48
    "build": "rollup -c",
G
gero3 已提交
49
    "build-test": "rollup -c test/rollup.unit.config.js",
50
    "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",
51
    "build-examples": "rollup -c rollup-examples.config.js",
L
Lewy Blue 已提交
52
    "dev": "concurrently --names \"ROLLUP,HTTP\" -c \"bgBlue.bold,bgGreen.bold\" \"rollup -c -w -m inline\" \"http-server -c-1 -p 8080\"",
M
Mugen87 已提交
53
    "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\"",
54
    "start": "npm run dev",
55
    "lint": "eslint src --ext js --ext ts && tsc src/Three.d.ts --noEmit",
G
Gero3 已提交
56
    "test": "npm run build-test && qunit -r failonlyreporter test/unit/three.source.unit.js",
M
Mr.doob 已提交
57
    "travis": "npm run lint && npm test"
B
Ben Ripkens 已提交
58 59 60 61 62 63 64 65 66 67 68 69
  },
  "keywords": [
    "three",
    "three.js",
    "3d",
    "webgl"
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
70
  "homepage": "https://threejs.org/",
G
gero3 已提交
71
  "devDependencies": {
M
Mugen87 已提交
72 73
    "@typescript-eslint/eslint-plugin": "^2.0.0",
    "@typescript-eslint/parser": "^2.0.0",
M
Mr.doob 已提交
74 75
    "concurrently": "^4.1.2",
    "eslint": "^6.2.1",
M
Mugen87 已提交
76
    "eslint-config-mdcs": "^4.2.3",
77
    "eslint-plugin-html": "^6.0.0",
G
Gero3 已提交
78
    "failonlyreporter": "^1.0.0",
M
Mugen87 已提交
79
    "google-closure-compiler": "20190729.0.0",
M
Mugen87 已提交
80
    "http-server": "^0.11.1",
M
Mr.doob 已提交
81
    "qunit": "^2.9.2",
M
Mugen87 已提交
82
    "rollup": "^1.19.4",
83
    "typescript": "^3.5.3",
M
Mugen87 已提交
84
    "rollup-plugin-buble": "^0.19.8"
85 86 87 88 89 90 91 92 93 94
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
95
    "directories": {}
A
Abel Allison 已提交
96
  }
B
Ben Ripkens 已提交
97
}