MasatoMakino/threejs-drag-watcher

View on GitHub
package.json

Summary

Maintainability
Test Coverage
{
  "name": "@masatomakino/threejs-drag-watcher",
  "version": "0.12.0",
  "type": "module",
  "exports": {
    ".": {
      "import": {
        "types": "./esm/index.d.ts",
        "default": "./esm/index.js"
      },
      "default": {
        "types": "./esm/index.d.ts",
        "default": "./esm/index.js"
      }
    }
  },
  "types": "./esm/index.d.ts",
  "files": [
    "esm"
  ],
  "repository": {
    "type": "git",
    "url": "git+https://MasatoMakino@github.com/MasatoMakino/threejs-drag-watcher.git"
  },
  "author": "MasatoMakino <unagiinu.g@gmail.com>",
  "license": "MIT",
  "keywords": [
    "threejs"
  ],
  "peerDependencies": {
    "@masatomakino/raf-ticker": "0.5.3 - 0.6.x",
    "three": ">=0.126.0 <1.0.0"
  },
  "dependencies": {
    "eventemitter3": "^5.0.1"
  },
  "devDependencies": {
    "@masatomakino/fake-mouse-event": "^0.1.0",
    "@masatomakino/gulptask-demo-page": "^0.8.0",
    "@types/three": "^0.165.0",
    "@vitest/coverage-istanbul": "^1.6.0",
    "browser-sync": "^3.0.2",
    "husky": "^9.0.10",
    "jsdom": "^24.0.0",
    "lint-staged": "^15.0.2",
    "prettier": "^3.0.1",
    "three": "^0.165.0",
    "typedoc": "^0.25.2",
    "typescript": "^5.1.3"
  },
  "scripts": {
    "test": "vitest --run",
    "coverage": "vitest --run --coverage",
    "test:watch": "vitest",
    "prepare": "husky",
    "preversion": "git checkout main && git pull && npm ci && npm run test",
    "postversion": "git add package.json package-lock.json && git checkout -b version/$(git describe --tags --abbrev=0)",
    "start:dev": "npm run server & npm run watch:tsc & npm run watch:demo",
    "build": "npm run buildTS && npm run demo && npm run typedocs",
    "demo": "npx @masatomakino/gulptask-demo-page --body '<canvas id=\"webgl-canvas\" width=\"1280\" height=\"640\"></canvas>'  --compileModule es2020",
    "buildTS": "tsc",
    "typedocs": "npx typedoc --out ./docs/api src/index.ts",
    "server": "browser-sync ./docs/demo -w",
    "watch:demo": "npm run demo -- -W",
    "watch:tsc": "tsc -W --incremental"
  },
  "description": "Mouse drag watcher for three.js",
  "bugs": {
    "url": "https://github.com/MasatoMakino/threejs-drag-watcher/issues"
  },
  "homepage": "https://github.com/MasatoMakino/threejs-drag-watcher#readme",
  "directories": {
    "doc": "docs",
    "lib": "esm"
  },
  "lint-staged": {
    "*.{js,ts,css,md}": "prettier --write"
  }
}