-
Notifications
You must be signed in to change notification settings - Fork 1
/
package.json
45 lines (45 loc) · 2.14 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
{
"name": "portis-example",
"version": "0.1.0",
"private": true,
"dependencies": {
"@portis/web3": "^2.0.0-beta.54",
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"axios": "^0.19.2",
"react": "^16.12.0",
"react-dom": "^16.12.0",
"react-scripts": "3.4.0",
"web3": "^1.2.6"
},
"scripts": {
"start": "react-scripts start",
"build": "react-scripts build",
"test": "react-scripts test",
"eject": "react-scripts eject",
"build-provider-engine": "cd ../provider-engine && npm i && npm run prepublishOnly",
"install-sdk-deps": "npm run replace-sdk-package-json && npm run replace-sdk-web3-package-json && cd ../web-sdk/packages/portis-web3 && npm i && npm i @portis/web3-provider-engine",
"replace-sdk-package-json": "cd ../web-sdk && rm ./package.json && cp ../portis-example/sdk-package.json ./package.json",
"replace-sdk-web3-package-json": "cd ../web-sdk && rm ./packages/portis-web3/package.json && cp ../portis-example/sdk-web3-package.json ./packages/portis-web3/package.json",
"link-deps": "rm -rf ./node_modules/@portis/web3 && rm -rf ./node_modules/@portis/web3-provider-engine && cd ../ && ln -s $(pwd)/provider-engine $(pwd)/portis-example/node_modules/@portis/web3-provider-engine && ln -s $(pwd)/web-sdk/packages/portis-web3 $(pwd)/portis-example/node_modules/@portis/web3",
"link-deps-in-sdk": "rm -rf ../web-sdk/packages/portis-web3/node_modules/@portis/web3-provider-engine && cd ../ && ln -s $(pwd)/provider-engine $(pwd)/web-sdk/packages/portis-web3/node_modules/@portis/web3-provider-engine",
"build-sdk": "cd ../web-sdk && npm i && npm run build",
"port-a-fort": "yarn build-provider-engine && yarn install-sdk-deps && yarn replace-sdk-web3-package-json && yarn link-deps-in-sdk && yarn build-sdk && yarn && yarn link-deps"
},
"eslintConfig": {
"extends": "react-app"
},
"browserslist": {
"production": [
">0.2%",
"not dead",
"not op_mini all"
],
"development": [
"last 1 chrome version",
"last 1 firefox version",
"last 1 safari version"
]
}
}