-
Notifications
You must be signed in to change notification settings - Fork 2
/
package.json
134 lines (134 loc) · 4.34 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
{
"name": "@w3stside/ts-react-app",
"version": "0.0.1",
"description": "",
"main": "src/index.js",
"scripts": {
"start": "NODE_ENV=development webpack-dev-server --mode development --hot",
"mock": "NODE_ENV=development MOCK=true webpack-dashboard -- webpack-dev-server --mode development --hot",
"build": "rimraf ./dist && NODE_ENV=production webpack --mode production",
"lint": "eslint src --ext .ts,.tsx,.js",
"lint:fix": "eslint --fix . --ext .ts,.tsx,.js",
"stats": "NODE_ENV=production webpack --mode production --env.stats --profile --json > stats.json && webpack-bundle-analyzer ./stats.json ./dist",
"test": "MOCK=true jest",
"test-coverage": "MOCK=true jest --coverage && cat ./coverage/lcov.info | coveralls",
"verify": "yarn lint && yarn test",
"format": "prettier --write \"src/**/*.ts\" \"src/**/*.js\""
},
"husky": {
"hooks": {
"pre-commit": "yarn verify"
}
},
"jest": {
"roots": [
"<rootDir>/test"
],
"transform": {
"^.+\\.tsx?$": "ts-jest"
},
"testRegex": "(/__tests__/.*|(\\.|/)(test|spec))\\.tsx?$",
"moduleDirectories": [
"node_modules",
"src"
],
"moduleFileExtensions": [
"ts",
"tsx",
"js",
"jsx",
"json",
"node"
],
"snapshotSerializers": [
"enzyme-to-json/serializer"
],
"setupFilesAfterEnv": [
"<rootDir>/test/setupEnzyme.ts"
],
"moduleNameMapper": {
"\\.(jpg|ico|jpeg|png|gif|eot|otf|webp|svg|ttf|woff|woff2|mp4|webm|wav|mp3|m4a|aac|oga)$": "<rootDir>/test/mocks/fileMock.js",
"\\.(css|less)$": "<rootDir>/mocks/fileMock.js"
},
"globalSetup": "<rootDir>/test/globalSetup.ts"
},
"author": "",
"dependencies": {
"@fortawesome/fontawesome-svg-core": "^1.2.25",
"@fortawesome/free-regular-svg-icons": "^5.11.2",
"@fortawesome/free-solid-svg-icons": "^5.11.2",
"@fortawesome/react-fontawesome": "^0.1.4",
"@hot-loader/react-dom": "^16.8.6",
"@types/react-select": "^3.0.5",
"modali": "^1.2.0",
"polished": "^3.4.1",
"react": "^16.8.6",
"react-copy-to-clipboard": "^5.0.1",
"react-dom": "^16.8.6",
"react-hook-form": "^3.26.2",
"react-hot-loader": "^4.12.10",
"react-router-dom": "^5.0.1",
"react-select": "^3.0.8",
"react-toastify": "^5.4.0",
"styled-components": "^4.3.2"
},
"devDependencies": {
"@babel/core": "^7.6.0",
"@babel/plugin-proposal-class-properties": "^7.5.5",
"@babel/plugin-syntax-dynamic-import": "^7.2.0",
"@babel/plugin-transform-runtime": "^7.6.0",
"@babel/preset-env": "^7.6.0",
"@babel/preset-react": "^7.0.0",
"@babel/register": "^7.6.0",
"@fortawesome/fontawesome-common-types": "^0.2.25",
"@types/enzyme": "^3.10.3",
"@types/enzyme-adapter-react-16": "^1.0.5",
"@types/jest": "^24.0.18",
"@types/node": "^12.7.5",
"@types/qrcode.react": "^0.9.0",
"@types/react": "^16.8.23",
"@types/react-copy-to-clipboard": "^4.3.0",
"@types/react-dom": "^16.8.5",
"@types/react-router": "^5.0.3",
"@types/react-router-dom": "^5.0.1",
"@types/styled-components": "^4.1.19",
"@typescript-eslint/eslint-plugin": "^2.8.0",
"@typescript-eslint/parser": "^2.8.0",
"babel-jest": "^24.9.0",
"babel-loader": "^8.0.6",
"babel-plugin-styled-components": "^1.10.6",
"coveralls": "^3.0.6",
"css-loader": "^3.2.0",
"dotenv": "^8.1.0",
"enzyme": "^3.10.0",
"enzyme-adapter-react-16": "^1.14.0",
"enzyme-to-json": "^3.4.0",
"eslint": "^6.1.0",
"eslint-config-prettier": "^6.3.0",
"eslint-plugin-import": "^2.18.2",
"eslint-plugin-jest": "^22.17.0",
"eslint-plugin-prettier": "^3.1.0",
"eslint-plugin-react": "^7.14.3",
"eslint-plugin-react-hooks": "^2.0.1",
"eslint-utils": ">=1.4.1",
"file-loader": "^4.2.0",
"fork-ts-checker-webpack-plugin": "^1.4.3",
"html-webpack-plugin": "^4.0.0-beta.8",
"husky": "^3.0.5",
"jest": "^24.9.0",
"jest-enzyme": "^7.1.1",
"prettier": "^1.18.2",
"react-dev-utils": "^9.0.1",
"react-test-renderer": "^16.9.0",
"rimraf": "^2.6.3",
"style-loader": "^1.0.0",
"ts-jest": "^24.0.2",
"ts-loader": "^6.1.0",
"typescript": "^3.7.2",
"webpack": "^4.38.0",
"webpack-bundle-analyzer": "^3.4.1",
"webpack-cli": "^3.3.8",
"webpack-dashboard": "^3.2.0",
"webpack-dev-server": "^3.7.2"
}
}