-
Notifications
You must be signed in to change notification settings - Fork 56
/
package.json
122 lines (122 loc) · 5.12 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
{
"name": "politeiagui",
"version": "0.1.1",
"dependencies": {
"ajv": "^6.12.6",
"concurrently": "^5.3.0",
"core-decorators": "^0.20.0",
"crypto-js": "^3.1.9-1",
"date-fns": "^1.30.1",
"diff": "^3.5.0",
"dompurify": "^2.4.0",
"dotenv-parse-variables": "^0.2.3",
"font-awesome": "^4.7.0",
"formik": "^1.5.8",
"if-node-version": "^1.1.1",
"js-file-download": "^0.4.9",
"js-sha3": "^0.8.0",
"localforage": "^1.9.0",
"lodash": "^4.17.20",
"normalize.css": "^8.0.1",
"pi-ui": "https://github.com/decred/pi-ui",
"prop-types": "^15.7.2",
"qr-image": "^3.2.0",
"query-string": "^6.13.7",
"react": "^16.14.0",
"react-body": "^0.2.0",
"react-content-loader": "^4.3.4",
"react-datasheet": "^1.3.15",
"react-dom": "^16.14.0",
"react-file-reader": "https://github.com/pgonzalez-santiago/react-file-reader",
"react-file-reader-input": "https://github.com/ngokevin/react-file-reader-input.git",
"react-infinite-scroller": "^1.2.4",
"react-markdown": "^6.0.3",
"react-mde": "^10.3.0-alpha1",
"react-redux": "^7.2.9",
"react-router-dom": "^4.2.2",
"react-scripts": "^3.4.4",
"react-transition-group": "^4.4.5",
"redux": "^4.0.5",
"redux-form": "^8.3.7",
"redux-thunk": "^2.2.0",
"remark-gfm": "1.0.0",
"reselect": "^4.0.0",
"showdown": "^1.9.1",
"source-map-explorer": "^1.8.0",
"tweetnacl": "^1.0.2",
"tweetnacl-util": "^0.15.0",
"typescript": "^3.9.7",
"xss-filters": "^1.2.7",
"yup": "0.28.3"
},
"scripts": {
"mockapi": "node mockapi.js",
"analyze": "source-map-explorer build/static/js/main.*",
"start": "if-node-version '>= 17' && node -r dotenv/config ./node_modules/.bin/react-app-rewired --openssl-legacy-provider start dotenv_config_path=./config/politeia.env || node -r dotenv/config ./node_modules/.bin/react-app-rewired start dotenv_config_path=./config/politeia.env",
"start:cms": "if-node-version '>= 17' && node -r dotenv/config ./node_modules/.bin/react-app-rewired --openssl-legacy-provider start dotenv_config_path=./config/cms.env || node -r dotenv/config ./node_modules/.bin/react-app-rewired start dotenv_config_path=./config/cms.env",
"build": "if-node-version '>= 17' && node -r dotenv/config ./node_modules/.bin/react-app-rewired --openssl-legacy-provider build dotenv_config_path=./config/politeia.env || node -r dotenv/config ./node_modules/.bin/react-app-rewired build dotenv_config_path=./config/politeia.env",
"build:cms": "if-node-version '>= 17' && node -r dotenv/config ./node_modules/.bin/react-app-rewired --openssl-legacy-provider build dotenv_config_path=./config/cms.env || node -r dotenv/config ./node_modules/.bin/react-app-rewired build dotenv_config_path=./config/cms.env",
"test": "react-app-rewired test --env=jsdom",
"up": "docker-compose up --abort-on-container-exit --exit-code-from e2e",
"cy:run": "cd teste2e && yarn && cypress run",
"cy:open": "cd teste2e && yarn && cypress open",
"test:e2e:run": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test 'yarn start' https-get://localhost:3000 cy:run",
"test:e2e:browser": "START_SERVER_AND_TEST_INSECURE=1 start-server-and-test 'yarn start' https-get://localhost:3000 cy:open",
"eject": "react-app-rewired eject",
"prettify": "prettier --write 'src/**/*.{js,jsx,css,json}' && prettier --write 'teste2e/**/*.{js,json}'",
"prettify:diff": "prettier --list-different 'src/**/*.{js,jsx,css,json}' && prettier --list-different 'teste2e/**/*.{js,json}'",
"lint": "./node_modules/.bin/eslint 'src/**/*.{jsx,js}' && ./node_modules/.bin/eslint 'teste2e/**/*.{js, json}' --ignore-pattern node_modules"
},
"jest": {
"collectCoverageFrom": [
"src/actions/*.{js,jsx}",
"src/lib/*.{js,jsx}",
"src/reducers/*.{js,jsx}",
"src/selectors/*.{js,jsx}",
"!<rootDir>/node_modules/",
"!<rootDir>/path/to/dir/"
],
"moduleNameMapper": {
"^src(.*)": "<rootDir>/src"
}
},
"devDependencies": {
"@testing-library/cypress": "^7.0.3",
"connect": "^3.7.0",
"connect-api-mocker": "^1.7.0",
"cypress": "^7.0.0",
"cypress-failed-log": "^2.10.0",
"cypress-localstorage-commands": "^1.6.1",
"enzyme": "^3.11.0",
"enzyme-adapter-react-16": "^1.15.5",
"enzyme-to-json": "^3.6.1",
"eslint": "^6.8.0",
"eslint-config-prettier": "^6.15.0",
"eslint-config-standard-react": "^9.2.0",
"eslint-plugin-cypress": "^2.11.2",
"eslint-plugin-react": "^7.31.10",
"fetch-mock": "^9.11.0",
"https": "^1.0.0",
"nightwatch": "^1.5.1",
"pem": "^1.14.4",
"prettier": "^2.7.1",
"pretty-quick": "^3.1.0",
"react-app-rewired": "^2.1.8",
"react-error-overlay": "6.0.11",
"react-test-renderer": "^16.14.0",
"redux-actions-assertions": "^1.3.0",
"redux-mock-store": "^1.5.4",
"selenium-server-standalone-jar": "^3.141.59",
"start-server-and-test": "^1.11.6"
},
"resolutions": {
"//": "See https://github.com/facebook/create-react-app/issues/11773",
"react-error-overlay": "6.0.11"
},
"browserslist": [
">0.2%",
"not dead",
"not ie <= 11",
"not op_mini all"
]
}