package.json 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. {
  2. "name": "ismobilejs",
  3. "publishConfig": {
  4. "access": "public"
  5. },
  6. "version": "1.1.1",
  7. "description": "A simple JS library that detects mobile devices.",
  8. "keywords": [
  9. "ismobile",
  10. "device detection",
  11. "mobile devices",
  12. "useragent"
  13. ],
  14. "homepage": "https://github.com/kaimallea/isMobile",
  15. "license": "MIT",
  16. "author": {
  17. "name": "Kai Mallea",
  18. "email": "kmallea@gmail.com"
  19. },
  20. "repository": {
  21. "type": "git",
  22. "url": "https://github.com/kaimallea/isMobile.git"
  23. },
  24. "main": "cjs/index.js",
  25. "module": "esm/index.js",
  26. "jsdelivr": "dist/isMobile.min.js",
  27. "types": "types",
  28. "scripts": {
  29. "prebuild": "rm -rf cjs esm dist",
  30. "build": "yarn build:library && yarn build:browser",
  31. "build:library": "web-scripts build",
  32. "build:browser": "parcel build --target browser --experimental-scope-hoisting --global isMobile --out-file isMobile.min.js src/index.browser.ts",
  33. "test": "jest",
  34. "format": "web-scripts format",
  35. "lint": "web-scripts lint",
  36. "commit": "web-scripts commit",
  37. "release": "web-scripts release",
  38. "prepare": "web-scripts audit"
  39. },
  40. "husky": {
  41. "hooks": {
  42. "pre-commit": "web-scripts precommit --jest-config ./jest.config.js",
  43. "commit-msg": "web-scripts commitmsg"
  44. }
  45. },
  46. "devDependencies": {
  47. "@spotify/web-scripts": "^6.2.0",
  48. "@types/puppeteer": "^2.0.1",
  49. "husky": "^4.2.5",
  50. "jest-puppeteer": "^4.4.0",
  51. "parcel-bundler": "^1.12.4",
  52. "puppeteer": "^2.1.1",
  53. "ts-jest": "^25.3.1"
  54. }
  55. }