UNPKG

@next-theme/pjax

Version:

Easily enable fast AJAX navigation on any website (using pushState + XHR)

75 lines (74 loc) 1.93 kB
{ "name": "@next-theme/pjax", "version": "0.6.0", "description": "Easily enable fast AJAX navigation on any website (using pushState + XHR)", "keywords": [ "pjax", "pushstate", "ajax", "navigation", "transition", "animation" ], "repository": "next-theme/pjax", "author": "Maxime Thirouin", "contributors": [ "BehindTheMath", "Robin North (http://robinnorth.co.uk)" ], "license": "MIT", "main": "index.js", "files": [ "index.js", "lib", "pjax.js", "pjax.min.js", "index.d.ts" ], "types": "index.d.ts", "devDependencies": { "@rollup/plugin-commonjs": "^23.0.2", "@rollup/plugin-node-resolve": "^15.0.1", "eslint": "^7.9.0", "eslint-config-i-am-meticulous": "^12.0.0", "husky": "^4.3.0", "jsdom": "^16.4.0", "jsdom-global": "^3.0.2", "lint-staged": "^10.3.0", "npmpub": "^5.0.0", "nyc": "^15.1.0", "opn-cli": "^5.0.0", "prettier": "^2.1.1", "rollup": "^3.3.0", "serve": "^11.3.2", "tap-nyc": "^1.0.3", "tap-spec": "^5.0.0", "tape": "^5.0.1", "terser": "^5.15.1" }, "scripts": { "lint": "eslint .", "standalone": "rollup -c rollup.config.mjs -f iife > pjax.js", "build": "npm run standalone && terser pjax.js -c -m > pjax.min.js", "build-debug": "browserify index.js --debug --standalone Pjax > pjax.js", "tests": "tape -r ./tests/setup.js \"./tests/**/*.js\"", "test": "npm run lint && npm run tests | tap-spec", "coverage-tests": "npm run tests | tap-nyc", "coverage": "nyc -x \"tests/**\" npm run coverage-tests", "example": "opn http://localhost:3000/example/ && serve -p 3000 .", "prepublish": "npm run build", "release": "npmpub" }, "husky": { "hooks": { "pre-commit": "npm test && lint-staged" } }, "lint-staged": { "*.js": [ "eslint --fix", "prettier --write", "git add" ] } }