|
17 | 17 | }, |
18 | 18 | "scripts": { |
19 | 19 | "start": "yarn install && yarn generate && cross-env TS_NODE_PROJECT=\"webpack.tsconfig.json\" && yarn run start:dev", |
20 | | - "start:cloud": "yarn install && yarn generate && cross-env TS_NODE_PROJECT=\"webpack.tsconfig.json\" && yarn run start:dev-cloud", |
21 | 20 | "start:dev": "webpack-dev-server --config ./webpack.dev.ts", |
22 | | - "start:dev-cloud": "cross-env CLOUD_LOGOUT_URL=http://localhost:8080/api/v2/signout CLOUD_URL=http://localhost:4000 webpack-dev-server --config ./webpack.dev.ts", |
| 21 | + "start:dev:oss": "yarn start:dev", |
| 22 | + "start:dev:remocal": "NODE_ENV=development UI_SHA=local_dev_mode BASE_PATH=/ API_BASE_PATH=/ PORT=8080 PUBLIC=${PUBLIC:-https://twodotoh.a.influxcloud.dev.local/} CLOUD_URL=/auth yarn start", |
| 23 | + "start:kind": "echo 'please start using `yarn start:dev:remocal`' && yarn start:dev:remocal", |
23 | 24 | "start:docker": "yarn generate && yarn run start:dev", |
24 | | - "start:kind": "NODE_ENV=development UI_SHA=local_dev_mode BASE_PATH=/ API_BASE_PATH=/ PORT=8080 PUBLIC=${PUBLIC:-https://twodotoh.a.influxcloud.dev.local/} CLOUD_URL=/auth yarn start", |
25 | 25 | "build": "yarn install --silent && yarn build:ci", |
26 | 26 | "build:ci": "yarn generate && webpack --config webpack.prod.ts", |
27 | 27 | "build:fast": "webpack --config webpack.fast.ts", |
|
31 | 31 | "test:watch": "jest --watch --verbose false", |
32 | 32 | "test:update": "jest --updateSnapshot", |
33 | 33 | "test:debug": "node --inspect-brk $(npm bin)/jest --runInBand --watch --verbose false", |
34 | | - "test:e2e": "CYPRESS_dexUrl=https://$INGRESS_HOST:$PORT_HTTPS CYPRESS_baseUrl=http://localhost:9999 cypress run --browser chrome --reporter junit --reporter-options 'mochaFile=junit-results/test-output-[hash].xml'", |
35 | | - "test:e2e:ci": "CYPRESS_dexUrl=https://$INGRESS_HOST:$PORT_HTTPS CYPRESS_baseUrl=https://localhost:443 cypress run --parallel --browser chrome --reporter junit --reporter-options 'mochaFile=junit-results/test-output-[hash].xml'", |
36 | | - "test:e2e:report": "junit-viewer --results=junit-results --save-file=cypress/site/junit-report.html", |
37 | | - "test:e2e:clean": "rm junit-results/*.xml", |
38 | | - "test:e2e:all": "yarn test:e2e:clean && yarn test:e2e; yarn test:e2e:report;", |
39 | | - "test:e2e:kind": "CYPRESS_dexUrl=http://dex-twodotoh.a.influxcloud.dev.local CYPRESS_baseUrl=https://twodotoh.a.influxcloud.dev.local CYPRESS_password=password cypress open --browser chrome --config chromeWebSecurity=false", |
40 | | - "test:e2e:remocal": "CYPRESS_dexUrl=https://dex-${NS}.remocal.influxdev.co CYPRESS_baseUrl=https://${NS}.remocal.influxdev.co CYPRESS_password=password cypress open --browser chrome --config chromeWebSecurity=false", |
| 34 | + "test:e2e:open": "CYPRESS_password=password cypress open --browser chrome --config chromeWebSecurity=false", |
| 35 | + "test:e2e:closed": "CYPRESS_password=password cypress run --browser chrome --config chromeWebSecurity=false --reporter junit --reporter-options 'mochaFile=junit-results/test-output-[hash].xml'", |
| 36 | + "test:e2e:report": "junit-viewer --results=junit-results --save-file=junit-results/junit-report.html && open ./junit-results/junit-report.html", |
| 37 | + "test:e2e:clean": "rm -rf cypress/screenshots && rm -rf cypress/videos && rm -f junit-results/*", |
| 38 | + "test:e2e:oss": "CYPRESS_dexUrl=OSS CYPRESS_baseUrl=http://localhost:8080 yarn test:e2e:open -- --config testFiles='{oss,shared}/**/*.*'", |
| 39 | + "test:e2e:oss:report": "yarn test:e2e:clean && CYPRESS_dexUrl=OSS CYPRESS_baseUrl=http://localhost:8080 yarn test:e2e:closed -- --config testFiles='{oss,shared}/**/*.*'; yarn test:e2e:report;", |
| 40 | + "test:e2e:remocal": "CYPRESS_dexUrl=https://dex-${NS}.remocal.influxdev.co CYPRESS_baseUrl=https://${NS}.remocal.influxdev.co yarn test:e2e:open -- --config testFiles='{cloud,shared}/**/*.*'", |
41 | 41 | "test:e2e:remocal:iox": "CYPRESS_useIox=true yarn test:e2e:remocal", |
| 42 | + "test:e2e:remocal:report": "yarn test:e2e:clean && CYPRESS_dexUrl=https://dex-${NS}.remocal.influxdev.co CYPRESS_baseUrl=https://${NS}.remocal.influxdev.co yarn test:e2e:closed -- --config testFiles='{cloud,shared}/**/*.*'; yarn test:e2e:report;", |
| 43 | + "test:e2e:remocal:iox:report": "CYPRESS_useIox=true yarn test:e2e:remocal:report", |
42 | 44 | "test:circleci": "yarn run test:ci --runInBand", |
43 | 45 | "test:ci": "JEST_JUNIT_OUTPUT_DIR=\"./coverage\" jest --ci --coverage", |
44 | 46 | "lint": "yarn tsc && yarn prettier && yarn eslint", |
|
50 | 52 | "prettier:fix": "pretty-quick --config .prettierrc.json --write '{src,cypress}/**/*.{ts,tsx}'", |
51 | 53 | "tsc": "tsc -p ./tsconfig.json --noEmit --pretty --skipLibCheck", |
52 | 54 | "tsc:watch": "yarn tsc --watch", |
53 | | - "cy": "CYPRESS_dexUrl=https://$INGRESS_HOST:$PORT_HTTPS CYPRESS_baseUrl=http://localhost:9999 cypress open", |
54 | | - "cy:dev": "source ../monitor-ci/.env && CYPRESS_dexUrl=CLOUD CYPRESS_baseUrl=https://$INGRESS_HOST:$PORT_HTTPS cypress open --config testFiles='{cloud,shared}/**/*.*'", |
55 | | - "cy:dev-oss": "source ../monitor-ci/.env && CYPRESS_dexUrl=OSS CYPRESS_baseUrl=https://$INGRESS_HOST:$PORT_HTTPS cypress open --config testFiles='{oss,shared}/**/*.*'", |
56 | 55 | "generate": "export SHA=db14de0d91be00e75eb946d768e88d771b20a2a9 && export REMOTE=https://raw.githubusercontent.com/influxdata/openapi/${SHA}/ && yarn generate-meta", |
57 | 56 | "generate-local": "export REMOTE=../openapi/ && yarn generate-meta", |
58 | 57 | "generate-local-cloud": "export REMOTE=../openapi/ && yarn generate-meta-cloud", |
|
0 commit comments