forked from mapsplugin/ionic-googlemaps-quickdemo-v4
-
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.
- Loading branch information
Showing
3 changed files
with
31 additions
and
16 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
#!/bin/bash | ||
|
||
GMAPS_DIR_PATH=$1 | ||
if [ -z "${GMAPS_DIR_PATH}" ]; then | ||
echo "Usage:" | ||
echo " $> npm run link (path_to_@ionic-native/google-maps directory)" | ||
exit 0 | ||
fi | ||
|
||
CHECK=`ls -l ${GMAPS_DIR_PATH}/package.json 2>&1` | ||
|
||
if [[ $CHECK = *"No such file or directory"* ]]; then | ||
(>&2 echo "There is no package.json at ${GMAPS_DIR_PATH}") | ||
else | ||
rm -rf node_modules/\@ionic-native/plugins/google-maps | ||
|
||
cp -R ${GMAPS_DIR_PATH}/dist/\@ionic-native/core node_modules/\@ionic-native/ | ||
npm link ${GMAPS_DIR_PATH}/dist/\@ionic-native/plugins/google-maps | ||
fi |
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