diff --git a/.circleci/config.yml b/.circleci/config.yml index 20551b005..1ecd9c3d9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -236,7 +236,7 @@ workflows: yarn: true store_artifacts: false working_directory: platform/viewer - build: yarn run build + build: yarn run build:e2e start: yarn run test:e2e:dist wait-on: 'http://localhost:3000' cache-key: 'yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}' @@ -286,7 +286,7 @@ workflows: record: true store_artifacts: true working_directory: platform/viewer - build: yarn run build + build: yarn run build:e2e start: yarn run test:e2e:dist wait-on: 'http://localhost:3000' cache-key: 'yarn-packages-v1-{{ .Branch }}-{{ checksum "yarn.lock" }}' diff --git a/package.json b/package.json index 1657aef90..becf8a85f 100644 --- a/package.json +++ b/package.json @@ -13,6 +13,7 @@ "scripts": { "cm": "npx git-cz", "build": "lerna run build:viewer --stream", + "build:e2e": "lerna run build:viewer:e2e --stream", "build:ci": "lerna run build:viewer:ci --stream", "build:demo": "lerna run build:viewer:demo --stream", "build:package": "lerna run build:viewer:package --stream", diff --git a/platform/viewer/package.json b/platform/viewer/package.json index 5f5dc1c8f..91e946e11 100644 --- a/platform/viewer/package.json +++ b/platform/viewer/package.json @@ -19,6 +19,7 @@ "scripts": { "build:package": "cross-env NODE_ENV=production node --max_old_space_size=4096 ./../../node_modules/webpack/bin/webpack.js --config .webpack/webpack.commonjs.js", "build:viewer": "cross-env NODE_ENV=production node --max_old_space_size=4096 ./../../node_modules/webpack/bin/webpack.js --config .webpack/webpack.pwa.js --progress", + "build:viewer:e2e": "cross-env NODE_ENV=development node --max_old_space_size=4096 ./../../node_modules/webpack/bin/webpack.js --config .webpack/webpack.pwa.js --progress", "build:viewer:ci": "cross-env NODE_ENV=production PUBLIC_URL=/pwa/ APP_CONFIG=config/netlify.js node --max_old_space_size=4096 ./../../node_modules/webpack/bin/webpack.js --config .webpack/webpack.pwa.js", "build:viewer:demo": "cross-env NODE_ENV=production APP_CONFIG=config/demo.js HTML_TEMPLATE=rollbar.html node --max_old_space_size=4096 ./../../node_modules/webpack/bin/webpack.js --progress --config .webpack/webpack.pwa.js", "build:viewer:package": "yarn run build:package",