Skip to content

Commit

Permalink
feat(dev): add commands to list/rm currently linked packages for website
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Dec 7, 2017
1 parent 2a0f2d0 commit 3c5f0fd
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 8 deletions.
18 changes: 18 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Join the [nivo discord community](https://discord.gg/n7Ft74f).
## Guides

* [colors](http://nivo.rocks/#/guides/colors)
* [legends](http://nivo.rocks/#/guides/legends)
* [gradients](http://nivo.rocks/#/guides/gradients)
* [patterns](http://nivo.rocks/#/guides/patterns)

Expand Down
4 changes: 0 additions & 4 deletions website/src/components/charts/bar/Bar.js
Original file line number Diff line number Diff line change
Expand Up @@ -218,10 +218,6 @@ export default class Bar extends Component {
the storybook
</a>.
</p>
<p className="description">
See the <Link to="/guides/legends">dedicated guide</Link> on how to setup
legends for this component.
</p>
</div>
)

Expand Down
4 changes: 0 additions & 4 deletions website/src/components/charts/heatmap/HeatMap.js
Original file line number Diff line number Diff line change
Expand Up @@ -190,10 +190,6 @@ export default class HeatMap extends Component {
the storybook
</a>.
</p>
<p className="description">
See the <Link to="/guides/legends">dedicated guide</Link> on how to setup
legends for this component.
</p>
</div>
)

Expand Down

0 comments on commit 3c5f0fd

Please sign in to comment.