Last active
October 12, 2016 18:40
-
-
Save kriswill/147904fdb3dac35c32a0f84806762e5f to your computer and use it in GitHub Desktop.
Re-link all @gliffy/ember-* modules with NPM
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
#!/usr/bin/env bash | |
# Enumerate all Gliffy ember-addon projects and link them with NPM | |
# set up some colors to use for output | |
B="\033[0;34m" # blue | |
C="\033[0;49;96m" # cyan | |
W="\033[0;37m" # white | |
NONE="\033[0m" | |
# Remove all **/node_modules/@gliffy folders (existing symlinks) | |
. ./rm-gliffy-modules | |
printf "\n${B}Linking All ${W}@gliffy/ember-*$ ${B}node_modules${NONE}" | |
printf "\n${B}Linking${C}: ${W}style${NONE}\n\n" | |
test -d style && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}common${NONE}\n\n" | |
test -d common && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
npm link @gliffy/ember-style && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}sharing${NONE}\n\n" | |
test -d sharing && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
npm link @gliffy/ember-style && | |
npm link @gliffy/ember-common && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}commenting${NONE}\n\n" | |
test -d commenting && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
npm link @gliffy/ember-style && | |
npm link @gliffy/ember-common && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}shape-library-manager${NONE}\n\n" | |
test -d shape-library-manager && cd $_ && | |
npm i && | |
npm link && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}transform-service-manager${NONE}\n\n" | |
test -d transform-service-manager && cd $_ && | |
npm i && | |
npm link && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}diagramming${NONE}\n\n" | |
test -d diagramming && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
npm link @gliffy/ember-style && | |
npm link @gliffy/ember-common && | |
npm link @gliffy/ember-shape-library-manager && | |
npm link @gliffy/ember-transform-service-manager && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}diagram-editor${NONE}\n\n" | |
test -d diagram-editor && cd $_ && | |
npm i && | |
bower install && | |
npm link && | |
npm link @gliffy/ember-style && | |
npm link @gliffy/ember-common && | |
npm link @gliffy/ember-commenting && | |
npm link @gliffy/ember-diagramming && | |
npm link @gliffy/ember-sharing && | |
cd .. | |
printf "\n\n${B}Linking${C}: ${W}online${NONE}\n\n" | |
test -d online && cd $_ && | |
npm i && | |
bower install && | |
npm link @gliffy/ember-style && | |
npm link @gliffy/ember-common && | |
npm link @gliffy/ember-commenting && | |
npm link @gliffy/ember-diagramming && | |
npm link @gliffy/ember-shape-library-manager && | |
npm link @gliffy/ember-transform-service-manager && | |
npm link @gliffy/ember-diagram-editor && | |
cd .. | |
printf "\n\n${W}Linking Completed!${NONE}\n\n" |
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
#!/usr/bin/env bash | |
# Remove all **/node_modules/@gliffy folders | |
B="\033[0;34m" # blue | |
W="\033[0;37m" # white | |
NONE="\033[0m" | |
printf "\n${B}Removing all ${W}**/node_modules/@gliffy ${B}folders${NONE}\n" | |
find . -name "\@gliffy" -exec rm -rf '{}' + |
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
#!/usr/bin/env bash | |
# Remove all **/node_modules folders | |
B="\033[0;34m" # blue | |
W="\033[0;37m" # white | |
NONE="\033[0m" | |
printf "\n${B}Removing all ${W}**/node_modules ${B}folders${NONE}\n\n" | |
find . -name "node_modules" -prune -exec rm -rf '{}' + |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment