package.json 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. {
  2. "name": "croner",
  3. "version": "4.1.97",
  4. "description": "Trigger functions and/or evaluate cron expressions in JavaScript. No dependencies. Most features. All environmens.",
  5. "author": "Hexagon <github.com/hexagon>",
  6. "homepage": "https://hexagon.github.io/croner",
  7. "contributors": [
  8. {
  9. "name": "Pehr Boman",
  10. "email": "github.com/unkelpehr"
  11. }
  12. ],
  13. "repository": {
  14. "type": "git",
  15. "url": "https://github.com/hexagon/croner"
  16. },
  17. "bugs": {
  18. "url": "https://github.com/hexagon/croner/issues"
  19. },
  20. "files": [
  21. "dist/*",
  22. "src/*",
  23. "types/*",
  24. "SECURITY.md",
  25. "croner.png"
  26. ],
  27. "keywords": [
  28. "cron",
  29. "parser",
  30. "croner",
  31. "sheduler",
  32. "timer",
  33. "isomorphic"
  34. ],
  35. "scripts": {
  36. "test": "uvu test test.croner.js",
  37. "test:dist": "uvu test js && npm run test:ts",
  38. "test:coverage": "c8 --include=src npm test",
  39. "test:lint": "eslint ./**/*.js ./**/*.cjs",
  40. "test:lint:fix": "eslint --fix ./**/*.js ./**/*.cjs",
  41. "test:ts": "tsc --noEmit ./test/ts/basics.ts",
  42. "build": "npm update && npm run build:precleanup && npm run test:lint && npm run build:typings && npm run build:dist && npm run build:minify && npm run build:cleanup && npm run test:coverage && npm run test:dist",
  43. "build:ci": "npm run test:lint && npm run build:typings && npm run build:dist && npm run build:minify && npm run build:cleanup && npm run test:coverage && npm run test:dist",
  44. "build:precleanup": "(rm -rf types/* || del /Q types\\*) && (rm -rf dist/* || del /Q dist\\*)",
  45. "build:dist": "rollup -c ./rollup.config.js",
  46. "build:minify": "uglifyjs dist/croner.cjs --source-map -o dist/croner.min.js && uglifyjs dist/croner.mjs --source-map -o dist/croner.min.mjs",
  47. "build:typings": "tsc",
  48. "build:cleanup": "(rm dist/croner.mjs || del dist\\croner.mjs)",
  49. "build:docs": "(rm -rf docs/* || rd /S /Q docs) && jsdoc -c .jsdoc.json"
  50. },
  51. "type": "module",
  52. "main": "./dist/croner.cjs",
  53. "browser": "./dist/croner.min.js",
  54. "module": "./src/croner.js",
  55. "types": "types/croner.single.d.ts",
  56. "exports": {
  57. "./package.json": "./package.json",
  58. ".": {
  59. "import": "./src/croner.js",
  60. "require": "./dist/croner.cjs",
  61. "browser": "./dist/croner.min.js"
  62. },
  63. "./minified": {
  64. "import": "./dist/croner.min.mjs",
  65. "require": "./dist/croner.min.js",
  66. "browser": "./dist/croner.min.js"
  67. }
  68. },
  69. "devDependencies": {
  70. "c8": "^7.10.0",
  71. "eslint": "^8.8.0",
  72. "jsdoc": "^3.6.7",
  73. "jsdoc-chameleon-template": "^1.0.2",
  74. "rollup": "^2.59.0",
  75. "typescript": "^4.4.4",
  76. "uglify-js": "^3.14.3",
  77. "uvu": "^0.5.2"
  78. },
  79. "license": "MIT"
  80. }