From: alfonsomthd Date: Mon, 28 Jan 2019 08:55:37 +0000 (+0100) Subject: mgr/dashboard: added 'env_build' to 'npm run e2e' X-Git-Tag: v14.1.0~265^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F26165%2Fhead;p=ceph.git mgr/dashboard: added 'env_build' to 'npm run e2e' * 'e2e' & 'e2e:dev' need also to run 'env_build' to complete successfully. Signed-off-by: Alfonso Martínez --- diff --git a/src/pybind/mgr/dashboard/frontend/package.json b/src/pybind/mgr/dashboard/frontend/package.json index 799a28072d74..481972229f7d 100644 --- a/src/pybind/mgr/dashboard/frontend/package.json +++ b/src/pybind/mgr/dashboard/frontend/package.json @@ -10,8 +10,8 @@ "i18n": "ng xi18n --i18n-format xlf --i18n-locale en-US --output-path locale --progress=false && ngx-extractor -i 'src/**/*.ts' -f xlf -o src/locale/messages.xlf -l en-US", "test": "jest --watch", "test:ci": "JEST_SILENT_REPORTER_DOTS=true jest --coverage --reporters jest-silent-reporter", - "e2e": "ng e2e", - "e2e:dev": "ng e2e --dev-server-target", + "e2e": "npm run env_build && ng e2e", + "e2e:dev": "npm run env_build && ng e2e --dev-server-target", "lint:tslint": "ng lint", "lint:prettier": "prettier --list-different \"{src,e2e}/**/*.{ts,scss}\"", "lint:html": "html-linter --config html-linter.config.json",