-
Notifications
You must be signed in to change notification settings - Fork 33
/
package.json
188 lines (188 loc) · 7.62 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
{
"name": "tradetrust-website",
"version": "2.0.0",
"repository": {
"type": "git",
"url": "https://github.com/TradeTrust/tradetrust-website.git"
},
"license": "ISC",
"scripts": {
"blockchain": "ganache --wallet.mnemonic \"indicate swing place chair flight used hammer soon photo region volume shuffle\" -i 1337",
"blockchain:contracts:synpress": "node --experimental-modules ./tests/e2e/setup-contracts.mjs",
"blockchain:contracts:testcafe": "node --experimental-modules ./src/test/setup-contracts-testcafe.mjs",
"build": "run-s build:sitemap check-types build:css build:app",
"build:dev": "cross-env NODE_ENV=development npm run build",
"build:test": "cross-env NODE_ENV=test NET=local npm run build",
"build:prod": "cross-env NODE_ENV=production NET=mainnet npm run build",
"build:css": "postcss src/tailwind.css -o src/index.css",
"build:app": "webpack --progress --mode production",
"build:sitemap": "npx ts-node --compiler-options '{\"module\":\"commonjs\"}' sitemap.ts",
"check-types": "tsc --sourceMap false --noEmit",
"credits": "npx @opengovsg/credits-generator && npx mdpdf ./CREDITS.md ./public/static/common/credits.pdf",
"dev": "run-p dev:*",
"dev:css": "npx tailwindcss -i ./src/tailwind.css -o ./src/index.css --watch",
"dev:serve": "sleep 2 && cross-env NODE_ENV=development webpack serve",
"integration": "testcafe chrome src/**/*.spec.ts",
"integration:single": "testcafe chrome -L",
"integration:testcafe:prod": "testcafe --config-file \".testcaferc-prod.json\"",
"integration:testcafe:dev": "testcafe --config-file \".testcaferc-dev.json\"",
"integration:testcafe": "run-s blockchain:contracts:testcafe integration:testcafe:prod",
"integration:testcafe:ci": "concurrently -k -s first \"npm:blockchain\" \"npm:integration:testcafe\"",
"integration:metamask": "run-s wait blockchain:contracts:synpress integration:synpress",
"integration:synpress": "cross-env CYPRESS_RESOURCES_WAIT=1 STABLE_MODE=true SECRET_WORDS='indicate swing place chair flight used hammer soon photo region volume shuffle' NETWORK_NAME='localhost' synpress run --configFile='./synpress.config.js'",
"integration:local": "cross-env NET=local npm run dev",
"integration:headful": "concurrently -k -s first \"npm:blockchain\" \"npm:integration:local\" \"npm:integration:metamask\"",
"lint": "eslint ./src --ext .js,.ts,.tsx --max-warnings 0",
"lint:fix": "npm run lint -- --fix",
"prep": "run-s lint:fix test integration:testcafe:dev integration:headful",
"prepare": "husky install",
"serve-static": "npx http-server dist -s -p 3000",
"storybook": "npm run build:css && sleep 2 && storybook dev -p 6006 ",
"storybook:build": "npm run build:css && sleep 2 && storybook build -o docs",
"test": "jest",
"test:coverage": "npm run test -- --collectCoverage",
"test:watch": "npm run test -- --watchAll",
"test:update": "npm run test -- -u",
"wait": "wait-on -l -i 1000 tcp:8545 http-get://localhost:3000"
},
"dependencies": {
"@babel/plugin-proposal-optional-chaining": "^7.21.0",
"@govtechsg/address-identity-resolver": "^1.5.0",
"@govtechsg/ethers-contract-hook": "^2.2.0",
"@govtechsg/oa-encryption": "^1.3.5",
"@govtechsg/open-attestation-utils": "1.0.9",
"@reduxjs/toolkit": "^1.6.1",
"@tradetrust-tt/decentralized-renderer-react-components": "^3.14.3",
"@tradetrust-tt/document-store": "^4.1.0",
"@tradetrust-tt/token-registry": "^4.15.0",
"@tradetrust-tt/tradetrust": "^6.9.7",
"@tradetrust-tt/tradetrust-ui-components": "^2.22.3",
"@tradetrust-tt/tradetrust-utils": "^1.14.3",
"@tradetrust-tt/tt-verify": "^8.10.2",
"@types/gtag.js": "0.0.8",
"buffer": "^6.0.3",
"cross-env": "^7.0.3",
"date-fns": "^2.22.1",
"date-fns-tz": "^1.1.4",
"ethers": "^5.4.7",
"file-saver": "^2.0.5",
"history": "^4.10.1",
"lodash": "^4.17.21",
"pretty-bytes": "^5.6.0",
"qr-scanner": "^1.2.0",
"qrcode.react": "^1.0.1",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-dropzone": "^14.2.1",
"react-feather": "^2.0.9",
"react-helmet": "^6.1.0",
"react-markdown": "^6.0.2",
"react-redux": "^7.2.4",
"react-router-dom": "^5.2.0",
"react-timer-hook": "^3.0.7",
"react-tooltip": "^4.5.1",
"redux": "^4.1.0",
"redux-saga": "^1.1.3",
"swiper": "8.4.2",
"use-persisted-state": "^0.3.3"
},
"devDependencies": {
"@babel/core": "^7.23.3",
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.18.6",
"@babel/preset-env": "^7.22.10",
"@babel/preset-react": "^7.22.5",
"@babel/preset-typescript": "^7.23.3",
"@cypress/webpack-preprocessor": "^6.0.1",
"@govtechsg/open-attestation-cli": "^2.5.0",
"@storybook/addon-essentials": "^8.0.4",
"@storybook/addon-postcss": "^2.0.0",
"@storybook/addon-webpack5-compiler-babel": "^3.0.3",
"@storybook/react": "^8.0.4",
"@storybook/react-webpack5": "^8.0.4",
"@synthetixio/synpress": "^3.7.1",
"@testing-library/jest-dom": "^5.13.0",
"@testing-library/react": "^11.2.7",
"@testing-library/react-hooks": "^7.0.0",
"@types/debug": "^4.1.5",
"@types/file-saver": "^2.0.3",
"@types/jest": "^26.0.23",
"@types/node": "^15.12.2",
"@types/qrcode.react": "^1.0.1",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.6",
"@types/react-helmet": "^6.1.1",
"@types/react-redux": "^7.1.16",
"@types/react-router-dom": "^5.1.7",
"@types/react-tooltip": "^4.2.4",
"@types/use-persisted-state": "^0.3.0",
"@types/webpack-env": "^1.18.4",
"@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0",
"autoprefixer": "^10.4.2",
"babel-jest": "^27.5.1",
"babel-loader": "^8.2.2",
"babel-plugin-macros": "^3.1.0",
"babel-plugin-transform-require-context": "^0.1.1",
"brotli-webpack-plugin": "^1.1.0",
"compression-webpack-plugin": "^6.1.1",
"concurrently": "^6.2.0",
"copy-webpack-plugin": "^6.4.1",
"crypto-browserify": "^3.12.0",
"css-loader": "^5.2.6",
"cypress": "^13.7.1",
"cypress-file-upload": "^5.0.8",
"debug": "^4.3.1",
"eslint": "^7.28.0",
"eslint-config-prettier": "^8.3.0",
"eslint-plugin-jest": "^24.3.6",
"eslint-plugin-prettier": "^3.4.0",
"eslint-plugin-react": "^7.24.0",
"eslint-plugin-react-hooks": "^4.2.0",
"eslint-plugin-storybook": "^0.8.0",
"eslint-plugin-testcafe": "^0.2.1",
"file-loader": "^6.2.0",
"frontmatter-markdown-loader": "^3.6.2",
"ganache": "^7.5.0",
"html-webpack-plugin": "^4.5.2",
"husky": "^6.0.0",
"identity-obj-proxy": "^3.0.0",
"jest": "^26.6.3",
"jest-environment-jsdom-sixteen": "^2.0.0",
"magic-sdk": "^10.0.0",
"nodemon": "^2.0.7",
"npm-run-all": "^4.1.5",
"os-browserify": "^0.3.0",
"path-browserify": "^1.0.1",
"postcss": "^8.4.6",
"postcss-cli": "^8.3.1",
"prettier": "^2.3.1",
"process": "^0.11.10",
"redux-devtools-extension": "^2.13.9",
"shelljs": "^0.8.5",
"sitemap": "^7.1.1",
"storybook": "^8.0.4",
"stream-browserify": "^3.0.0",
"style-loader": "^2.0.0",
"tailwindcss": "^3.0.23",
"testcafe": "^2.3.0",
"ts-jest": "^26.0.0",
"ts-node": "^10.9.2",
"typescript": "^4.3.2",
"vm-browserify": "^1.1.2",
"wait-on": "^5.3.0",
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.4",
"webpack-env": "^0.8.0"
},
"engines": {
"node": "18.x",
"npm": ">=8.0"
},
"overrides": {
"ethereumjs-abi": "https://registry.npmjs.org/ethereumjs-abi/-/ethereumjs-abi-0.6.8.tgz"
},
"optionalDependencies": {
"fsevents": "^2.3.2"
}
}