-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
executable file
·111 lines (111 loc) · 4.67 KB
/
package.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
{
"name": "schedule-jobs-with-cron",
"author": "Robert Sebestyen",
"version": "1.5.4",
"description": "Schedule jobs with cron specifications",
"private": false,
"directories": {
"doc": "docs"
},
"runkitExampleFilename": "dist/runkit-example.js",
"types": "dist/index.d.ts",
"main": "dist/index.js",
"license": "MIT",
"engines": {
"node": ">=14"
},
"files": [
"dist/**/*"
],
"keywords": [
"schedule",
"cron",
"chron",
"scheduler",
"crontab",
"chrontab",
"typescript",
"human-friendly",
"tab",
"cronos",
"time",
"schedule",
"timer",
"job",
"parser",
"cron parser",
"nodejs",
"javascript",
"zero dependency",
"no dependencies",
"small",
"tiny"
],
"scripts": {
"eslint:git-changed": "LIST=`git diff-index --name-only --diff-filter=d HEAD | grep .*\\\\\\.ts | grep -v json`; if [ \"$LIST\" ]; then eslint --ignore-path .eslintignore $LIST; fi",
"eslint": "eslint --cache --ignore-path .eslintignore . --ext .ts",
"prettier": "prettier --loglevel error --ignore-path .prettierignore \"**/(src|test)/**/*.ts\" -c",
"prettier:check:all": "npm run prettier -- --loglevel log",
"prettier:fix": "npm run prettier -- --write",
"prettier:fix:git-changed": "LIST=`git diff-index --name-only --diff-filter=d HEAD | egrep -i '(ts|json|md|js|html|htm)$'`; if [ -z \"$LIST\" ]; then exit 0; fi; echo \"${LIST}\" | while IFS= read -r line; do echo \"prettier ----> $line\" && prettier --loglevel debug --ignore-path .prettierignore \"$line\" --write && git add \"$line\"; done;",
"check-formatting-and-linting": "npm run prettier && npm run eslint",
"prebuild": "",
"build": "rimraf ./dist && tsc",
"make-type-definitions": "npm-dts generate -e ./src/index.ts -o ./dist/index.d.ts",
"build-one-file-from-js": "npm run build && esbuild ./dist/src/index.js --bundle --minify --platform=node --packages=external --target=node18.12.1 --outfile=./dist/index.js --allow-overwrite && rimraf ./dist/src ./dist/test && npm run make-type-definitions",
"build-one-file-from-js-and-mangle": "npm run build-one-file-from-js && terser ./dist/index.js --compress --mangle --output ./dist/index.js",
"postbuild": "cp ./runkit-example.js ./dist/ ",
"test": "jest --silent",
"test:typescript:and_coverage_badge": "rimraf ./coverage && jest --silent && npm run coverage:badge && npm run check-formatting-and-linting",
"test:javascript": "jest --config=jest-for-js.config.js",
"coverage:badge": "coverage-badge-creator",
"clean": "rimraf ./dist ./node_modules",
"audit": "npm audit --production",
"prestart": "",
"pretest": "",
"prepare": "`# This installs git pre commit hook` husky install",
"check-env": "`# This is just a test script to print out npm parsed parameters` node -e 'console.log(process.env)' | grep npm",
"refresh-package-locks": "npm run clean && find . -iname package-lock.json -delete && npm install",
"install:prod": "npm ci",
"install:no-cache": "npm install --cache",
"preversion": "npm install [email protected] -g && npm run clean && npm run install:prod && npm run build-one-file-from-js-and-mangle && npm run test:typescript:and_coverage_badge",
"prepublishOnly": "npm prune --production",
"deploy": "np",
"open-release-draft-last-version": "npx np --release-draft-only"
},
"repository": {
"type": "git",
"url": "[email protected]:hiro5id/schedule-jobs-with-cron.git"
},
"//#### dependencies-documentation": {
"building types with esbuild": "https://souporserious.com/bundling-typescript-with-esbuild-for-npm/",
"@typescript-eslint/eslint-plugin": "Needed for eslint to provide lint rules for typescript",
"@typescript-eslint/parser": "This is a dependency of eslint-plugin-unicorn",
"eslint-plugin-unicorn": "adds ability to add extra rules in .eslintrc.js for typescript linting",
"prettier": "code formatting",
"husky": "handler for pre-commit-hooks",
"eslint": "NOTE: eslint is stuck at 8.31.0 because in newer version it breaks because eslint-plugin-unicorn isnt compatible yet"
},
"devDependencies": {
"@types/chai": "^4.3.5",
"@types/jest": "^29.5.1",
"@types/node": "^20.1.0",
"@typescript-eslint/eslint-plugin": "5.59.2",
"@typescript-eslint/parser": "5.59.2",
"chai": "^4.3.7",
"coverage-badge-creator": "^1.0.17",
"esbuild": "^0.17.18",
"eslint": "8.31.0",
"eslint-plugin-unicorn": "46.0.0",
"husky": "8.0.3",
"jest": "^29.5.0",
"np": "^7.7.0",
"npm-dts": "^1.3.12",
"prettier": "^2.8.8",
"rimraf": "^5.0.0",
"terser": "^5.17.1",
"ts-jest": "^29.1.0",
"ts-node": "^10.9.1",
"typescript": "^5.0.4"
}
}