|
| 1 | +{ |
| 2 | + "name": "preact-scroll-viewport", |
| 3 | + "amdName": "ScrollViewport", |
| 4 | + "version": "0.1.0", |
| 5 | + "description": "Only renders items visible in the current viewport.", |
| 6 | + "main": "dist/preact-scroll-viewport.js", |
| 7 | + "minified:main": "dist/preact-scroll-viewport.min.js", |
| 8 | + "jsnext:main": "src/index.js", |
| 9 | + "scripts": { |
| 10 | + "build": "npm-run-all transpile optimize minify", |
| 11 | + "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", |
| 12 | + "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", |
| 13 | + "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", |
| 14 | + "test": "eslint {src,test} && mocha --compilers js:babel-register test/**/*.js", |
| 15 | + "prepublish": "npm run build", |
| 16 | + "release": "npm run build && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish" |
| 17 | + }, |
| 18 | + "babel": { |
| 19 | + "presets": [ |
| 20 | + "es2015", |
| 21 | + "stage-0" |
| 22 | + ], |
| 23 | + "plugins": [ |
| 24 | + "transform-class-properties", |
| 25 | + [ |
| 26 | + "transform-react-jsx", |
| 27 | + { |
| 28 | + "pragma": "h" |
| 29 | + } |
| 30 | + ] |
| 31 | + ] |
| 32 | + }, |
| 33 | + "keywords": [ |
| 34 | + "preact", |
| 35 | + "virtual", |
| 36 | + "viewport", |
| 37 | + "virtualized", |
| 38 | + "scroll" |
| 39 | + ], |
| 40 | + "files": [ |
| 41 | + "src", |
| 42 | + "dist" |
| 43 | + ], |
| 44 | + "author": "Jason Miller <[email protected]>", |
| 45 | + "license": "MIT", |
| 46 | + "repository": { |
| 47 | + "type": "git", |
| 48 | + "url": "git+https://github.com/developit/preact-scroll-viewport.git" |
| 49 | + }, |
| 50 | + "bugs": { |
| 51 | + "url": "https://github.com/developit/preact-scroll-viewport/issues" |
| 52 | + }, |
| 53 | + "homepage": "https://github.com/developit/preact-scroll-viewport", |
| 54 | + "devDependencies": { |
| 55 | + "babel": "^6.5.2", |
| 56 | + "babel-eslint": "^7.1.0", |
| 57 | + "babel-plugin-transform-class-properties": "^6.18.0", |
| 58 | + "babel-plugin-transform-es2015-classes-simple": "^1.0.0", |
| 59 | + "babel-plugin-transform-react-jsx": "^6.8.0", |
| 60 | + "babel-preset-es2015": "^6.18.0", |
| 61 | + "babel-preset-stage-0": "^6.16.0", |
| 62 | + "babel-register": "^6.18.0", |
| 63 | + "chai": "^3.5.0", |
| 64 | + "eslint": "^3.10.2", |
| 65 | + "eslint-plugin-react": "^6.7.1", |
| 66 | + "mocha": "^3.1.2", |
| 67 | + "npm-run-all": "^3.1.1", |
| 68 | + "rollup": "^0.36.3", |
| 69 | + "rollup-plugin-babel": "^2.6.1", |
| 70 | + "rollup-plugin-es3": "^1.0.3", |
| 71 | + "rollup-plugin-post-replace": "^1.0.0", |
| 72 | + "uglify-js": "^2.7.4" |
| 73 | + }, |
| 74 | + "dependencies": { |
| 75 | + "preact": "^6.4.0" |
| 76 | + } |
| 77 | +} |
0 commit comments