package.json 3.4 KB
Newer Older
B
Ben Ripkens 已提交
1
{
2
  "name": "three",
M
r120.1  
Mr.doob 已提交
3
  "version": "0.120.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
      "@typescript-eslint/no-unused-vars": 1,
      "@typescript-eslint/indent": [
        "error",
        "tab",
        {
          "SwitchCase": 1
        }
R
Rawr 已提交
44
      ],
R
Rawr 已提交
45 46 47 48 49 50 51
      "prefer-const": [
        "error",
        {
          "destructuring": "any",
          "ignoreReadBeforeAssign": false
        }
      ]
52
    }
53
  },
B
Ben Ripkens 已提交
54
  "scripts": {
55
    "start": "npm run dev",
M
Mugen87 已提交
56
    "test": "npm run test-lint && npm run test-unit",
G
gero3 已提交
57
    "build": "rollup -c utils/build/rollup.config.js",
R
Rawr 已提交
58
    "build-closure": "npm run build && 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",
M
munrocket@pm.me 已提交
59
    "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 已提交
60
    "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 已提交
61
    "lint-fix": "eslint src --ext js --ext ts --fix && eslint examples/js/ --ext js --ext ts --ignore-pattern libs --fix",
M
munrocket@pm.me 已提交
62 63
    "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",
64
    "test-lint": "eslint src --ext js --ext ts && tsc -p utils/build/tsconfig.lint.json",
65
    "test-unit": "npm run unit --prefix test",
M
munrocket@pm.me 已提交
66
    "test-e2e": "node test/e2e/puppeteer.js",
M
munrocket@pm.me 已提交
67
    "test-e2e-cov": "node test/e2e/check-coverage.js",
M
munrocket@pm.me 已提交
68
    "make-screenshot": "node test/e2e/puppeteer.js --make"
B
Ben Ripkens 已提交
69 70 71 72
  },
  "keywords": [
    "three",
    "three.js",
L
linbingquan 已提交
73
    "javascript",
B
Ben Ripkens 已提交
74
    "3d",
L
linbingquan 已提交
75 76 77 78 79 80
    "virtual-reality",
    "augmented-reality",
    "webgl",
    "webgl2",
    "webaudio",
    "webxr",
M
Mr.doob 已提交
81 82
    "canvas",
    "svg",
L
linbingquan 已提交
83
    "html5"
B
Ben Ripkens 已提交
84 85 86 87 88 89
  ],
  "author": "mrdoob",
  "license": "MIT",
  "bugs": {
    "url": "https://github.com/mrdoob/three.js/issues"
  },
M
Mugen87 已提交
90
  "homepage": "https://threejs.org/",
G
gero3 已提交
91
  "devDependencies": {
L
linbingquan 已提交
92 93 94 95
    "@typescript-eslint/eslint-plugin": "^3.9.0",
    "@typescript-eslint/parser": "^3.9.0",
    "concurrently": "^5.3.0",
    "eslint": "^7.6.0",
M
Mugen87 已提交
96
    "eslint-config-mdcs": "^5.0.0",
L
linbingquan 已提交
97 98
    "eslint-plugin-html": "^6.0.3",
    "google-closure-compiler": "20200719.0.0",
M
Mr.doob 已提交
99
    "http-server": "^0.12.3",
L
linbingquan 已提交
100
    "rollup": "^2.23.1",
M
Mr.doob 已提交
101
    "rollup-plugin-buble": "^0.19.8",
L
linbingquan 已提交
102
    "typescript": "^3.9.7"
103 104 105 106 107 108 109 110 111 112
  },
  "jspm": {
    "files": [
      "package.json",
      "LICENSE",
      "README.md",
      "build/three.js",
      "build/three.min.js",
      "build/three.module.js"
    ],
L
Lewy Blue 已提交
113
    "directories": {}
A
Abel Allison 已提交
114
  }
B
Ben Ripkens 已提交
115
}