forked from hustcc/size-sensor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpackage.json
65 lines (65 loc) · 1.74 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
{
"name": "size-sensor",
"version": "1.0.1",
"description": "DOM element size sensor which will callback when size changed.",
"main": "lib/index.js",
"types": "index.d.ts",
"scripts": {
"debug": "cross-env NODE_ENV=babel cross-env DEBUG_MODE=1 jest",
"test": "cross-env NODE_ENV=babel jest",
"build:umd": "rimraf ./dist && cross-env NODE_ENV=rollup rollup -c",
"build:lib": "rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib",
"build": "npm run build:umd && npm run build:lib && limit-size"
},
"limit-size": [
{
"limit": "1 KB",
"path": "dist/size-sensor.min.js",
"gzip": true
}
],
"repository": {
"type": "git",
"url": "git+https://github.com/hustcc/size-sensor.git"
},
"keywords": [
"resize",
"size",
"sensor",
"size-detector",
"element"
],
"devDependencies": {
"@babel/cli": "^7.6.0",
"@babel/core": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"babel-jest": "^24.9.0",
"babel-plugin-version": "^0.2.1",
"cross-env": "^5.1.3",
"jest": "^24.9.0",
"jest-electron": "^0.1.6",
"limit-size": "^0.1.2",
"rimraf": "^2.6.2",
"rollup": "^1.21.4",
"rollup-plugin-babel": "^4.3.3",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-uglify": "^6.0.3"
},
"jest": {
"runner": "jest-electron/runner",
"testEnvironment": "jest-electron/environment",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js,jsx}",
"!**/node_modules/**",
"!**/vendor/**"
],
"testRegex": "/__tests__/.*\\.spec\\.jsx?$"
},
"author": "hustcc",
"license": "ISC",
"bugs": {
"url": "https://github.com/hustcc/size-sensor/issues"
},
"homepage": "https://git.hust.cc/size-sensor"
}