forked from catamphetamine/react-time-ago
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
100 lines (100 loc) · 4.54 KB
/
package.json
File metadata and controls
100 lines (100 loc) · 4.54 KB
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
{
"name": "react-time-ago",
"version": "3.0.3",
"description": "International highly customizable relative time formatting",
"main": "index.commonjs.js",
"module": "index.js",
"sideEffects": [
"*.css"
],
"peerDependencies": {
"react": ">=0.16.0",
"react-dom": ">=0.16.0"
},
"dependencies": {
"javascript-time-ago": "^1.0.20",
"prop-types": "^15.6.0",
"react-responsive-ui": "^0.14.32"
},
"devDependencies": {
"babel-cli": "^6.6.5",
"babel-core": "^6.7.2",
"babel-loader": "^6.2.10",
"babel-plugin-add-module-exports": "^0.1.2",
"babel-plugin-transform-class-properties": "^6.24.1",
"babel-plugin-transform-object-rest-spread": "^6.26.0",
"babel-plugin-transform-react-display-name": "^6.5.0",
"babel-preset-env": "^1.6.1",
"babel-preset-react": "^6.5.0",
"better-npm-run": "0.0.14",
"chai": "^3.5.0",
"copyfiles": "^1.2.0",
"intl": "^1.2.4",
"istanbul": "^1.1.0-alpha.1",
"mocha": "^2.4.5",
"npm-run-all": "^1.4.0",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"replace-in-file": "^3.4.0",
"rimraf": "^2.5.0",
"webpack": "^2.2.0-rc.3"
},
"scripts": {
"test": "mocha --compilers js:babel-core/register --colors --bail --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive",
"test-coverage": "istanbul cover -x \"commonjs/**\" -x \"modules/**\" -x \"*.test.js\" node_modules/mocha/bin/_mocha -- --compilers js:babel-core/register --colors --reporter dot --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive",
"test-travis": "istanbul cover -x \"commonjs/**\" -x \"modules/**\" -x \"*.test.js\" node_modules/mocha/bin/_mocha --report lcovonly -- --compilers js:babel-core/register --colors --reporter spec --require ./test/setup.js \"./{,!(node_modules|commonjs|modules)/**/}*.test.js\" --recursive",
"browser-build": "better-npm-run browser-build",
"browser-build-dev": "npm run build-es6-modules && WEBPACK_ENV=dev webpack --progress --colors --watch",
"clean-for-build": "rimraf ./commonjs/**/* ./modules/**/*",
"build-commonjs-modules": "better-npm-run build-commonjs-modules",
"build-es6-modules": "better-npm-run build-es6-modules",
"build": "npm-run-all clean-for-build build-commonjs-modules build-es6-modules browser-build",
"update-rrui": "npm update react-responsive-ui",
"copy-styles": "copyfiles --flat node_modules/react-responsive-ui/styles/Tooltip.css .",
"set-style-variables": "npm run set-style-variables--side-padding && npm run set-style-variables--height && npm run set-style-variables--white && npm run set-style-variables--black && npm run set-style-variables--border-radius && npm run set-style-variables--unit",
"set-style-variables--side-padding": "replace-in-file \"/var\\(--rrui-tooltip-side-padding\\)/g\" \"calc(var(--rrui-unit) * 1.5)\" Tooltip.css --isRegex",
"set-style-variables--height": "replace-in-file \"/var\\(--rrui-tooltip-height\\)/g\" \"calc(var(--rrui-unit) * 4)\" ./Tooltip.css --isRegex",
"set-style-variables--white": "replace-in-file \"/var\\(--rrui-white-color\\)/g\" \"white\" ./Tooltip.css --isRegex",
"set-style-variables--black": "replace-in-file \"/var\\(--rrui-black-color\\)/g\" \"black\" ./Tooltip.css --isRegex",
"set-style-variables--border-radius": "replace-in-file \"/var\\(--rrui-border-radius-small\\)/g\" \"0.1rem\" ./Tooltip.css --isRegex",
"set-style-variables--unit": "replace-in-file \"/var\\(--rrui-unit\\)/g\" \"0.6rem\" ./Tooltip.css --isRegex",
"prepublish": "npm-run-all build test update-rrui copy-styles set-style-variables"
},
"betterScripts": {
"browser-build": {
"command": "npm run build-es6-modules && webpack --progress --colors",
"env": {
"WEBPACK_ENV": "build"
}
},
"build-commonjs-modules": {
"command": "babel ./source --out-dir ./commonjs --source-maps",
"env": {
"BABEL_ENV": "commonjs"
}
},
"build-es6-modules": {
"command": "babel ./source --out-dir ./modules --source-maps",
"env": {
"BABEL_ENV": "es6"
}
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/catamphetamine/react-time-ago.git"
},
"keywords": [
"react",
"time",
"ago",
"relative",
"format"
],
"author": "catamphetamine <purecatamphetamine@gmail.com>",
"license": "MIT",
"bugs": {
"url": "https://github.com/catamphetamine/react-time-ago/issues"
},
"homepage": "https://github.com/catamphetamine/react-time-ago#readme"
}