-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathpackage.json
More file actions
78 lines (78 loc) · 2.72 KB
/
package.json
File metadata and controls
78 lines (78 loc) · 2.72 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
{
"name": "preact-scroll-viewport",
"amdName": "ScrollViewport",
"version": "0.2.0",
"description": "Only renders items visible in the current viewport.",
"main": "dist/preact-scroll-viewport.js",
"minified:main": "dist/preact-scroll-viewport.min.js",
"jsnext:main": "src/index.js",
"scripts": {
"build": "npm-run-all transpile optimize minify",
"transpile": "rollup -c rollup.config.js -m ${npm_package_main}.map -f umd -n $npm_package_amdName $npm_package_jsnext_main -o $npm_package_main",
"optimize": "uglifyjs $npm_package_main -bc dead_code --pure-funcs _possibleConstructorReturn _classCallCheck -o $npm_package_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_main}.map",
"minify": "uglifyjs $npm_package_main -mc collapse_vars,evaluate,screw_ie8,unsafe,loops=false,keep_fargs=false,pure_getters,unused,dead_code --pure-funcs _possibleConstructorReturn _classCallCheck -o $npm_package_minified_main -p relative --in-source-map ${npm_package_main}.map --source-map ${npm_package_minified_main}.map",
"test": "eslint {src,test} && mocha --compilers js:babel-register test/**/*.js",
"prepublish": "npm run build",
"release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish"
},
"babel": {
"presets": [
"es2015",
"stage-0"
],
"plugins": [
"transform-class-properties",
[
"transform-react-jsx",
{
"pragma": "h"
}
]
]
},
"keywords": [
"preact",
"virtual",
"viewport",
"virtualized",
"scroll"
],
"files": [
"src",
"dist"
],
"author": "Jason Miller <jason@developit.ca>",
"license": "MIT",
"repository": {
"type": "git",
"url": "git+https://github.com/developit/preact-scroll-viewport.git"
},
"bugs": {
"url": "https://github.com/developit/preact-scroll-viewport/issues"
},
"homepage": "https://github.com/developit/preact-scroll-viewport",
"devDependencies": {
"babel": "^6.5.2",
"babel-eslint": "^8.0.1",
"babel-plugin-transform-class-properties": "^6.18.0",
"babel-plugin-transform-es2015-classes-simple": "^1.0.0",
"babel-plugin-transform-react-jsx": "^6.8.0",
"babel-preset-es2015": "^6.18.0",
"babel-preset-stage-0": "^6.16.0",
"babel-register": "^6.18.0",
"chai": "^4.1.2",
"eslint": "^4.10.0",
"eslint-plugin-react": "^7.4.0",
"mocha": "^4.0.1",
"npm-run-all": "^4.1.1",
"preact": "^8.2.6",
"rollup": "^0.36.3",
"rollup-plugin-babel": "^2.6.1",
"rollup-plugin-es3": "^1.0.3",
"rollup-plugin-post-replace": "^1.0.0",
"uglify-js": "^2.7.4"
},
"peerDependencies": {
"preact": "*"
}
}