package.json 2.9 KB

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