forked from hustcc/timeago.js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
98 lines (98 loc) · 2.86 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
{
"name": "timeago.js",
"officialName": "timeago.js",
"version": "4.0.0-beta.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",
"scripts": {
"test": "cross-env NODE_ENV=babel jest --no-cache && npm run size && lint-md ./",
"size": "size-limit",
"coveralls": "cat ./coverage/lcov.info | coveralls",
"build:umd": "rimraf ./dist && cross-env NODE_ENV=rollup rollup -c && cross-env NODE_ENV=rollup rollup -c rollup.config.all.js && cp -rf dist/ gh-pages",
"build:lib": "rimraf ./lib && cross-env NODE_ENV=babel babel src -d lib",
"build": "npm run build:umd && npm run build:lib && npm run test",
"deploy": "gh-pages -d gh-pages"
},
"typings": "./timeago.d.ts",
"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"
},
"dependencies": {},
"devDependencies": {
"@babel/cli": "^7.1.5",
"@babel/core": "^7.1.6",
"@babel/plugin-proposal-class-properties": "^7.1.0",
"@babel/plugin-proposal-object-rest-spread": "^7.0.0",
"@babel/preset-env": "^7.1.6",
"@types/jquery": "^2.0.40",
"babel-core": "^7.0.0-bridge.0",
"babel-jest": "^23.6.0",
"babel-plugin-add-module-exports": "^1.0.0",
"babel-plugin-version": "^0.2.2",
"coveralls": "^3.0.0",
"cross-env": "^5.1.3",
"gh-pages": "^2.0.0",
"jest": "^23.6.0",
"jest-date-mock": "^1.0.5",
"jest-expect": "^0.0.1",
"jsdom": "^11.5.1",
"lint-md": "^0.0.6",
"rimraf": "^2.6.2",
"rollup": "^0.67.4",
"rollup-plugin-babel": "^4.0.3",
"rollup-plugin-node-resolve": "^4.0.0",
"rollup-plugin-uglify": "^6.0.0",
"size-limit": "^0.18.0"
},
"size-limit": [
{
"limit": "1 KB",
"path": "gh-pages/timeago.min.js"
},
{
"limit": "10 KB",
"path": "gh-pages/timeago.locales.min.js"
}
],
"jest": {
"setupFiles": [],
"setupTestFrameworkScriptFile": "jest-expect",
"testRegex": "(/__tests__/.*(test|spec))\\.(js)$",
"testURL": "https://timeago.org",
"moduleFileExtensions": [
"js",
"json"
],
"transform": {
"^.+\\.js?$": "babel-jest"
},
"collectCoverage": true,
"collectCoverageFrom": [
"src/**/*.{js}",
"!src/localesEntry.js",
"!**/node_modules/**",
"!**/vendor/**"
],
"moduleDirectories": [
"node_modules",
"src"
]
}
}