-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #108 from bernarda78/remove_node_in_repo
Remove node modules from the repository
- Loading branch information
Showing
8,005 changed files
with
424 additions
and
704,587 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
src/webview/node_modules/grunt* | ||
src/webview/node_modules/browserify/ | ||
src/webview/node_modules/.bin/grunt | ||
src/webview/node_modules/.bin/browserify | ||
# Ignore node modules which are downloaded at the installation | ||
src/webview/node_modules/ | ||
|
||
# Ignore build directories | ||
src/webview/dist | ||
src/webview/build | ||
/build* |
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 |
---|---|---|
@@ -0,0 +1,18 @@ | ||
###################################################### | ||
# - Try to find npm command | ||
# Once done this will define | ||
# NPM_FOUND - System has npm | ||
# NPM_BINARY - Path to the npm binary file | ||
|
||
###################################################### | ||
find_program(NPM_BINARY npm) | ||
|
||
###################################################### | ||
include(FindPackageHandleStandardArgs) | ||
# handle the QUIETLY and REQUIRED arguments and set NPM_FOUND to TRUE | ||
# if all listed variables are TRUE | ||
find_package_handle_standard_args(Npm "Cannot find NPM. This is required beause you took the git master branch. Download official tar.gz or disable webview." | ||
NPM_BINARY) | ||
|
||
###################################################### | ||
mark_as_advanced(NPM_BINARY) |
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
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 |
---|---|---|
@@ -0,0 +1,35 @@ | ||
###################################################### | ||
# PROJECT : MALT # | ||
# VERSION : 1.2.2 # | ||
# DATE : 06/2023 # | ||
# AUTHOR : Valat Sébastien # | ||
# LICENSE : CeCILL-C # | ||
###################################################### | ||
|
||
###################################################### | ||
# Check for npm if needed | ||
if (NOT IS_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/node_modules) | ||
find_package(Npm REQUIRED) | ||
endif() | ||
|
||
###################################################### | ||
# Install nodejs dependencies if needed | ||
# then install node_modules into share directory | ||
if (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/node_modules) | ||
message(STATUS "Copying package.json and package-lock.json to build directory") | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/package.json ${CMAKE_CURRENT_BINARY_DIR}/package.json COPYONLY) | ||
configure_file(${CMAKE_CURRENT_SOURCE_DIR}/package-lock.json ${CMAKE_CURRENT_BINARY_DIR}/package-lock.json COPYONLY) | ||
add_custom_command (OUTPUT deps-loaded | ||
COMMAND ${CMAKE_CURRENT_SOURCE_DIR}/prepare.sh ${CMAKE_CURRENT_BINARY_DIR} | ||
COMMENT "Fetching webview javascript dependencies..." | ||
DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/prepare.sh | ||
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}) | ||
add_custom_target(run ALL DEPENDS deps-loaded package.json package-lock.json) | ||
INSTALL(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/node_modules DESTINATION share/malt/webview) | ||
else (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/node_modules) | ||
INSTALL(DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}/node_modules DESTINATION share/malt/webview) | ||
endif (NOT EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/node_modules) | ||
|
||
####################################################### | ||
## Install the webview into share directory | ||
INSTALL(DIRECTORY . DESTINATION share/malt/webview) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.