-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
mgr/dashboard: Replace "npm install" with "npm ci"
"npm ci" is the recommended command to install dependencies in a continuous integration system. It will make sure node_modules is empty and that the version in "package-lock.json" match the ones in "package.json" Signed-off-by: Tiago Melo <[email protected]>
- Loading branch information
Showing
4 changed files
with
8 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,7 +34,7 @@ add_custom_command( | |
OUTPUT "${mgr-dashboard-nodeenv}/bin/npm" | ||
COMMAND ${CMAKE_SOURCE_DIR}/src/tools/setup-virtualenv.sh --python=${MGR_PYTHON_EXECUTABLE} ${mgr-dashboard-nodeenv} | ||
COMMAND ${mgr-dashboard-nodeenv}/bin/pip install nodeenv | ||
COMMAND ${mgr-dashboard-nodeenv}/bin/nodeenv -p -n 8.11.3 | ||
COMMAND ${mgr-dashboard-nodeenv}/bin/nodeenv -p --node=8.11.3 | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "dashboard nodeenv is being installed" | ||
) | ||
|
@@ -45,7 +45,7 @@ add_custom_target(mgr-dashboard-nodeenv | |
|
||
add_npm_command( | ||
OUTPUT "${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend/node_modules" | ||
COMMAND npm install | ||
COMMAND npm i -g [email protected] --unsafe-perm && npm ci | ||
DEPENDS frontend/package.json | ||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/src/pybind/mgr/dashboard/frontend | ||
COMMENT "dashboard frontend dependencies are being installed" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters