UNPKG

@wezom/zz-load

Version:

Lazy loader based on IntersectionObserver API

78 lines (77 loc) 3 kB
{ "name": "@wezom/zz-load", "version": "0.2.0-beta", "description": "Lazy loader based on IntersectionObserver API", "main": "dist/index.js", "files": [ "dist" ], "scripts": { "build": "npm run build:clean && npm run build:ts-es && npm run build:ts-cjs && npm run build:ts-example-assets && npm run build:finalize", "----------------------------------------------- BUIL-STEPS": "SECTION", "build:clean": "del-cli ./dist", "build:ts-es": "tsc", "build:ts-cjs": "tsc --project ./tsconfig-cjs.json", "build:ts-example-assets": "rollup -c rollup.config.js", "build:finalize": "prettier ./dist/**/*.{d.ts,js} --check --write", "----------------------------------------------- TEST": "SECTION", "test": "npm run prettier && npm run eslint-js && npm run eslint-ts && npm run jest", "test:autofix": "npm run prettier:autofix && npm run eslint-js:autofix && npm run eslint-ts:autofix && npm run jest:coverage", "----------------------------------------------- TEST-INNER": "SECTION", "eslint-ts": "eslint src/**/*.ts --cache --cache-location .cache/.eslintcache-ts", "eslint-ts:autofix": "npm run eslint-ts -- --fix", "eslint-js": "eslint ./*.js --cache --cache-location .cache/.eslintcache-js", "eslint-js:autofix": "npm run eslint-js -- --fix", "prettier": "prettier src/**/*.ts --check", "prettier:autofix": "npm run prettier -- --write", "jest": "jest --passWithNoTests", "jest:coverage": "del-cli ./coverage && jest --coverage --passWithNoTests --collectCoverageFrom=\"./src/**/*.ts\" && istanbul-badges-readme", "----------------------------------------------- PRE-POST": "SECTION", "postbuild:ts-cjs": "node ./utils.js && del-cli ./dist/cjs" }, "repository": { "type": "git", "url": "git+https://github.com/WezomCompany/zz-load.git" }, "publishConfig": { "access": "public" }, "keywords": [ "lazy", "lazyload", "performance", "image", "picture", "iframe" ], "author": "Oleg Dutchenko <dutchenko.o.dev@gmail.com>", "license": "BSD 3-Clause License", "bugs": { "url": "https://github.com/WezomCompany/zz-load/issues" }, "homepage": "https://github.com/WezomCompany/zz-load#readme", "devDependencies": { "@stripped-ui/eslint-config": "^0.3.0-beta.0", "@stripped-ui/eslint-config-ts": "^0.3.1-beta.0", "@types/jest": "^25.2.1", "@types/jquery": "^3.5.5", "@typescript-eslint/eslint-plugin": "^2.30.0", "@typescript-eslint/parser": "^2.30.0", "babel-eslint": "^10.1.0", "cp-cli": "^2.0.0", "del-cli": "^3.0.1", "eslint": "^7.13.0", "eslint-plugin-jest": "^24.1.0", "from-cwd": "^1.0.1", "glob": "^7.1.6", "istanbul-badges-readme": "^1.0.5", "jest": "^25.5.3", "jquery": "^3.5.1", "prettier": "^2.0.5", "rollup": "^2.36.1", "rollup-plugin-terser": "^7.0.2", "rollup-plugin-typescript2": "^0.29.0", "ts-jest": "^25.4.0", "typescript": "^4.1.3" } }