| 1 |
{ |
| 2 |
"name": "swup", |
| 3 |
"amdName": "Swup", |
| 4 |
"version": "4.8.3", |
| 5 |
"description": "Versatile and extensible page transition library for server-rendered websites", |
| 6 |
"type": "module", |
| 7 |
"source": "./src/Swup.ts", |
| 8 |
"main": "./dist/Swup.cjs", |
| 9 |
"module": "./dist/Swup.module.js", |
| 10 |
"unpkg": "./dist/Swup.umd.js", |
| 11 |
"types": "./dist/types/index.d.ts", |
| 12 |
"exports": { |
| 13 |
".": { |
| 14 |
"types": "./dist/types/index.d.ts", |
| 15 |
"import": "./dist/Swup.modern.js", |
| 16 |
"require": "./dist/Swup.cjs" |
| 17 |
} |
| 18 |
}, |
| 19 |
"files": [ |
| 20 |
"src", |
| 21 |
"dist" |
| 22 |
], |
| 23 |
"scripts": { |
| 24 |
"clean": "rm -rf ./dist", |
| 25 |
"build": "npm run build:module && npm run build:bundle", |
| 26 |
"build:module": "BROWSERSLIST_ENV=modern microbundle src/index.ts -f modern,esm,cjs", |
| 27 |
"build:bundle": "BROWSERSLIST_ENV=production microbundle src/Swup.ts -f umd --external none", |
| 28 |
"dev": "npm run clean && BROWSERSLIST_ENV=development microbundle src/index.ts -w -f modern", |
| 29 |
"format": "npx eslint . --fix", |
| 30 |
"lint": "npm run lint:ts && npm run lint:es", |
| 31 |
"lint:ts": "tsc --noEmit --skipLibCheck", |
| 32 |
"lint:es": "npx eslint .", |
| 33 |
"lint:compat": "npx eslint --config .eslintrc.compat.cjs --no-eslintrc .", |
| 34 |
"lint:prettier": "prettier 'src/**/*.ts'", |
| 35 |
"prepublishOnly": "npm run build", |
| 36 |
"test": "npm run test:unit && npm run test:e2e", |
| 37 |
"test:ci": "npm run test:unit && npm run test:e2e:ci", |
| 38 |
"test:unit": "vitest run --config ./tests/config/vitest.config.ts", |
| 39 |
"test:unit:watch": "vitest --config ./tests/config/vitest.config.ts", |
| 40 |
"test:e2e": "npx playwright test --config ./tests/config/playwright.config.ts", |
| 41 |
"test:e2e:dev": "npx playwright test --ui --config ./tests/config/playwright.config.ts", |
| 42 |
"test:e2e:install": "npx playwright install --with-deps", |
| 43 |
"test:e2e:instrument": "nyc instrument --compact=false dist tests/fixtures/dist", |
| 44 |
"test:e2e:serve": "npx serve -n -S -L -p 8274 --config ./tests/config/serve.json", |
| 45 |
"test:e2e:start": "npm run test:e2e:instrument && npm run test:e2e:serve", |
| 46 |
"prepare": "husky" |
| 47 |
}, |
| 48 |
"author": { |
| 49 |
"name": "Georgy Marchuk", |
| 50 |
"email": "[email protected]", |
| 51 |
"url": "https://gmrchk.com" |
| 52 |
}, |
| 53 |
"contributors": [ |
| 54 |
{ |
| 55 |
"name": "Philipp Daun", |
| 56 |
"email": "[email protected]", |
| 57 |
"url": "https://philippdaun.net" |
| 58 |
}, |
| 59 |
{ |
| 60 |
"name": "Rasso Hilber", |
| 61 |
"email": "[email protected]", |
| 62 |
"url": "https://rassohilber.com" |
| 63 |
} |
| 64 |
], |
| 65 |
"license": "MIT", |
| 66 |
"repository": { |
| 67 |
"type": "git", |
| 68 |
"url": "https://github.com/swup/swup.git" |
| 69 |
}, |
| 70 |
"homepage": "https://swup.js.org", |
| 71 |
"keywords": [ |
| 72 |
"css", |
| 73 |
"page", |
| 74 |
"transition", |
| 75 |
"animation" |
| 76 |
], |
| 77 |
"dependencies": { |
| 78 |
"delegate-it": "^6.0.0", |
| 79 |
"opencollective-postinstall": "^2.0.2", |
| 80 |
"path-to-regexp": "^6.2.1" |
| 81 |
}, |
| 82 |
"devDependencies": { |
| 83 |
"@babel/preset-typescript": "^7.18.6", |
| 84 |
"@playwright/test": "1.37.1", |
| 85 |
"@swup/browserslist-config": "^1.0.0", |
| 86 |
"@swup/prettier-config": "^1.0.0", |
| 87 |
"@types/dom-view-transitions": "^1.0.2", |
| 88 |
"@types/jsdom": "^21.1.1", |
| 89 |
"@typescript-eslint/eslint-plugin": "^7.13.0", |
| 90 |
"@typescript-eslint/parser": "^7.13.0", |
| 91 |
"eslint": "^8.46.0", |
| 92 |
"eslint-config-prettier": "^9.0.0", |
| 93 |
"eslint-plugin-compat": "^5.0.0", |
| 94 |
"eslint-plugin-ecmascript-compat": "^3.2.0", |
| 95 |
"eslint-plugin-prettier": "^5.0.1", |
| 96 |
"husky": "^9.0.11", |
| 97 |
"istanbul-lib-coverage": "^3.2.0", |
| 98 |
"jsdom": "^25.0.1", |
| 99 |
"microbundle": "^0.15.0", |
| 100 |
"nyc": "^17.0.0", |
| 101 |
"prettier": "^3.1.0", |
| 102 |
"serve": "^14.2.1", |
| 103 |
"typed-query-selector": "^2.11.0", |
| 104 |
"typescript": "^5.2.2", |
| 105 |
"vitest": "^3.0.9" |
| 106 |
}, |
| 107 |
"collective": { |
| 108 |
"type": "opencollective", |
| 109 |
"url": "https://opencollective.com/swup" |
| 110 |
}, |
| 111 |
"browserslist": [ |
| 112 |
"extends @swup/browserslist-config" |
| 113 |
], |
| 114 |
"prettier": "@swup/prettier-config" |
| 115 |
} |