{ "name": "@globocom/scrollspy", "private": false, "version": "0.1.0", "description": "Bind functions to DOM elements based on their scroll position", "keywords": [ "scrollspy", "lazyload" ], "main": "./dist/scrollspy.js", "browser": "./dist/scrollspy.js", "module": "./dist/esm/scrollspy.js", "types": "./dist/esm/scrollspy.d.ts", "files": [ "dist", "src" ], "license": "MIT", "author": "rafalages", "repository": { "type": "git", "url": "git+https://github.com/globocom/ScrollSpy.git" }, "bugs": { "url": "https://github.com/globocom/ScrollSpy/issues" }, "homepage": "https://github.com/globocom/ScrollSpy#readme", "scripts": { "build": "npm run build:esm && npm run build:umd && npm run build:minify", "build:esm": "tsc --preserveWatchOutput", "build:umd": "rollup -c rollup.config.js", "build:minify": "terser --compress --mangle --output dist/scrollspy.min.js --source-map \"content='./dist/scrollspy.js.map',filename=dist/scrollspy.min.js.map,includeSources\" -- dist/scrollspy.js", "demo": "npx http-server ./", "develop": "concurrently \"npm run build:esm -- --watch\" \"npm run build:umd -- --watch\" \"npm test -- --singleRun false --autoWatch true\" \"npm lint -- --watch\"", "lint": "esw --color --ext .ts src", "test": "karma start karma.conf.js" }, "devDependencies": { "@typescript-eslint/eslint-plugin": "^2.3.2", "@typescript-eslint/parser": "^2.3.2", "concurrently": "^4.1.2", "eslint": "^6.5.1", "eslint-config-prettier": "^6.3.0", "eslint-plugin-prettier": "^3.1.1", "eslint-watch": "^6.0.1", "husky": "^3.0.9", "jasmine-core": "^3.5.0", "karma": "^4.3.0", "karma-chrome-launcher": "^3.1.0", "karma-jasmine": "^2.0.1", "lint-staged": "^9.4.2", "prettier": "^1.18.2", "rollup": "^1.23.0", "rollup-plugin-sourcemaps": "^0.4.2", "terser": "^4.3.4", "typescript": "^3.6.3" }, "husky": { "hooks": { "pre-commit": "lint-staged" } }, "lint-staged": { "*.{js,ts}": [ "eslint --fix", "git add" ] } }