-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(dev): add commands to list/rm currently linked packages for website
- Loading branch information
Raphaël Benitte
committed
Dec 7, 2017
1 parent
65694f8
commit c359a21
Showing
4 changed files
with
19 additions
and
8 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 |
---|---|---|
|
@@ -150,6 +150,24 @@ website-deploy: ##@website build & deploy website | |
@echo "${YELLOW}Deploying website${RESET}" | ||
@./node_modules/.bin/gh-pages -d website/build -r [email protected]:plouc/nivo.git -b gh-pages | ||
|
||
website-audit: ##@website audit website build | ||
@cd website && yarn analyze | ||
|
||
website-links-ls: ##@website list linked packages | ||
@echo "${YELLOW}Which packages are currently being linked to ${WHITE}website${YELLOW}?${RESET}" | ||
@cd website; \ | ||
find node_modules node_modules/\@* -depth 1 -type l -print | awk -F/ '{print $$(NF)}' | while read MODULE; do \ | ||
echo "> linked package: ${WHITE}$${MODULE}${RESET}"; \ | ||
done | ||
|
||
website-links-rm: ##@website unlink all linked packages | ||
@echo "${YELLOW}Unlinking all packages for ${WHITE}website${RESET}" | ||
@cd website; \ | ||
find node_modules node_modules/\@* -depth 1 -type l -print | awk -F/ '{print $$(NF)}' | while read MODULE; do \ | ||
yarn unlink "@nivo/$${MODULE}"; \ | ||
done | ||
@cd website && yarn install | ||
|
||
######################################################################################################################## | ||
# | ||
# STORYBOOK | ||
|
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