forked from ZeeCoder/use-resize-observer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.json
More file actions
79 lines (79 loc) · 2.57 KB
/
Copy pathpackage.json
File metadata and controls
79 lines (79 loc) · 2.57 KB
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
{
"name": "use-motion-resize-observer",
"version": "2.0.0",
"main": "dist/bundle.cjs.js",
"module": "dist/bundle.esm.js",
"types": "dist/index.d.ts",
"sideEffects": false,
"repository": "git@github.com:steveruizok/use-motion-resize-observer.git",
"description": "A React hook that allows you to use a ResizeObserver to measure an element's size (using Motion Values).",
"author": "Steve Ruiz <steveruizok@gmail.com>",
"license": "MIT",
"scripts": {
"build": "rollup -c && tsc && cp dist/index.d.ts polyfilled.d.ts",
"watch": "KARMA_BROWSERS=Chrome run-p 'src:watch' 'karma:watch'",
"src:watch": "rollup -c -w",
"check:size": "size-limit",
"check:types": "tsc -p tests",
"test": "run-s 'build' 'check:size' 'check:types' 'test:create:ssr' 'test:headless:*'",
"test:create:ssr": "node ./tests/ssr/create-ssr-test.js",
"test:chrome": "KARMA_BROWSERS=Chrome yarn karma:run",
"test:headless:chrome": "KARMA_BROWSERS=ChromeHeadless yarn karma:run",
"test:firefox": "KARMA_BROWSERS=Firefox yarn karma:run",
"test:headless:firefox": "KARMA_BROWSERS=FirefoxHeadless yarn karma:run",
"karma:run": "karma start --singleRun",
"karma:watch": "karma start",
"prepublish": "yarn build"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.{js,ts,md}": [
"prettier --write"
]
},
"peerDependencies": {
"react": ">=16.8.0",
"react-dom": ">=16.8.0"
},
"devDependencies": {
"@babel/core": "^7.7.7",
"@babel/plugin-transform-runtime": "^7.9.0",
"@babel/preset-env": "^7.7.7",
"@babel/preset-react": "^7.9.4",
"@babel/preset-typescript": "^7.9.0",
"@rollup/plugin-inject": "^4.0.1",
"@size-limit/preset-small-lib": "^4.4.5",
"@testing-library/react": "^10.0.2",
"@types/karma": "^5.0.0",
"@types/karma-jasmine": "^3.1.0",
"@types/react": "^16.9.34",
"@types/react-dom": "^16.9.6",
"babel-loader": "^8.1.0",
"delay": "^4.1.0",
"husky": "^4.2.5",
"karma": "^5.0.1",
"karma-chrome-launcher": "^3.0.0",
"karma-firefox-launcher": "^1.3.0",
"karma-jasmine": "^3.1.1",
"karma-sourcemap-loader": "^0.3.7",
"karma-spec-reporter": "^0.0.32",
"karma-webpack": "^4.0.2",
"lint-staged": "^10.1.3",
"npm-run-all": "^4.1.5",
"prettier": "^2.0.4",
"react": "^16.9.0",
"react-dom": "^16.9.0",
"rollup": "^2.6.1",
"rollup-plugin-babel": "^4.4.0",
"size-limit": "^4.4.5",
"typescript": "^3.8.3"
},
"dependencies": {
"framer-motion": "^3.1.1",
"resize-observer-polyfill": "^1.5.1"
}
}