[build] Symlink mapbox-gl-js/node_modules so that it shares a cache

This commit is contained in:
John Firebaugh
2016-12-22 16:13:57 -08:00
parent 9f9e820540
commit f1b56a2c07

View File

@@ -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)