[build] Symlink mapbox-gl-js/node_modules so that it shares a cache
This commit is contained in:
@@ -14,6 +14,11 @@ if(NOT EXISTS "mapbox-gl-js/package.json")
|
||||
execute_process(
|
||||
COMMAND git submodule update --init mapbox-gl-js
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR})
|
||||
# Symlink mapbox-gl-js/node_modules so that the modules that are
|
||||
# about to be installed get cached between CI runs.
|
||||
execute_process(
|
||||
COMMAND ln -s ../node_modules node_modules
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/mapbox-gl-js)
|
||||
execute_process(
|
||||
COMMAND npm install
|
||||
WORKING_DIRECTORY ${CMAKE_SOURCE_DIR}/mapbox-gl-js)
|
||||
|
||||
Reference in New Issue
Block a user