package.json 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. {
  2. "name": "dayjs",
  3. "version": "1.11.11",
  4. "description": "2KB immutable date time library alternative to Moment.js with the same modern API ",
  5. "main": "dayjs.min.js",
  6. "types": "index.d.ts",
  7. "scripts": {
  8. "test": "TZ=Pacific/Auckland npm run test-tz && TZ=Europe/London npm run test-tz && TZ=America/Whitehorse npm run test-tz && npm run test-tz && jest",
  9. "test-tz": "date && jest test/timezone.test --coverage=false",
  10. "lint": "./node_modules/.bin/eslint src/* test/* build/*",
  11. "prettier": "prettier --write \"docs/**/*.md\"",
  12. "babel": "cross-env BABEL_ENV=build babel src --out-dir esm --copy-files && node build/esm",
  13. "build": "cross-env BABEL_ENV=build node build && npm run size",
  14. "sauce": "npx karma start karma.sauce.conf.js",
  15. "test:sauce": "npm run sauce -- 0 && npm run sauce -- 1 && npm run sauce -- 2 && npm run sauce -- 3",
  16. "size": "size-limit && gzip-size dayjs.min.js"
  17. },
  18. "pre-commit": [
  19. "lint"
  20. ],
  21. "size-limit": [
  22. {
  23. "limit": "2.99 KB",
  24. "path": "dayjs.min.js"
  25. }
  26. ],
  27. "jest": {
  28. "roots": [
  29. "test"
  30. ],
  31. "testRegex": "test/(.*?/)?.*test.js$",
  32. "testURL": "http://localhost",
  33. "coverageDirectory": "./coverage/",
  34. "collectCoverage": true,
  35. "collectCoverageFrom": [
  36. "src/**/*"
  37. ]
  38. },
  39. "keywords": [
  40. "dayjs",
  41. "date",
  42. "time",
  43. "immutable",
  44. "moment"
  45. ],
  46. "author": "iamkun",
  47. "license": "MIT",
  48. "homepage": "https://day.js.org",
  49. "repository": {
  50. "type": "git",
  51. "url": "https://github.com/iamkun/dayjs.git"
  52. },
  53. "devDependencies": {
  54. "@babel/cli": "^7.0.0-beta.44",
  55. "@babel/core": "^7.0.0-beta.44",
  56. "@babel/node": "^7.0.0-beta.44",
  57. "@babel/preset-env": "^7.0.0-beta.44",
  58. "babel-core": "^7.0.0-bridge.0",
  59. "babel-jest": "^22.4.3",
  60. "babel-plugin-external-helpers": "^6.22.0",
  61. "cross-env": "^5.1.6",
  62. "eslint": "^4.19.1",
  63. "eslint-config-airbnb-base": "^12.1.0",
  64. "eslint-plugin-import": "^2.10.0",
  65. "eslint-plugin-jest": "^21.15.0",
  66. "gzip-size-cli": "^2.1.0",
  67. "jasmine-core": "^2.99.1",
  68. "jest": "^22.4.3",
  69. "karma": "^2.0.2",
  70. "karma-jasmine": "^1.1.2",
  71. "karma-sauce-launcher": "^1.1.0",
  72. "mockdate": "^2.0.2",
  73. "moment": "2.29.2",
  74. "moment-timezone": "0.5.31",
  75. "ncp": "^2.0.0",
  76. "pre-commit": "^1.2.2",
  77. "prettier": "^1.16.1",
  78. "rollup": "^2.45.1",
  79. "rollup-plugin-babel": "^4.4.0",
  80. "rollup-plugin-terser": "^7.0.2",
  81. "size-limit": "^0.18.0",
  82. "typescript": "^2.8.3"
  83. }
  84. }