UNPKG

image-sketchpad

Version:

Draw on images within desktop and mobile browsers.

152 lines (151 loc) 6.34 kB
{ "name": "image-sketchpad", "version": "1.1.0", "description": "Draw on images within desktop and mobile browsers.", "keywords": [ "image", "sketchpad", "responsive", "desktop", "mobile", "mark", "canvas", "html5", "draw" ], "homepage": "https://github.com/CSoellinger/image-sketchpad", "bugs": "https://github.com/CSoellinger/image-sketchpad/issues", "repository": { "type": "git", "url": "https://github.com/CSoellinger/image-sketchpad.git" }, "license": "MIT", "author": { "name": "CSoellinger", "email": "christopher.soellinger@gmail.com", "url": "https://github.com/CSoellinger" }, "contributors": [ { "name": "CSoellinger", "email": "christopher.soellinger@gmail.com", "url": "https://github.com/CSoellinger" } ], "main": "dist/image-sketchpad.cjs.js", "module": "dist/image-sketchpad.esm.js", "browser": "dist/image-sketchpad.js", "types": "types/index.d.ts", "files": [ "dist", "types" ], "scripts": { "prebuild": "concurrently --kill-others-on-fail 'npm:lint' 'npm:clean:build' 'npm:clean:dist' 'npm:clean:types'", "build": "concurrently --kill-others-on-fail 'npm:build:esnext' 'npm:build:js'", "build:all": "concurrently --kill-others-on-fail 'npm:build' 'npm:build:docs'", "prebuild:docs": "concurrently --kill-others-on-fail 'npm:lint' 'npm:clean:docs'", "build:docs": "concurrently --kill-others-on-fail 'npm:build:docs:html' 'npm:build:docs:md'", "build:docs:copy-demo": "concurrently --kill-others-on-fail 'cpy ./dist/index.html ./docs/. --rename=demo.html' 'cpy ./dist/image-sketchpad.min.js ./docs/assets/.'", "postbuild:docs:copy-demo": "replace-in-files --string 'image-sketchpad.min.js' --replacement 'assets/image-sketchpad.min.js' ./docs/demo.html && replace-in-files --string '../media/' --replacement 'media/' ./docs/demo.html", "build:docs:html": "typedoc && npm run build:docs:copy-demo", "prebuild:docs:md": "eliminate ./docs/index.md", "build:docs:md": "typedoc --entryDocument 'index.md' --namedAnchors --plugin typedoc-plugin-missing-exports --plugin typedoc-plugin-rename-defaults --plugin typedoc-plugin-markdown", "postbuild:docs:md": "eliminate ./docs/index.md && cpy ./docs/modules.md ./docs/. --rename=index.md", "build:esnext": "tsc", "build:js": "rollup -c", "build:types": "tsc --emitDeclarationOnly", "clean": "concurrently --kill-others-on-fail 'npm:clean:build' 'npm:clean:dist' 'npm:clean:docs' 'npm:clean:types'", "clean:build": "eliminate ./build", "clean:dist": "eliminate ./dist", "clean:docs": "eliminate ./docs", "clean:types": "eliminate ./types", "lint": "eslint --ext '.js,.ts' .", "lint:fix": "npm run lint -- --fix", "prepare": "husky install", "prepublishOnly": "concurrently --kill-others-on-fail 'npm:lint' 'npm:test'", "start": "concurrently --kill-others-on-fail 'npm:watch' 'serve --no-port-switching .'", "test": "npm run test:unit", "test:unit": "jest --config=./test/unit/jest.config.js", "test:unit:watch": "npm run test:unit -- --watchAll", "type-check": "tsc --noEmit", "prewatch": "npm run clean", "watch": "concurrently --kill-others-on-fail 'tsc -w' 'rollup -c -w'", "watch:docs": "typedoc --watch", "watch:type-check": "npm run type-check -- --watch" }, "lint-staged": { "package.json": "npx sort-package-json", "*.{ts,tsx}": [ "npm run lint:fix", "npm run test:unit -- --findRelatedTests" ] }, "dependencies": { "downloadjs": "^1.4.7", "draw-to-canvas": "^1.0.0", "merge-images": "^2.0.0", "pica": "^9.0.1" }, "devDependencies": { "@babel/core": "^7.17.5", "@babel/node": "^7.16.8", "@babel/plugin-proposal-class-properties": "^7.16.7", "@babel/plugin-transform-runtime": "^7.17.0", "@babel/preset-env": "^7.16.11", "@babel/preset-typescript": "^7.16.7", "@rollup/plugin-babel": "^5.3.1", "@rollup/plugin-commonjs": "^21.0.2", "@rollup/plugin-html": "^0.2.4", "@rollup/plugin-node-resolve": "^13.1.3", "@rollup/plugin-replace": "^4.0.0", "@rollup/plugin-strip": "^2.1.0", "@types/downloadjs": "^1.4.3", "@types/jest": "^27.4.1", "@types/jest-image-snapshot": "^4.3.1", "@types/merge-images": "^1.2.1", "@types/pica": "^9.0.0", "@typescript-eslint/eslint-plugin": "^5.13.0", "@typescript-eslint/parser": "^5.13.0", "canvas": "^2.9.0", "concurrently": "^7.0.0", "cpy-cli": "^4.0.0", "eliminate": "^1.1.2", "eslint": "^8.10.0", "eslint-config-prettier": "8.4.0", "eslint-plugin-array-func": "^3.1.7", "eslint-plugin-editorconfig": "^3.2.0", "eslint-plugin-eslint-comments": "^3.2.0", "eslint-plugin-import": "^2.25.4", "eslint-plugin-jest": "^26.1.1", "eslint-plugin-jest-formatting": "^3.1.0", "eslint-plugin-jsdoc": "^37.9.5", "eslint-plugin-prettier": "4.0.0", "eslint-plugin-regexp": "^1.5.1", "eslint-plugin-tsdoc": "^0.2.14", "husky": "^7.0.4", "jest": "^27.5.1", "jest-canvas-mock": "^2.3.1", "jest-html-reporter": "^3.4.2", "jest-image-snapshot": "^4.5.1", "prettier": "^2.5.1", "prettier-plugin-packagejson": "^2.2.15", "remark-prettier": "^1.3.0", "replace-in-files-cli": "^2.0.0", "rollup": "^2.68.0", "rollup-plugin-terser": "^7.0.2", "serve": "^13.0.2", "ts-jest": "^27.1.3", "tslib": "^2.3.1", "typedoc": "^0.22.12", "typedoc-plugin-markdown": "^3.11.14", "typedoc-plugin-missing-exports": "^0.22.6", "typedoc-plugin-rename-defaults": "^0.4.0", "typescript": "^4.5.5" }, "publishConfig": { "access": "public" }, "esnext": "dist/esnext/index.js", "readme": "README.md" }