Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cleanup examples #1744

Merged
merged 2 commits into from
Aug 29, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 2 additions & 34 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ MAKEFLAGS += --no-print-directory

SOURCES = packages

.PHONY: help bootstrap init packages-build packages-publish clean-all website-install website website-build website-deploy storybook storybook-build storybook-deploy deploy-all examples-install
.PHONY: help bootstrap init packages-build packages-publish clean-all website-install website website-build website-deploy storybook storybook-build storybook-deploy deploy-all

########################################################################################################################
#
Expand Down Expand Up @@ -58,7 +58,6 @@ fmt: ##@0 global format code using prettier (js, css, md)
"packages/*/index.d.ts" \
"packages/*/README.md" \
"website/src/**/*.{js,css}" \
"examples/*/src/**/*.{js,ts,tsx,css}" \
"api/**/*.{js,ts,tsx}" \
"README.md"

Expand All @@ -69,11 +68,10 @@ fmt-check: ##@0 global check if files were all formatted using prettier
"packages/*/index.d.ts" \
"packages/*/README.md" \
"website/src/**/*.{js,css}" \
"examples/*/src/**/*.{js,ts,tsx,css}" \
"api/**/*.{js,ts,tsx}" \
"README.md"

test: ##@0 global run all checks/tests (packages, website & examples)
test: ##@0 global run all checks/tests (packages, website)
@$(MAKE) fmt-check
@$(MAKE) lint
@$(MAKE) packages-test
Expand Down Expand Up @@ -200,7 +198,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 examples/typescript && yarn link @nivo/${*}
@$(MAKE) package-watch-${*}

########################################################################################################################
Expand Down Expand Up @@ -255,35 +252,6 @@ storybook-deploy: ##@3 storybook build and deploy storybook
@echo "${YELLOW}Deploying storybook${RESET}"
@./node_modules/.bin/gh-pages -d storybook-static -r git@github.com:plouc/nivo.git -b gh-pages -e storybook

########################################################################################################################
#
# EXAMPLES
#
########################################################################################################################

examples-install: ##@4 examples install all examples dependencies
@$(MAKE) example-install-retro
@$(MAKE) example-install-typescript

example-install-%: ##@4 examples install example dependencies, eg. example-install-retro
@echo "${YELLOW}Installing ${WHITE}${*}${YELLOW} example dependencies${RESET}"
@cd examples/${*} && yarn install

example-deps-up-%: ##@4 examples interactive upgrade of example's dependencies
@cd examples/${*} && yarn upgrade-interactive --latest

example-start-%: ##@4 examples start example in dev mode, eg. example-start-retro
@echo "${YELLOW}Starting ${WHITE}${*}${YELLOW} example dev server${RESET}"
@cd examples/${*} && yarn start

examples-build: ##@4 examples build all examples
@$(MAKE) example-build-retro
@$(MAKE) example-build-typescript

example-build-%: ##@4 examples build an example, eg. example-build-retro
@echo "${YELLOW}Building ${WHITE}${*}${YELLOW} example${RESET}"
@cd examples/${*} && yarn build

########################################################################################################################
#
# API
Expand Down
1 change: 0 additions & 1 deletion examples/retro/.env

This file was deleted.

47 changes: 0 additions & 47 deletions examples/retro/package.json

This file was deleted.

Binary file removed examples/retro/public/favicon.ico
Binary file not shown.
43 changes: 0 additions & 43 deletions examples/retro/public/index.html

This file was deleted.

Binary file removed examples/retro/public/logo192.png
Binary file not shown.
Binary file removed examples/retro/public/logo512.png
Binary file not shown.
25 changes: 0 additions & 25 deletions examples/retro/public/manifest.json

This file was deleted.

3 changes: 0 additions & 3 deletions examples/retro/public/robots.txt

This file was deleted.

87 changes: 0 additions & 87 deletions examples/retro/src/App.css

This file was deleted.

30 changes: 0 additions & 30 deletions examples/retro/src/components/App.js

This file was deleted.

21 changes: 0 additions & 21 deletions examples/retro/src/components/Background.js

This file was deleted.

14 changes: 0 additions & 14 deletions examples/retro/src/components/Info.js

This file was deleted.

35 changes: 0 additions & 35 deletions examples/retro/src/components/charts/Bar.js

This file was deleted.

Loading