UNPKG

3.36 kBJSONView Raw
1{
2 "name": "@livelybone/scroll-get",
3 "version": "6.2.1",
4 "description": "Some useful tool of browser scroll, such as tool for calculating position relative to page/client, tool for getting the native scrollbar width...",
5 "main": "./lib/umd/index.js",
6 "module": "./lib/es/index.js",
7 "unpkg": "./lib/umd/index.js",
8 "types": "./index.d.ts",
9 "scripts": {
10 "build:js": "cross-env NODE_ENV=production rollup -c",
11 "build:dts": "cross-env NODE_ENV=production BUILD_ENV=dts rollup -c",
12 "dev": "rimraf ./lib && cross-env BUILD_ENV=watch node watch.js",
13 "build": "rimraf ./lib && npm run build:js && npm run build:dts",
14 "build:test": "rimraf ./test-lib && cross-env NODE_ENV=test rollup -c rollup.config.test.js --sourcemap",
15 "eslint": "eslint ./ --ext .ts,.js --fix",
16 "test": "npm run build:test && cross-env NODE_ENV=test istanbul cover node_modules/mocha/bin/_mocha -- ./test",
17 "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s -r 0",
18 "commit": "git-cz",
19 "release": "npm run build && npm run eslint && npm publish --registry=https://registry.npmjs.org",
20 "release:alpha": "npm run build && npm run eslint && npm publish --tag alpha --registry=https://registry.npmjs.org"
21 },
22 "repository": {
23 "type": "git",
24 "url": "https://github.com/livelybone/scroll-get.git"
25 },
26 "keywords": [
27 "clientLeft",
28 "clientTop",
29 "pageLeft",
30 "pageTop",
31 "scrollbar width",
32 "scrollbar info"
33 ],
34 "author": "2631541504@qq.com",
35 "license": "MIT",
36 "bugs": {
37 "url": "https://github.com/livelybone/scroll-get/issues"
38 },
39 "homepage": "https://github.com/livelybone/scroll-get#readme",
40 "devDependencies": {
41 "@babel/core": "^7.5.0",
42 "@babel/plugin-proposal-class-properties": "^7.5.5",
43 "@babel/plugin-transform-runtime": "^7.5.0",
44 "@babel/preset-env": "^7.5.0",
45 "@babel/preset-typescript": "^7.3.3",
46 "@babel/runtime": "^7.5.1",
47 "@livelybone/singleton": "^1.1.1",
48 "@typescript-eslint/eslint-plugin": "^1.12.0",
49 "@typescript-eslint/parser": "^1.11.0",
50 "babel-plugin-istanbul": "^5.1.4",
51 "chai": "^4.2.0",
52 "chalk": "^2.4.2",
53 "chokidar": "^3.0.2",
54 "commitizen": "^3.0.7",
55 "conventional-changelog-cli": "^2.0.12",
56 "cross-env": "^5.2.0",
57 "cross-spawn": "^6.0.5",
58 "cz-conventional-changelog": "^2.1.0",
59 "eslint": "^5.3.0",
60 "eslint-config-airbnb-base": "^13.0.0",
61 "eslint-config-prettier": "^6.0.0",
62 "eslint-plugin-import": "^2.16.0",
63 "eslint-plugin-prettier": "^3.1.0",
64 "express": "^4.17.1",
65 "husky": "^3.0.0",
66 "istanbul": "^1.1.0-alpha.1",
67 "lint-staged": "^9.1.0",
68 "mocha": "^5.2.0",
69 "prettier": "^1.18.2",
70 "rollup": "1.7.0",
71 "rollup-plugin-babel": "^4.3.3",
72 "rollup-plugin-commonjs": "^9.2.1",
73 "rollup-plugin-dts": "1.1.5",
74 "rollup-plugin-license": "^0.8.1",
75 "rollup-plugin-node-resolve": "^4.0.1",
76 "rollup-plugin-uglify": "^6.0.2",
77 "typescript": "^3.5.2"
78 },
79 "config": {
80 "commitizen": {
81 "path": "./node_modules/cz-conventional-changelog"
82 }
83 },
84 "husky": {
85 "hooks": {
86 "pre-commit": "lint-staged"
87 }
88 },
89 "lint-staged": {
90 "**/*.{js,ts}": [
91 "eslint --fix",
92 "git update-index --again"
93 ],
94 "**/*.scss": [
95 "prettier --write",
96 "git update-index --again"
97 ]
98 }
99}