package.json 3.3 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
r121.1  
Mr.doob 已提交
3
  "version": "0.121.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": {
M
Mr.doob 已提交
37 38 39
      "@typescript-eslint/no-unused-vars": [
        "error"
      ],
G
Garrett Johnson 已提交
40 41 42 43 44 45
      "@typescript-eslint/indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
R
Rawr 已提交
46
      ],
R
Rawr 已提交
47 48 49 50 51 52 53
      "prefer-const": [
        "error",
        {
          "destructuring": "any",
          "ignoreReadBeforeAssign": false
        }
      ]
54
    }
55
  },
B
Ben Ripkens 已提交
56
  "scripts": {
57
    "start": "npm run dev",
M
Mugen87 已提交
58
    "test": "npm run test-lint && npm run test-unit",
M
Mr.doob 已提交
59
    "build": "rollup -c utils/build/rollup.config.js",
M
munrocket@pm.me 已提交
60
    "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\"",
M
munrocket@pm.me 已提交
61
    "dev-test": "concurrently --names \"ROLLUP,ROLLUPTEST,HTTP\" -c \"bgBlue.bold,bgRed.bold,bgGreen.bold\" \"rollup -c utils/build/rollup.config.js -w -m inline\" \"npm run dev --prefix test\" \"http-server -p 8080\"",
R
Rawr 已提交
62
    "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js/ --ext js --ext ts --ignore-pattern libs --fix",
M
munrocket@pm.me 已提交
63 64
    "lint-docs": "eslint docs --ext html",
    "lint-examples": "eslint examples/jsm --ext js --ext ts --ignore-pattern libs && tsc -p utils/build/tsconfig-examples.lint.json",
65
    "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
66
    "test-unit": "npm run unit --prefix test",
M
munrocket@pm.me 已提交
67
    "test-e2e": "node test/e2e/puppeteer.js",
M
munrocket@pm.me 已提交
68
    "test-e2e-cov": "node test/e2e/check-coverage.js",
M
munrocket@pm.me 已提交
69
    "make-screenshot": "node test/e2e/puppeteer.js --make"
B
Ben Ripkens 已提交
70 71 72 73
  },
  "keywords": [
    "three",
    "three.js",
L
linbingquan 已提交
74
    "javascript",
B
Ben Ripkens 已提交
75
    "3d",
L
linbingquan 已提交
76 77 78 79 80 81
    "virtual-reality",
    "augmented-reality",
    "webgl",
    "webgl2",
    "webaudio",
    "webxr",
M
Mr.doob 已提交
82 83
    "canvas",
    "svg",
L
linbingquan 已提交
84
    "html5"
B
Ben Ripkens 已提交
85 86 87 88 89 90
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
91
  "homepage": "https://threejs.org/",
G
gero3 已提交
92
  "devDependencies": {
M
Marco Fugaro 已提交
93 94 95 96
    "@babel/core": "^7.11.6",
    "@babel/plugin-proposal-class-properties": "^7.10.4",
    "@babel/preset-env": "^7.11.5",
    "@rollup/plugin-babel": "^5.2.1",
M
Mugen87 已提交
97 98
    "@typescript-eslint/eslint-plugin": "^4.0.0",
    "@typescript-eslint/parser": "^4.0.0",
L
linbingquan 已提交
99 100
    "concurrently": "^5.3.0",
    "eslint": "^7.6.0",
M
Mugen87 已提交
101
    "eslint-config-mdcs": "^5.0.0",
L
linbingquan 已提交
102
    "eslint-plugin-html": "^6.0.3",
M
Mr.doob 已提交
103
    "http-server": "^0.12.3",
M
Marco Fugaro 已提交
104
    "rollup": "^2.28.1",
105
    "rollup-plugin-terser": "^7.0.2",
M
Mugen87 已提交
106
    "typescript": "^4.0.2"
107 108 109 110 111 112 113 114 115 116
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
117
    "directories": {}
A
Abel Allison 已提交
118
  }
B
Ben Ripkens 已提交
119
}