UNPKG

create-puzzle

Version:

在浏览器端生成滑块验证码的拼图和背景图。

99 lines (98 loc) 2.8 kB
{ "name": "create-puzzle", "version": "3.0.3", "description": "在浏览器端生成滑块验证码的拼图和背景图。", "scripts": { "start": "dumi dev", "test": "jest", "build": "rm -rf dist && rollup --config rollup.config.ts --configPlugin typescript && npm run build:types", "build:types": "rm -rf types && tsc -p tsconfig.types.json", "docs:build": "dumi build", "prettier": "prettier --write \"**/*.{js,jsx,tsx,ts,less,md,json}\"", "lint:js": "eslint --ext .js,.jsx,.ts,.tsx src", "lint-fix:js": "npm run lint:js -- --fix", "prepublishOnly": "npm test && npm run build", "tsc": "tsc --noEmit", "prepare": "husky && dumi setup" }, "files": [ "dist", "types" ], "main": "dist/createPuzzle.cjs.js", "module": "dist/createPuzzle.esm.js", "unpkg": "dist/createPuzzle.min.js", "types": "types/index.d.ts", "config": { "commitizen": { "path": "./node_modules/cz-conventional-changelog" } }, "lint-staged": { "*.{js,jsx,less,md,json}": [ "prettier --write" ], "*.ts?(x)": [ "prettier --parser=typescript --write" ], "**/*.{js,jsx,ts,tsx}": "eslint" }, "repository": { "type": "git", "url": "git+https://github.com/caijf/create-puzzle.git" }, "keywords": [ "puzzle", "slider-captcha", "slider", "captcha", "jigsaw" ], "author": "caijf", "license": "MIT", "bugs": { "url": "https://github.com/caijf/create-puzzle/issues" }, "homepage": "https://github.com/caijf/create-puzzle#readme", "devDependencies": { "@commitlint/cli": "^19.8.0", "@commitlint/config-conventional": "^19.8.0", "@commitlint/cz-commitlint": "^19.8.0", "@rollup/plugin-commonjs": "^25.0.8", "@rollup/plugin-node-resolve": "^15.3.1", "@rollup/plugin-terser": "^0.4.4", "@rollup/plugin-typescript": "^11.1.6", "@testing-library/jest-dom": "^6.6.3", "@testing-library/react": "^14.3.1", "@types/jest": "^29.5.14", "@types/react": "^18.3.18", "@typescript-eslint/eslint-plugin": "^7.18.0", "@typescript-eslint/parser": "^7.18.0", "@umijs/fabric": "^2.14.1", "antd": "^5.24.4", "antd-more": "^4.5.4", "commitizen": "^4.3.1", "dumi": "^2.4.18", "eslint": "^8.57.1", "husky": "^9.1.7", "inquirer": "^9.3.7", "jest": "^29.7.0", "jest-canvas-mock": "^2.5.2", "jest-environment-jsdom": "^29.7.0", "lint-staged": "^15.5.0", "prettier": "^3.5.3", "react": "^18.3.1", "react-dom": "^18.3.1", "rollup": "^4.36.0", "ts-jest": "^29.2.6", "tslib": "^2.8.1", "typescript": "^5.8.2" }, "dependencies": { "ut2": "^1.17.0", "util-helpers": "^5.7.0" }, "publishConfig": { "registry": "https://registry.npmjs.org/" } }