Skip to content

Commit

Permalink
feat(website): improve website
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte authored and Raphaël Benitte committed Apr 9, 2019
1 parent 319e7e0 commit 7ed59e9
Show file tree
Hide file tree
Showing 579 changed files with 71,227 additions and 126,422 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,5 @@ build

*.lerna_backup

_website

2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ script:
- make packages-test
- make website-build
- make storybook-build
- make examples-build
#- make examples-build
26 changes: 4 additions & 22 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ init: ##@0 global cleanup/install/bootstrap
@yarn install
@$(MAKE) bootstrap
@$(MAKE) packages-build
@$(MAKE) website-install
@$(MAKE) examples-install

fmt: ##@0 global format code using prettier (js, css, md)
Expand Down Expand Up @@ -192,7 +191,6 @@ package-watch-%: ##@1 packages build package (es flavor) on change, eg. `package
package-dev-%: ##@1 packages setup package for development, link to website, run watcher
@echo "${YELLOW}Preparing package ${WHITE}${*}${YELLOW} for development${RESET}"
@cd packages/${*} && yarn link
@cd website && yarn link @nivo/${*}
@cd examples/typescript && yarn link @nivo/${*}
@$(MAKE) package-watch-${*}

Expand All @@ -202,10 +200,6 @@ package-dev-%: ##@1 packages setup package for development, link to website, run
#
########################################################################################################################

website-install: ##@2 website install website dependencies
@echo "${YELLOW}Installing website dependencies${RESET}"
@cd website && yarn install

website-deps-up: ##@2 website interactive upgrade of website's dependencies
@yarn upgrade-interactive --latest

Expand All @@ -219,31 +213,19 @@ website-build: ##@2 website build website

website-serve: ##@2 website build & serve website
@$(MAKE) website-build
@./node_modules/.bin/serve -l 5678 ./website/build
@cd website && yarn serve

website-deploy: ##@2 website build & deploy website
@$(MAKE) website-build

@echo "${YELLOW}Deploying website${RESET}"
@./node_modules/.bin/gh-pages -d website/build -r [email protected]:plouc/nivo.git -b gh-pages
@./node_modules/.bin/gh-pages -d website/public -r [email protected]:plouc/nivo.git -b gh-pages

website-audit: ##@2 website audit website build
@cd website && yarn analyze

website-links-ls: ##@2 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: ##@2 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
@$(MAKE) website-install
website-sprites: ##@2 website build sprite sheet
@glue --img website/src/assets --css website/src/styles website/src/assets/icons

########################################################################################################################
#
Expand Down
55,742 changes: 0 additions & 55,742 deletions branding/nivo-charts-icons.ai

This file was deleted.

Loading

0 comments on commit 7ed59e9

Please sign in to comment.