package.json 2.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. {
  2. "name": "dayjs",
  3. "version": "1.11.6",
  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. "release": {
  40. "prepare": [
  41. {
  42. "path": "@semantic-release/changelog"
  43. },
  44. [
  45. "@semantic-release/git",
  46. {
  47. "assets": [
  48. "CHANGELOG.md"
  49. ]
  50. }
  51. ]
  52. ]
  53. },
  54. "keywords": [
  55. "dayjs",
  56. "date",
  57. "time",
  58. "immutable",
  59. "moment"
  60. ],
  61. "author": "iamkun",
  62. "license": "MIT",
  63. "homepage": "https://day.js.org",
  64. "repository": {
  65. "type": "git",
  66. "url": "https://github.com/iamkun/dayjs.git"
  67. },
  68. "devDependencies": {
  69. "@babel/cli": "^7.0.0-beta.44",
  70. "@babel/core": "^7.0.0-beta.44",
  71. "@babel/node": "^7.0.0-beta.44",
  72. "@babel/preset-env": "^7.0.0-beta.44",
  73. "babel-core": "^7.0.0-bridge.0",
  74. "babel-jest": "^22.4.3",
  75. "babel-plugin-external-helpers": "^6.22.0",
  76. "cross-env": "^5.1.6",
  77. "eslint": "^4.19.1",
  78. "eslint-config-airbnb-base": "^12.1.0",
  79. "eslint-plugin-import": "^2.10.0",
  80. "eslint-plugin-jest": "^21.15.0",
  81. "gzip-size-cli": "^2.1.0",
  82. "jasmine-core": "^2.99.1",
  83. "jest": "^22.4.3",
  84. "karma": "^2.0.2",
  85. "karma-jasmine": "^1.1.2",
  86. "karma-sauce-launcher": "^1.1.0",
  87. "mockdate": "^2.0.2",
  88. "moment": "2.29.2",
  89. "moment-timezone": "0.5.31",
  90. "ncp": "^2.0.0",
  91. "pre-commit": "^1.2.2",
  92. "prettier": "^1.16.1",
  93. "rollup": "^2.45.1",
  94. "rollup-plugin-babel": "^4.4.0",
  95. "rollup-plugin-terser": "^7.0.2",
  96. "size-limit": "^0.18.0",
  97. "typescript": "^2.8.3"
  98. }
  99. }