forked from yenargy/website
-
Notifications
You must be signed in to change notification settings - Fork 0
/
package.json
142 lines (142 loc) · 4.23 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
135
136
137
138
139
140
141
142
{
"name": "marketprotocol.io",
"version": "2.1.0",
"main": "index.js",
"license": "Apache-2.0",
"dependencies": {
"antd": "3.3.0",
"lodash": "^4.17.10",
"react": "^16.2.0",
"react-dom": "^16.2.0",
"react-ga": "^2.5.0",
"react-helmet": "^5.2.0",
"react-router": "^4.2.0",
"react-static": "^5",
"react-static-routes": "^1.0.0",
"styled-components": "3.2.1"
},
"devDependencies": {
"@types/chai": "^4.1.3",
"@types/chai-enzyme": "^0.6.4",
"@types/enzyme": "^3.1.10",
"@types/jest": "^22.2.3",
"@types/node": "^9.4.7",
"@types/react": "^16.0.40",
"@types/react-dom": "^16.0.2",
"@types/react-hot-loader": "^3.0.6",
"@types/react-router": "^4.0.22",
"autoprefixer": "^8.1.0",
"babel-core": "^6.26.3",
"babel-jest": "^22.4.3",
"babel-loader": "^7.1.4",
"babel-plugin-import": "^1.6.6",
"babel-preset-env": "^1.6.1",
"babel-register": "^6.26.0",
"chai": "^4.1.2",
"convert-tsconfig-paths-to-webpack-aliases": "^0.9.2",
"coveralls": "^3.0.0",
"enzyme": "^3.3.0",
"enzyme-adapter-react-16": "^1.1.1",
"eslint-config-react-tools": "1.1.2",
"extract-text-webpack-plugin": "^3.0.2",
"husky": "^0.14.3",
"jest": "^22.4.3",
"less": "^3.0.1",
"less-loader": "^4.1.0",
"less-vars-to-js": "^1.2.1",
"lint-staged": "^7.0.5",
"postcss-flexbugs-fixes": "^3.3.0",
"prettier": "^1.12.1",
"sitemap-generator": "^8.1.1",
"ts-jest": "^22.4.4",
"ts-loader": "^3.5.0",
"tslint": "^5.9.1",
"tslint-config-prettier": "^1.12.0",
"typescript": "^2.7.2"
},
"scripts": {
"start": "react-static start",
"stage": "react-static build --staging",
"build": "react-static build",
"build:ci": "npm run clean && react-static build && npm run copy:assets",
"test": "node scripts/test.js --env=jsdom",
"coveralls": "cat ./coverage/lcov.info | node node_modules/.bin/coveralls",
"clean": "rm -rf ./dist/",
"copy:assets": "cp -r ./assets ./dist/",
"precommit": "lint-staged",
"lint-ts": "tslint --fix \"./src/**/*.{ts,tsx}\"",
"prettier-ts": "prettier --single-quote --parser typescript --write \"./src/**/*.{ts,tsx}\"",
"sitemap": "node scripts/sitemap.js"
},
"lint-staged": {
"./src/**/*.{ts,tsx}": [
"npm run prettier-ts",
"npm run lint-ts",
"git add"
],
"./src/**/*.js": [
"prettier --single-quote --write",
"git add"
],
"./test/**/*.{js,jsx}": [
"prettier --single-quote --write",
"git add"
]
},
"jest": {
"globals": {
"ts-jest": {
"tsConfigFile": "tsconfig.jest.json",
"useBabelrc": true
}
},
"collectCoverageFrom": [
"src/**/*.{ts,tsx,js,jsx,mjs}"
],
"setupFiles": [],
"testMatch": [
"<rootDir>/test/**/*.test.{js,jsx,ts,tsx,mjs}"
],
"testEnvironment": "node",
"testURL": "http://localhost",
"transform": {
"^.+\\.(ts|tsx|js|jsx|mjs)$": "ts-jest",
"^.+\\.less$": "<rootDir>/config/jest/cssTransform.js",
"^(?!.*\\.(js|jsx|mjs|css|json)$)": "<rootDir>/config/jest/fileTransform.js"
},
"moduleNameMapper": {
"\\.(css|less|sass|scss)$": "<rootDir>/config/jest/cssTransform.js",
"\\.(gif|ttf|eot|svg)$": "<rootDir>/config/jest/fileTransform.js",
"^@images(.*)$": "<rootDir>/src/assets/images$1",
"^@styledComponents": "<rootDir>/src/Styles.tsx",
"^@styles(.*)$": "<rootDir>/src/styles$1",
"^@components(.*)$": "<rootDir>/src/components$1",
"^@containers(.*)$": "<rootDir>/src/containers$1",
"^@constants(.*)$": "<rootDir>/src/constants$1",
"^@helpers(.*)$": "<rootDir>/src/helpers$1",
"^@src(.*)$": "<rootDir>/src$1"
},
"transformIgnorePatterns": [
"[/\\\\]node_modules[/\\\\].+\\.(ts|tsx|less|css|js|jsx|mjs)$",
"!node_modules/react-static/docs-dist/.+.js$"
],
"modulePaths": [
"node_modules",
"<rootDir>/src/*",
"<rootDir>/src/components",
"<rootDir>/node_modules/react-static/docs-dist"
],
"moduleFileExtensions": [
"ts",
"tsx",
"web.js",
"mjs",
"js",
"json",
"web.jsx",
"jsx",
"node"
],
"setupTestFrameworkScriptFile": "<rootDir>/test/setup.js"
}
}