-
-
Notifications
You must be signed in to change notification settings - Fork 410
/
package.json
113 lines (113 loc) · 3.04 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
112
113
{
"name": "timeago.js",
"officialName": "timeago.js",
"version": "4.0.2",
"summary": "timeago.js is a simple library (less than 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'.",
"description": "timeago.js is a simple library (only 1kb) to used to format datetime with `*** time ago` statement. eg: '3 hours ago'. localization supported.",
"main": "lib/index.js",
"module": "esm/index.js",
"unpkg": "dist/timeago.min.js",
"browser": "dist/timeago.min.js",
"files": [
"lib",
"esm",
"dist"
],
"scripts": {
"lint": "eslint src/**/* __tests__/**/*",
"lint-staged": "lint-staged",
"size": "limit-size",
"test": "jest",
"ci": "npm run lint && npm run test && npm run size && lint-md .",
"build:umd": "rimraf ./dist && rollup -c && cp -rf dist/ gh-pages && npm run size",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build": "npm run build:cjs && npm run build:esm && npm run build:umd",
"prepublishOnly": "npm run build"
},
"dependencies": {},
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@types/jest": "^24.0.18",
"@typescript-eslint/eslint-plugin": "^2.3.1",
"@typescript-eslint/parser": "^2.3.1",
"cross-env": "^5.1.3",
"eslint": "^6.4.0",
"eslint-config-prettier": "^6.3.0",
"husky": "^3.0.5",
"jest": "^24.9.0",
"jest-date-mock": "^1.0.5",
"jest-electron": "^0.1.7",
"jest-expect": "^0.0.1",
"limit-size": "^0.1.2",
"lint-md-cli": "^0.1.0",
"lint-staged": "^9.3.0",
"prettier": "^1.18.2",
"rimraf": "^3.0.0",
"rollup": "^1.23.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-typescript": "^1.0.1",
"rollup-plugin-uglify": "^6.0.3",
"ts-jest": "^24.1.0",
"typescript": "^3.6.3"
},
"limit-size": [
{
"limit": "1.1 Kb",
"path": "dist/timeago.min.js",
"gzip": true
},
{
"limit": "10 Kb",
"path": "dist/timeago.full.min.js",
"gzip": true
}
],
"jest": {
"preset": "ts-jest",
"runner": "jest-electron/runner",
"testEnvironment": "jest-electron/environment",
"setupFilesAfterEnv": [
"jest-expect"
],
"testRegex": "(/__tests__/.*(test|spec))\\.ts$",
"testURL": "https://timeago.org",
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.ts",
"!**/node_modules/**"
]
},
"lint-staged": {
"*.{ts,tsx}": [
"eslint --fix",
"prettier --write",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "npm run lint-staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"author": {
"name": "hustcc",
"url": "https://timeago.org"
},
"license": "MIT",
"keywords": [
"timeago",
"datetime",
"*** time ago",
"date",
"javascript timeago"
],
"repository": {
"type": "git",
"url": "https://github.com/hustcc/timeago.js"
},
"bugs": {
"url": "https://github.com/hustcc/timeago.js/issues"
}
}