-
Notifications
You must be signed in to change notification settings - Fork 22
/
package.json
116 lines (116 loc) · 3.13 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
114
115
116
{
"name": "timeago-react",
"version": "3.0.6",
"description": "timeago-react is a simple(only 1kb) react component used to format date with `*** time ago` statement. eg: '3 hours ago'.",
"main": "lib/timeago-react.js",
"module": "esm/timeago-react.js",
"files": [
"src",
"lib",
"esm"
],
"scripts": {
"lint": "eslint src/**/* __tests__/**/*",
"lint-staged": "lint-staged",
"test": "jest",
"ci": "npm run lint && npm run test && lint-md .",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"build": "npm run build:cjs && npm run build:esm",
"build:cjs": "rimraf ./lib && tsc --module commonjs --outDir lib",
"build:esm": "rimraf ./esm && tsc --module ESNext --outDir esm",
"build-demos": "webpack --env.prod --config ./demo/webpack.config.js",
"start-demos": "webpack --config ./demo/webpack.config.js",
"prepublishOnly": "npm run build"
},
"repository": {
"type": "git",
"url": "https://github.com/hustcc/timeago-react.git"
},
"keywords": [
"react",
"component",
"timeago-react",
"react-timeago",
"timeago.js",
"timeago",
"react-component"
],
"author": "hustcc (http://github.com/hustcc)",
"license": "MIT",
"bugs": {
"url": "https://github.com/hustcc/timeago-react/issues"
},
"homepage": "https://github.com/hustcc/timeago-react",
"devDependencies": {
"@commitlint/cli": "^8.2.0",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "^24.0.19",
"@types/react": "^16.9.9",
"@types/react-dom": "^16.9.3",
"@typescript-eslint/eslint-plugin": "^2.4.0",
"@typescript-eslint/parser": "^2.4.0",
"coveralls": "^3.0.0",
"cross-env": "^5.1.3",
"css-loader": "^3.2.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.15.1",
"eslint": "^6.5.1",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-react": "^7.16.0",
"file-loader": "^4.2.0",
"husky": "^3.0.9",
"jest": "^24.9.0",
"jest-electron": "^0.1.7",
"jest-expect": "^0.0.1",
"lint-md-cli": "^0.1.1",
"lint-staged": "^9.4.2",
"prettier": "^1.18.2",
"react": "^16.11.0",
"react-adsense": "^0.1.0",
"react-dom": "^16.11.0",
"rimraf": "^3.0.0",
"style-loader": "^1.0.0",
"ts-jest": "^24.1.0",
"ts-loader": "^6.2.1",
"typescript": "^3.6.4",
"url-loader": "^2.2.0",
"webpack": "^4.41.2",
"webpack-cli": "^3.3.10"
},
"dependencies": {
"timeago.js": "^4.0.0"
},
"peerDependencies": {
"react": "^0.14.0 || ^15.0.0 || ^16.0.0 || ^17.0.0 || ^18.0.0"
},
"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"
}
},
"jest": {
"preset": "ts-jest",
"globals": {
"ts-jest": {
"tsConfig": "tsconfig.ci.json"
}
},
"setupFilesAfterEnv": [
"jest-expect"
],
"testRegex": "(/__tests__/.*(test|spec))\\.tsx?$",
"collectCoverage": true,
"collectCoverageFrom": [
"src/timeago-react.*"
]
}
}