Permalink
Cannot retrieve contributors at this time
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
81 lines (81 sloc)
2.4 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "lozad", | |
"title": "lozad.js", | |
"description": "A light-weight JS library to lazy load any HTML element such as images, ads, videos etc.", | |
"version": "1.4.0", | |
"homepage": "https://github.com/ApoorvSaxena/lozad.js", | |
"scripts": { | |
"test": "nyc mocha", | |
"build": "cross-env NODE_ENV=production node build.js", | |
"build:watch": "cross-env NODE_ENV=development node build.js", | |
"prepublish": "npm run build", | |
"prelint": "prettier --single-quote --no-semi --no-bracket-spacing --trailing-comma none --write \"lib/**/*.js\" --write build.js --write \"test/*.js\"", | |
"precommit": "npm run lint && npm run build", | |
"lint": "xo --fix src/*.js build.js test/*.js", | |
"serve": "browser-sync start --server \"demo\" --server \".\" --files \"demo\" --files \"dist\" --port 3000", | |
"dev": "run-p -r serve build:watch", | |
"tag": "npm version minor --no-git-tag-version && npm run build && PACKAGE_VERSION=$(cat package.json | grep version | head -1 | awk -F: '{ print $2 }' | sed 's/[\",]//g' | tr -d '[[:space:]]') && git commit -am \"$PACKAGE_VERSION release\" && git tag v$PACKAGE_VERSION" | |
}, | |
"author": { | |
"name": "Apoorv Saxena", | |
"email": "root@apoorv.pro", | |
"url": "https://apoorv.pro" | |
}, | |
"main": "dist/lozad.js", | |
"repository": { | |
"type": "git", | |
"url": "git://github.com/ApoorvSaxena/lozad.js.git" | |
}, | |
"bugs": { | |
"url": "https://github.com/ApoorvSaxena/lozad.js/issues" | |
}, | |
"licenses": [ | |
{ | |
"type": "MIT", | |
"url": "https://github.com/ApoorvSaxena/lozad.js/blob/master/LICENSE" | |
} | |
], | |
"files": [ | |
"dist/" | |
], | |
"keywords": [ | |
"lazy", | |
"loader", | |
"lazyloader", | |
"lazyload", | |
"performance", | |
"image", | |
"video", | |
"iframe", | |
"ads" | |
], | |
"devDependencies": { | |
"babel-core": "^6.26.0", | |
"babel-preset-env": "^1.6.0", | |
"babel-preset-stage-0": "^6.24.1", | |
"browser-sync": "^2.18.13", | |
"chokidar": "^1.7.0", | |
"cross-env": "^5.0.5", | |
"husky": "^0.14.3", | |
"jsdom": "^11.2.0", | |
"jsdom-global": "^3.0.2", | |
"mocha": "^3.5.1", | |
"npm-run-all": "^4.1.1", | |
"nyc": "^11.2.1", | |
"prettier": "^1.6.1", | |
"rollup": "^0.49.2", | |
"rollup-plugin-babel": "^3.0.2", | |
"rollup-plugin-filesize": "^1.4.2", | |
"rollup-plugin-license": "^0.5.0", | |
"rollup-plugin-uglify": "^2.0.1", | |
"xo": "^0.18.2" | |
}, | |
"xo": { | |
"envs": [ | |
"browser", | |
"mocha" | |
], | |
"semicolon": false, | |
"space": true | |
} | |
} |