|
| 1 | +{ |
| 2 | + "name": "smooth-scroll-into-view-if-needed", |
| 3 | + "description": |
| 4 | + "Ponyfill for smooth scrolling elements into view (if needed!)", |
| 5 | + "license": "MIT", |
| 6 | + "author": "Stian Didriksen", |
| 7 | + "homepage": "https://scroll-into-view-if-needed.netlify.com/", |
| 8 | + "repository": { |
| 9 | + "type": "git", |
| 10 | + "url": |
| 11 | + "git+https://github.com/stipsan/smooth-scroll-into-view-if-needed.git" |
| 12 | + }, |
| 13 | + "version": "1.0.0", |
| 14 | + "main": "index.js", |
| 15 | + "files": ["es", "umd"], |
| 16 | + "scripts": { |
| 17 | + "prebuild": "yarn clean", |
| 18 | + "build": |
| 19 | + "yarn build:d.ts && yarn build:cjs && yarn build:es && yarn build:umd && yarn build:umd.min", |
| 20 | + "build:cjs": "BABEL_ENV=cjs babel src -d . --extensions '.ts'", |
| 21 | + "build:d.ts": "tsc --emitDeclarationOnly", |
| 22 | + "build:es": "BABEL_ENV=es babel src -d es --extensions '.ts'", |
| 23 | + "build:umd": |
| 24 | + "BABEL_ENV=umd NODE_ENV=development rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.js", |
| 25 | + "build:umd.min": |
| 26 | + "BABEL_ENV=umd NODE_ENV=production rollup -c -f umd -o umd/smooth-scroll-into-view-if-needed.min.js", |
| 27 | + "clean": "rimraf 'umd' 'es' 'typings'", |
| 28 | + "precommit": "lint-staged", |
| 29 | + "dev": "concurrently 'tsc --watch' 'yarn build:cjs --watch'", |
| 30 | + "prepublishOnly": "unset npm_config_cafile && yarn build", |
| 31 | + "typecheck": "tsc --noEmit" |
| 32 | + }, |
| 33 | + "dependencies": { |
| 34 | + "scroll-into-view-if-needed": "^2.0.1-alpha.0" |
| 35 | + }, |
| 36 | + "devDependencies": { |
| 37 | + "@babel/cli": "7.0.0-beta.46", |
| 38 | + "@babel/core": "7.0.0-beta.46", |
| 39 | + "@babel/plugin-external-helpers": "7.0.0-beta.46", |
| 40 | + "@babel/preset-env": "7.0.0-beta.46", |
| 41 | + "@babel/preset-typescript": "7.0.0-beta.46", |
| 42 | + "babel-eslint": "8.2.3", |
| 43 | + "babel-plugin-add-module-exports": "0.2.1", |
| 44 | + "babel-plugin-dev-expression": "0.2.1", |
| 45 | + "babel-plugin-styled-components": "1.5.1", |
| 46 | + "concurrently": "3.5.1", |
| 47 | + "eslint": "4.19.1", |
| 48 | + "eslint-config-prettier": "2.9.0", |
| 49 | + "eslint-plugin-import": "2.11.0", |
| 50 | + "eslint-plugin-react": "7.7.0", |
| 51 | + "husky": "0.14.3", |
| 52 | + "lerna": "2.11.0", |
| 53 | + "lint-staged": "7.0.5", |
| 54 | + "prettier": "1.12.1", |
| 55 | + "prettier-package-json": "1.5.1", |
| 56 | + "rimraf": "2.6.2", |
| 57 | + "rollup": "0.58.2", |
| 58 | + "rollup-plugin-babel": "4.0.0-beta.4", |
| 59 | + "rollup-plugin-commonjs": "9.1.0", |
| 60 | + "rollup-plugin-node-resolve": "3.3.0", |
| 61 | + "rollup-plugin-replace": "2.0.0", |
| 62 | + "rollup-plugin-uglify": "3.0.0", |
| 63 | + "semantic-release": "15.1.7", |
| 64 | + "semantic-release-monorepo": "6.0.1", |
| 65 | + "typescript": "2.8.3" |
| 66 | + }, |
| 67 | + "keywords": [ |
| 68 | + "behavior-smooth", |
| 69 | + "if-needed", |
| 70 | + "polyfill", |
| 71 | + "ponyfill", |
| 72 | + "scroll", |
| 73 | + "scroll-into-view", |
| 74 | + "scrollIntoView", |
| 75 | + "scrollIntoViewIfNeeded", |
| 76 | + "scrollMode", |
| 77 | + "smooth", |
| 78 | + "smoothscroll", |
| 79 | + "typescript" |
| 80 | + ], |
| 81 | + "browserify": { |
| 82 | + "transform": ["loose-envify"] |
| 83 | + }, |
| 84 | + "lint-staged": { |
| 85 | + "*.js": ["prettier --write", "git add"], |
| 86 | + "*.{ts,tsx}": ["prettier --write", "git add"], |
| 87 | + "*.json": ["prettier --write", "git add"], |
| 88 | + "*.css": ["prettier --write", "git add"], |
| 89 | + "*.md": ["prettier --write", "git add"], |
| 90 | + "**/package.json": ["prettier-package-json --write", "git add"], |
| 91 | + "**/.babelrc": ["prettier --write", "git add"] |
| 92 | + }, |
| 93 | + "module": "es/index.js", |
| 94 | + "prettier": { |
| 95 | + "semi": false, |
| 96 | + "singleQuote": true, |
| 97 | + "trailingComma": "es5", |
| 98 | + "overrides": [ |
| 99 | + { |
| 100 | + "files": ".babelrc", |
| 101 | + "options": { |
| 102 | + "parser": "json" |
| 103 | + } |
| 104 | + } |
| 105 | + ] |
| 106 | + }, |
| 107 | + "release": { |
| 108 | + "prepare": ["@semantic-release/npm"], |
| 109 | + "verifyConditions": ["@semantic-release/npm", "@semantic-release/github"] |
| 110 | + }, |
| 111 | + "sideEffects": false, |
| 112 | + "typings": "typings/index.d.ts" |
| 113 | +} |
0 commit comments