1 | {
|
2 | "name": "create-puzzle",
|
3 | "version": "2.0.3",
|
4 | "description": "在浏览器端生成滑块验证码的拼图和背景图。",
|
5 | "scripts": {
|
6 | "start": "dumi dev",
|
7 | "test": "jest",
|
8 | "build": "rm -rf dist && npm run build:module && npm run build:umd && npm run build:types",
|
9 | "build:module": "rollup --config rollup.config.ts --configPlugin @rollup/plugin-typescript",
|
10 | "build:umd": "rollup --config rollup.umd.config.ts --configPlugin @rollup/plugin-typescript",
|
11 | "build:types": "rm -rf types && tsc -p tsconfig.types.json",
|
12 | "docs:build": "dumi build",
|
13 | "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"",
|
14 | "lint:js": "eslint --ext .js,.jsx,.ts,.tsx src",
|
15 | "lint-fix:js": "npm run lint:js -- --fix",
|
16 | "prepublishOnly": "npm test && npm run build",
|
17 | "tsc": "tsc --noEmit",
|
18 | "prepare": "husky"
|
19 | },
|
20 | "files": [
|
21 | "dist",
|
22 | "types"
|
23 | ],
|
24 | "main": "dist/createPuzzle.cjs.js",
|
25 | "module": "dist/createPuzzle.esm.js",
|
26 | "unpkg": "dist/createPuzzle.min.js",
|
27 | "types": "types/index.d.ts",
|
28 | "config": {
|
29 | "commitizen": {
|
30 | "path": "./node_modules/cz-conventional-changelog"
|
31 | }
|
32 | },
|
33 | "lint-staged": {
|
34 | "*.{js,jsx,less,md,json}": [
|
35 | "prettier --write"
|
36 | ],
|
37 | "*.ts?(x)": [
|
38 | "prettier --parser=typescript --write"
|
39 | ],
|
40 | "**/*.{js,jsx,ts,tsx}": "eslint"
|
41 | },
|
42 | "repository": {
|
43 | "type": "git",
|
44 | "url": "git+https://github.com/caijf/create-puzzle.git"
|
45 | },
|
46 | "keywords": [
|
47 | "puzzle",
|
48 | "slider-captcha",
|
49 | "slider",
|
50 | "captcha",
|
51 | "jigsaw"
|
52 | ],
|
53 | "author": "caijf",
|
54 | "license": "MIT",
|
55 | "bugs": {
|
56 | "url": "https://github.com/caijf/create-puzzle/issues"
|
57 | },
|
58 | "homepage": "https://github.com/caijf/create-puzzle#readme",
|
59 | "devDependencies": {
|
60 | "@commitlint/cli": "^19.3.0",
|
61 | "@commitlint/config-conventional": "^19.2.2",
|
62 | "@commitlint/cz-commitlint": "^19.2.0",
|
63 | "@rollup/plugin-commonjs": "^25.0.8",
|
64 | "@rollup/plugin-node-resolve": "^15.2.3",
|
65 | "@rollup/plugin-terser": "^0.4.4",
|
66 | "@rollup/plugin-typescript": "^11.1.6",
|
67 | "@testing-library/jest-dom": "^6.4.6",
|
68 | "@testing-library/react": "^14.3.1",
|
69 | "@types/jest": "^29.5.12",
|
70 | "@types/react": "^18.3.3",
|
71 | "@typescript-eslint/eslint-plugin": "^7.13.0",
|
72 | "@typescript-eslint/parser": "^7.13.0",
|
73 | "@umijs/fabric": "^2.14.1",
|
74 | "antd": "^5.18.1",
|
75 | "antd-more": "^4.2.29",
|
76 | "commitizen": "^4.3.0",
|
77 | "dumi": "^1.1.54",
|
78 | "element-remove": "^1.0.4",
|
79 | "eslint": "^8.57.0",
|
80 | "husky": "^9.0.11",
|
81 | "inquirer": "^9.2.23",
|
82 | "jest": "^29.7.0",
|
83 | "jest-canvas-mock": "^2.5.2",
|
84 | "jest-environment-jsdom": "^29.7.0",
|
85 | "lint-staged": "^15.2.7",
|
86 | "prettier": "^3.3.2",
|
87 | "react": "^18.3.1",
|
88 | "react-dom": "^18.3.1",
|
89 | "rollup": "^4.18.0",
|
90 | "ts-jest": "^29.1.4",
|
91 | "tslib": "^2.6.3",
|
92 | "typescript": "^5.4.5",
|
93 | "ut2": "^1.9.1"
|
94 | },
|
95 | "dependencies": {
|
96 | "util-helpers": "^4.23.1"
|
97 | },
|
98 | "publishConfig": {
|
99 | "registry": "https://registry.npmjs.org/"
|
100 | }
|
101 | }
|