This repository was archived by the owner on Aug 28, 2021. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpackage.json
More file actions
144 lines (144 loc) · 3.87 KB
/
package.json
File metadata and controls
144 lines (144 loc) · 3.87 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
{
"name": "react-translator2",
"version": "2.0.0",
"description": "A deadly simple i18n translate plugin for React, ready for Server Side Rendering.",
"main": "dist/cjs/react-translator.js",
"module": "dist/es/index.js",
"unpkg": "dist/umd/react-translator.js",
"repository": "git@github.com:JounQin/react-translator.git",
"author": "JounQin <admin@1stg.me>",
"license": "MIT",
"scripts": {
"build:es": "tsc -p tsconfig.build.json --outDir dist/es -d",
"build:cjs": "cross-env FORMAT=cjs rollup -c",
"build:umd": "concurrently \"rollup -c\" \"cross-env NODE_ENV=production rollup -c\"",
"build": "rimraf dist && npm run build:es && concurrently \"npm run build:cjs\" \"npm run build:umd\"",
"dev": "webpack-dev-server --color --hot",
"docs": "rimraf docs && cross-env NODE_ENV=production webpack --color --progress -p",
"lint": "eslint . --ext .js,.ts,.tsx --max-warnings 10",
"test": "cross-env NODE_ENV=development jest -u",
"prepublishOnly": "npm run build"
},
"files": [
"dist"
],
"types": "dist/es/index.d.ts",
"babel": {
"presets": [
[
"@babel/env",
{
"modules": false
}
],
"@babel/react",
"@babel/typescript"
],
"plugins": [
"@babel/proposal-class-properties",
"react-hot-loader/babel"
]
},
"eslintConfig": {
"extends": "1stg/react"
},
"eslintIgnore": [
"coverage",
"dist",
"docs"
],
"husky": {
"hooks": {
"pre-commit": "lint-staged && npm run docs && git add -A",
"pre-push": "npm run test"
}
},
"jest": {
"collectCoverage": true,
"coverageThreshold": {
"global": {
"branches": 100,
"functions": 100,
"lines": 100,
"statements": 100
}
},
"moduleNameMapper": {
"^react-translator$": "<rootDir>/lib"
},
"setupFilesAfterEnv": [
"@testing-library/react/cleanup-after-each"
],
"preset": "ts-jest"
},
"lint-staged": {
"*.{json,md,yml}": [
"prettier --write",
"git add"
],
"*.{js,ts,tsx}": [
"eslint --fix",
"git add"
]
},
"prettier": {
"semi": false,
"singleQuote": true,
"trailingComma": "all"
},
"peerDependencies": {
"react": "^16.8.0"
},
"dependencies": {
"hoist-non-react-statics": "^3.3.0"
},
"devDependencies": {
"@babel/core": "^7.4.5",
"@babel/plugin-proposal-class-properties": "^7.4.4",
"@babel/preset-env": "^7.4.5",
"@babel/preset-react": "^7.0.0",
"@babel/preset-typescript": "^7.3.3",
"@testing-library/react": "^8.0.4",
"@types/hoist-non-react-statics": "^3.3.1",
"@types/html-webpack-plugin": "^3.2.0",
"@types/jest": "^24.0.15",
"@types/lodash": "^4.14.135",
"@types/node": "^12.0.10",
"@types/react": "^16.8.22",
"@types/react-dom": "^16.8.4",
"@types/react-hot-loader": "^4.1.0",
"@types/react-test-renderer": "^16.8.2",
"@types/webpack": "^4.4.34",
"@types/webpack-env": "^1.13.9",
"babel-loader": "^8.0.6",
"concurrently": "^4.1.1",
"cross-env": "^5.2.0",
"eslint": "^6.0.1",
"eslint-config-1stg": "^5.2.0",
"fork-ts-checker-webpack-plugin": "^1.3.7",
"html-loader": "^0.5.5",
"html-webpack-plugin": "^3.2.0",
"husky": "^3.0.0",
"jest": "^24.8.0",
"lint-staged": "^9.0.2",
"lodash-es": "^4.17.11",
"prettier": "^1.18.2",
"pug": "^2.0.4",
"pug-plain-loader": "^1.0.0",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-hot-loader": "^4.12.0",
"react-test-renderer": "^16.8.6",
"rimraf": "^2.6.3",
"rollup": "^1.16.3",
"rollup-plugin-buble": "^0.19.6",
"rollup-plugin-replace": "^2.2.0",
"rollup-plugin-uglify": "^6.0.2",
"ts-jest": "^24.0.2",
"ts-node": "^8.3.0",
"typescript": "^3.5.2",
"webpack": "^4.35.0",
"webpack-cli": "^3.3.5",
"webpack-dev-server": "^3.7.2"
}
}