|
52 | 52 | }, |
53 | 53 | "scripts": { |
54 | 54 | "start": "react-scripts start", |
| 55 | + "start:ipfs": "REACT_APP_IPFS=True PUBLIC_URL='.' yarn start", |
55 | 56 | "start:test": "REACT_APP_STAGE=local yarn start", |
| 57 | + "start:test:ipfs": "REACT_APP_STAGE=local yarn start:ipfs", |
56 | 58 | "build": "CI=false react-scripts --max_old_space_size=4096 build", |
| 59 | + "build:ipfs": "REACT_APP_IPFS=True PUBLIC_URL='.' yarn build", |
57 | 60 | "postbuild": "cp build/index.html build/200.html", |
58 | 61 | "test": "react-scripts test --env=jsdom", |
59 | 62 | "test:coverage": "npm test -- --coverage", |
|
63 | 66 | "subgraph": "node scripts/subgraph.js", |
64 | 67 | "advance": "node src/testing-utils/advance.js", |
65 | 68 | "cypress:open": "yarn run cypress open", |
66 | | - "cypress:record": "yarn run cypress run --record --key $CYPRESS_TOKEN", |
| 69 | + "cypress:open:ipfs": "yarn run cypress open --config-file cypress_ipfs.json", |
| 70 | + "cypress:record": "/bin/sh -c 'if [ -z ${CYPRESS_TOKEN+x} ]; then yarn run cypress run; else yarn run cypress run --record --key $CYPRESS_TOKEN; fi'", |
| 71 | + "cypress:record:ipfs": "/bin/sh -c 'if [ -z ${CYPRESS_TOKEN+x} ]; then yarn run cypress run --config-file cypress_ipfs.json; else yarn run cypress run --config-file cypress_ipfs.json --record --key $CYPRESS_TOKEN; fi'", |
67 | 72 | "cypress:run-local": "yarn run cypress run", |
| 73 | + "cypress:run-local:ipfs": "yarn run cypress run --config-file cypress_ipfs.json", |
68 | 74 | "cypress:run": "yarn preTest && start-server-and-test start:test http://localhost:3000 cypress:record", |
| 75 | + "cypress:run:ipfs": "yarn preTest && start-server-and-test start:test:ipfs http://localhost:3000 cypress:record:ipfs", |
69 | 76 | "cypress:ci": "/bin/sh -c 'if [ \"$TRAVIS_PULL_REQUEST\" = \"true\" ]; then yarn cypress:run; else yarn cypress:run; fi'", |
| 77 | + "cypress:ci:ipfs": "/bin/sh -c 'if [ \"$TRAVIS_PULL_REQUEST\" = \"true\" ]; then yarn cypress:run:ipfs; else yarn cypress:run:ipfs; fi'", |
70 | 78 | "deploy:dev": "npm run build && npm run postbuild && surge build ensappdev.surge.sh", |
71 | 79 | "deploy": "npm run build && npm run postbuild && surge build app.ens.domains" |
72 | 80 | }, |
|
0 commit comments