]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
mgr/dashboard: added 'env_build' to 'npm run e2e'
authoralfonsomthd <almartin@redhat.com>
Mon, 28 Jan 2019 08:55:37 +0000 (09:55 +0100)
committeralfonsomthd <almartin@redhat.com>
Mon, 28 Jan 2019 08:55:37 +0000 (09:55 +0100)
* 'e2e' & 'e2e:dev' need also to run 'env_build' to complete successfully.

Signed-off-by: Alfonso Martínez <almartin@redhat.com>
src/pybind/mgr/dashboard/frontend/package.json

index 799a28072d744971f6a2c4fb08081166050fd12b..481972229f7dfecbdec06d275864b7c6e9dcbedb 100644 (file)
@@ -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",