You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
145 lines
3.8 KiB
145 lines
3.8 KiB
{
|
|
"name": "scroll-into-view-if-needed",
|
|
"description": "Ponyfill for upcoming Element.scrollIntoView() APIs like scrollMode: if-needed, behavior: smooth and block: center",
|
|
"license": "MIT",
|
|
"author": "Cody Olsen",
|
|
"homepage": "https://scroll-into-view-if-needed.netlify.com",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/stipsan/scroll-into-view-if-needed.git"
|
|
},
|
|
"version": "2.2.29",
|
|
"main": "index.js",
|
|
"module": "es/index.js",
|
|
"files": [
|
|
"es",
|
|
"typings",
|
|
"umd"
|
|
],
|
|
"scripts": {
|
|
"prebuild": "yarn clean",
|
|
"build": "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min",
|
|
"build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'",
|
|
"build:d.ts": "tsc --emitDeclarationOnly",
|
|
"build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'",
|
|
"build:umd": "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/scroll-into-view-if-needed.js",
|
|
"build:umd.min": "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/scroll-into-view-if-needed.min.js",
|
|
"clean": "rimraf 'umd' 'es' 'typings'",
|
|
"precommit": "lint-staged",
|
|
"dev": "concurrently 'tsc --noEmit --watch' 'tsc --noEmit -p tests/typescript --watch' 'yarn build:cjs --watch' 'yarn build:es --watch' 'yarn build:umd --watch' 'yarn build:umd.min --watch'",
|
|
"lint": "eslint ./integration-examples",
|
|
"prepublishOnly": "unset npm_config_cafile && yarn build",
|
|
"typecheck": "tsc --noEmit && tsc --noEmit -p tests/typescript"
|
|
},
|
|
"sideEffects": false,
|
|
"typings": "typings/index.d.ts",
|
|
"dependencies": {
|
|
"compute-scroll-into-view": "^1.0.17"
|
|
},
|
|
"devDependencies": {
|
|
"@babel/cli": "7.16.7",
|
|
"@babel/core": "7.16.7",
|
|
"@babel/plugin-external-helpers": "7.16.7",
|
|
"@babel/preset-env": "7.16.7",
|
|
"@babel/preset-typescript": "7.16.7",
|
|
"babel-eslint": "10.1.0",
|
|
"babel-plugin-add-module-exports": "1.0.4",
|
|
"babel-plugin-dev-expression": "0.2.3",
|
|
"concurrently": "6.5.1",
|
|
"eslint": "8.7.0",
|
|
"eslint-config-prettier": "8.3.0",
|
|
"eslint-plugin-import": "2.25.4",
|
|
"eslint-plugin-react": "7.28.0",
|
|
"flowgen": "1.16.2",
|
|
"husky": "7.0.4",
|
|
"lint-staged": "12.3.1",
|
|
"prettier": "2.5.1",
|
|
"prettier-package-json": "2.6.0",
|
|
"rimraf": "3.0.2",
|
|
"rollup": "2.63.0",
|
|
"rollup-plugin-babel": "4.4.0",
|
|
"rollup-plugin-commonjs": "10.1.0",
|
|
"rollup-plugin-node-resolve": "5.2.0",
|
|
"rollup-plugin-replace": "2.2.0",
|
|
"rollup-plugin-terser": "7.0.2",
|
|
"semantic-release": "17.4.7",
|
|
"tslint": "5.20.1",
|
|
"tslint-config-prettier": "1.18.0",
|
|
"typescript": "4.5.4"
|
|
},
|
|
"keywords": [
|
|
"behavior-smooth",
|
|
"if-needed",
|
|
"polyfill",
|
|
"ponyfill",
|
|
"scroll",
|
|
"scroll-into-view",
|
|
"scrollIntoView",
|
|
"scrollIntoViewIfNeeded",
|
|
"scrollMode",
|
|
"smooth",
|
|
"smoothscroll",
|
|
"typescript"
|
|
],
|
|
"browserify": {
|
|
"transform": [
|
|
"loose-envify"
|
|
]
|
|
},
|
|
"bundlesize": [
|
|
{
|
|
"path": "./umd/scroll-into-view-if-needed.min.js",
|
|
"maxSize": "3.3 kB",
|
|
"compression": "none"
|
|
}
|
|
],
|
|
"lint-staged": {
|
|
"*.js": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.{ts,tsx}": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.json": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.css": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"*.md": [
|
|
"prettier --write",
|
|
"git add"
|
|
],
|
|
"**/package.json": [
|
|
"prettier-package-json --write",
|
|
"git add"
|
|
],
|
|
"**/.babelrc": [
|
|
"prettier --write",
|
|
"git add"
|
|
]
|
|
},
|
|
"prettier": {
|
|
"semi": false,
|
|
"singleQuote": true,
|
|
"trailingComma": "es5",
|
|
"overrides": [
|
|
{
|
|
"files": ".babelrc",
|
|
"options": {
|
|
"parser": "json"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"release": {
|
|
"prepare": [
|
|
"@semantic-release/npm"
|
|
]
|
|
}
|
|
}
|