seng-scroll-tracker
Version:
Class that keeps track of the vertical scroll position of an element.
119 lines (118 loc) • 5.1 kB
JSON
{
"name": "seng-scroll-tracker",
"version": "2.0.0",
"description": "Class that keeps track of the vertical scroll position of an element.",
"main": "index.js",
"scripts": {
"prepublish": "npm run build:npm",
"test": "npm-run-all test:*",
"test:unit": "karma start --single-run --browsers PhantomJS",
"test:unit:dev": "karma start karma.conf.dev.js",
"validate": "npm-run-all -p validate:webpack lint test:unit -s validate:coverage",
"validate:webpack": "webpack-validator config/webpack.config.dist.js && webpack-validator config/webpack.config.test.js",
"validate:coverage": "istanbul check-coverage --statement 1 --branches 1 --functions 1 --lines 1",
"lint": "npm-run-all lint:*",
"lint:ts": "tslint -c tslint.json \"src/**/*.ts\"",
"clean": "npm-run-all clean:*",
"clean:test": "shx rm -rf coverage",
"clean:npm": "shx rm -rf lib npm index.js index.d.ts",
"clean:dist": "shx rm -rf dist \"seng-*.@(zip|tar.gz)\"",
"compile": "npm-run-all compile:**",
"compile:npm": "npm run clean:npm && tsc -p ./ -d --outDir ./npm && shx mv \"./npm/*\" ./ && shx rm -rf ./npm",
"compile:dist:typescript:es6": "tsc -p ./ -t es6 -m es6 --outDir ./dist/es6/",
"compile:dist:webpack": "node script/webpack.js",
"doc": "npm-run-all -p doc:*",
"doc:typedoc": "typedoc --out docs/ src/ --mode file",
"generate": "npm-run-all clean compile test:unit doc",
"build": "npm-run-all clean compile",
"dev": "node script/webpack-dev.js",
"build:npm": "npm-run-all test compile:npm",
"build:dist": "npm-run-all clean:dist compile:dist:**"
},
"scriptsComment": {
"test": "Placeholder for all types of tests",
"test:unit": "Runs unit tests with Karma in PhantomJS",
"test:unit:dev": "Runs unit tests with Karma in PhantomJS (with the watch mode)",
"validate": "Runs all scripts that validate if the contents of this repos is correct",
"validate:webpack": "Validates the webpack config file",
"validate:coverage": "Checks if the code coverage results are above a defined minimun",
"lint": "Placeholder for all types if linting checks",
"lint:ts": "Lints the source files using tslint",
"clean": "Placeholder for all clean tasks, resets the checkout to a clean state",
"clean:test": "Remove all test related output",
"clean:npm": "Remove all npm related output",
"clean:dist": "Remove all dist related output",
"compile": "Placeholder for all tasks that compile code",
"compile:npm": "Compiles the code for npm. The output needs to end up in the current directory, but if we use that as outputPath in tsconfig.json it disables file-globbing for the includes array. That's why we are outputting it in a npm folder, and then moving it the this folder.",
"compile:dist:typescript:es6": "Compiles typescript to es6 code in the dist folder",
"compile:dist:webpack": "Compiles all dist bundles with webpack",
"doc": "Placeholder for all doc scripts",
"doc:typedoc": "Runs typedoc",
"generate": "Placeholder for all scripts that generate something (code, test, doc, etc)",
"build": "Cleans and compiles everything",
"dev": "Compiles browser dist bundle with webpack and starts server",
"build:npm": "Prepares the checkout for an npm publish",
"build:dist": "Prepares the checkout for travis deployments to github and s3"
},
"pre-push": [
"validate"
],
"author": "Lars van Braam <larsvanbraam@gmail.com> (larsvanbraam)",
"homepage": "https://www.mediamonks.com/",
"license": "MIT",
"keywords": [
"seng",
"mediamonks",
"scroll-tracker"
],
"bugs": {
"url": "https://github.com/mediamonks/seng-scroll-tracker/issues"
},
"repository": {
"type": "git",
"url": "https://github.com/mediamonks/seng-scroll-tracker.git"
},
"devDependencies": {
"@types/chai": "^3.4.34",
"@types/mocha": "^2.2.32",
"@types/webpack": "^1.12.35",
"awesome-typescript-loader": "^3.0.0-beta.17",
"chai": "^3.5.0",
"coveralls": "^2.11.6",
"istanbul": "^0.4.3",
"istanbul-instrumenter-loader": "^0.2.0",
"karma": "^0.13.22",
"karma-chai": "^0.1.0",
"karma-coverage": "^1.0.0",
"karma-mocha": "^1.1.1",
"karma-mocha-reporter": "^2.2.0",
"karma-phantomjs-launcher": "^1.0.0",
"karma-remap-istanbul": "^0.1.1",
"karma-source-map-support": "^1.1.0",
"karma-sourcemap-loader": "^0.3.7",
"karma-webpack": "^1.7.0",
"marked": "^0.3.5",
"mocha": "^2.5.3",
"npm-run-all": "^2.2.0",
"phantomjs-prebuilt": "^2.1.3",
"pre-push": "^0.1.1",
"remap-istanbul": "^0.6.4",
"shx": "^0.1.2",
"tslint": "^5.3.2",
"tslint-config-airbnb": "^5.0.1",
"tsutils": "^2.1.0",
"typedoc": "^0.15.0",
"typescript": "^3.6.4",
"webpack": "^1.12.12",
"webpack-dev-server": "^1.16.2",
"webpack-system-register": "^1.3.2",
"webpack-validator": "^2.1.3"
},
"dependencies": {
"@types/node": "^12.11.1",
"element-size": "^1.1.1",
"lodash": "^4.17.4",
"seng-event": "^2.0.2",
"tslib": "^1.2.0"
}
}