create-puzzle
Version:
在浏览器端生成滑块验证码的拼图和背景图。
101 lines (100 loc) • 2.84 kB
JSON
{
"name": "create-puzzle",
"version": "3.0.4",
"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": "eslint .",
"lint:fix": "npm run lint -- --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",
"browser": "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.1",
"@commitlint/config-conventional": "^19.8.1",
"@commitlint/cz-commitlint": "^19.8.1",
"@eslint/js": "^9.32.0",
"@rollup/plugin-commonjs": "^28.0.6",
"@rollup/plugin-node-resolve": "^16.0.1",
"@rollup/plugin-terser": "^0.4.4",
"@rollup/plugin-typescript": "^12.1.4",
"@testing-library/jest-dom": "^6.6.4",
"@testing-library/react": "^16.3.0",
"@types/jest": "^30.0.0",
"@types/react": "^18.3.23",
"@typescript-eslint/eslint-plugin": "^7.18.0",
"@typescript-eslint/parser": "^7.18.0",
"antd": "^5.26.6",
"antd-more": "^4.6.15",
"commitizen": "^4.3.1",
"dumi": "^2.4.21",
"eslint": "^9.32.0",
"globals": "^16.3.0",
"husky": "^9.1.7",
"jest": "^30.0.5",
"jest-canvas-mock": "^2.5.2",
"jest-environment-jsdom": "^30.0.5",
"lint-staged": "^15.5.2",
"prettier": "^3.6.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"rollup": "^4.46.0",
"ts-jest": "^29.4.0",
"tslib": "^2.8.1",
"typescript": "^5.8.3",
"typescript-eslint": "^8.38.0"
},
"dependencies": {
"ut2": "^1.20.1",
"util-helpers": "^5.7.4"
},
"publishConfig": {
"registry": "https://registry.npmjs.org/"
}
}