1 | {
|
2 | "name": "signature_pad",
|
3 | "description": "Library for drawing smooth signatures.",
|
4 | "version": "4.0.0",
|
5 | "homepage": "https://github.com/szimek/signature_pad",
|
6 | "author": {
|
7 | "name": "Szymon Nowak",
|
8 | "email": "szimek@gmail.com",
|
9 | "url": "https://github.com/szimek"
|
10 | },
|
11 | "license": "MIT",
|
12 | "source": "src/signature_pad.ts",
|
13 | "main": "dist/signature_pad.umd.js",
|
14 | "module": "dist/signature_pad.js",
|
15 | "types": "dist/types/signature_pad.d.ts",
|
16 | "scripts": {
|
17 | "build": "yarn run lint && yarn run clean && rollup --config && yarn run emit-types && yarn run update-docs",
|
18 | "clean": "yarn run del dist",
|
19 | "emit-types": "yarn run del dist/types && yarn run tsc src/signature_pad.ts --lib DOM,ES2015 --declaration --declarationDir dist/types --emitDeclarationOnly",
|
20 | "format": "prettier --write {src,tests}/**/*.{js,ts}",
|
21 | "lint": "eslint {src,tests}/**/*.ts",
|
22 | "prepublishOnly": "yarn run build",
|
23 | "serve": "serve -l 9000 docs",
|
24 | "start": "yarn run build && yarn run serve",
|
25 | "test": "jest --coverage",
|
26 | "update-docs": "yarn run cp-cli dist/signature_pad.umd.js docs/js/signature_pad.umd.js",
|
27 | "prepare": "husky install"
|
28 | },
|
29 | "repository": {
|
30 | "type": "git",
|
31 | "url": "https://github.com/szimek/signature_pad.git"
|
32 | },
|
33 | "files": [
|
34 | "src",
|
35 | "dist",
|
36 | "docs"
|
37 | ],
|
38 | "devDependencies": {
|
39 | "@rollup/plugin-typescript": "^8.3.0",
|
40 | "@types/jest": "^27.0.3",
|
41 | "@types/node": "^16.11.9",
|
42 | "@typescript-eslint/eslint-plugin": "^5.4.0",
|
43 | "@typescript-eslint/parser": "^5.4.0",
|
44 | "canvas": "^2.8.0",
|
45 | "cp-cli": "^2.0.0",
|
46 | "del": "^6.0.0",
|
47 | "del-cli": "^4.0.1",
|
48 | "eslint": "^8.3.0",
|
49 | "eslint-config-prettier": "^8.3.0",
|
50 | "husky": "^7.0.4",
|
51 | "jest": "^27.3.1",
|
52 | "lint-staged": "^12.1.2",
|
53 | "prettier": "^2.4.1",
|
54 | "rollup": "^2.60.1",
|
55 | "rollup-plugin-terser": "^7.0.2",
|
56 | "serve": "^13.0.2",
|
57 | "ts-jest": "^27.0.7",
|
58 | "tslib": "^2.3.1",
|
59 | "typescript": "^4.5.2"
|
60 | },
|
61 | "lint-staged": {
|
62 | "*.ts": "prettier --write"
|
63 | },
|
64 | "jest": {
|
65 | "moduleFileExtensions": [
|
66 | "ts",
|
67 | "js"
|
68 | ],
|
69 | "testEnvironment": "jsdom",
|
70 | "testEnvironmentOptions": {
|
71 | "resources": "usable"
|
72 | },
|
73 | "testMatch": [
|
74 | "<rootDir>/tests/**/*.test.ts"
|
75 | ],
|
76 | "testURL": "http://localhost:3000/",
|
77 | "transform": {
|
78 | "^.+\\.tsx?$": "ts-jest"
|
79 | }
|
80 | }
|
81 | }
|