-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
93 lines (93 loc) · 2.6 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
{
"name": "@xg4/in-viewport",
"version": "0.0.2",
"description": "Get callback when a DOM element enters or leaves the viewport.",
"keywords": [
"DOM",
"element",
"intersection",
"intersection-observer",
"observer",
"viewport"
],
"homepage": "https://github.com/xg4/in-viewport#readme",
"bugs": {
"url": "https://github.com/xg4/in-viewport/issues"
},
"repository": {
"type": "git",
"url": "git+https://github.com/xg4/in-viewport.git"
},
"license": "MIT",
"author": "xg4 <xingor4@gmail.com>",
"files": [
"dist"
],
"main": "dist/index.cjs.js",
"module": "dist/index.esm.js",
"browser": "dist/index.umd.js",
"types": "dist/types/index.d.ts",
"typings": "dist/types/index.d.ts",
"scripts": {
"prebuild": "npm run clean",
"build": "npm run build:types && npm run build:js",
"build:js": "rollup -c",
"build:types": "tsc --emitDeclarationOnly",
"clean": "rimraf dist",
"lint": "eslint src/**/* --fix",
"prepublishOnly": "npm run build",
"postpublish": "git push && git push --tags",
"release:major": "npm version major -m \"build: release v%s\" ",
"release:minor": "npm version minor -m \"build: release v%s\" ",
"release:patch": "npm version patch -m \"build: release v%s\" ",
"start": "rollup -c -w",
"type-check": "tsc --noEmit",
"type-check:watch": "npm run type-check -- --watch",
"preversion": "npm run lint",
"postversion": "npm publish"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,jsx,ts,tsx}": [
"prettier --write",
"eslint --fix",
"git add"
],
"*.{json,md,yml}": [
"prettier --write",
"git add"
]
},
"dependencies": {
"intersection-observer": "^0.7.0"
},
"devDependencies": {
"@babel/core": "^7.6.4",
"@babel/preset-env": "^7.6.3",
"@babel/preset-typescript": "^7.6.0",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.4.0",
"eslint-config-standard": "^14.1.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-node": "^10.0.0",
"eslint-plugin-prettier": "^3.1.1",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.1",
"husky": "^3.0.9",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"rollup": "^1.25.0",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-commonjs": "^10.1.0",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.2",
"typescript": "^3.6.4"
}
}