Skip to content

Commit a6fde22

Browse files
committedAug 29, 2021
feat(core): remove make targets related to example projects
1 parent 10aa6df commit a6fde22

File tree

1 file changed

+2
-34
lines changed

1 file changed

+2
-34
lines changed
 

‎Makefile

+2-34
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ MAKEFLAGS += --no-print-directory
22

33
SOURCES = packages
44

5-
.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
5+
.PHONY: help bootstrap init packages-build packages-publish clean-all website-install website website-build website-deploy storybook storybook-build storybook-deploy deploy-all
66

77
########################################################################################################################
88
#
@@ -58,7 +58,6 @@ fmt: ##@0 global format code using prettier (js, css, md)
5858
"packages/*/index.d.ts" \
5959
"packages/*/README.md" \
6060
"website/src/**/*.{js,css}" \
61-
"examples/*/src/**/*.{js,ts,tsx,css}" \
6261
"api/**/*.{js,ts,tsx}" \
6362
"README.md"
6463

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

76-
test: ##@0 global run all checks/tests (packages, website & examples)
74+
test: ##@0 global run all checks/tests (packages, website)
7775
@$(MAKE) fmt-check
7876
@$(MAKE) lint
7977
@$(MAKE) packages-test
@@ -200,7 +198,6 @@ package-watch-%: ##@1 packages build package (es flavor) on change, eg. `package
200198
package-dev-%: ##@1 packages setup package for development, link to website, run watcher
201199
@echo "${YELLOW}Preparing package ${WHITE}${*}${YELLOW} for development${RESET}"
202200
@cd packages/${*} && yarn link
203-
@cd examples/typescript && yarn link @nivo/${*}
204201
@$(MAKE) package-watch-${*}
205202

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

258-
########################################################################################################################
259-
#
260-
# EXAMPLES
261-
#
262-
########################################################################################################################
263-
264-
examples-install: ##@4 examples install all examples dependencies
265-
@$(MAKE) example-install-retro
266-
@$(MAKE) example-install-typescript
267-
268-
example-install-%: ##@4 examples install example dependencies, eg. example-install-retro
269-
@echo "${YELLOW}Installing ${WHITE}${*}${YELLOW} example dependencies${RESET}"
270-
@cd examples/${*} && yarn install
271-
272-
example-deps-up-%: ##@4 examples interactive upgrade of example's dependencies
273-
@cd examples/${*} && yarn upgrade-interactive --latest
274-
275-
example-start-%: ##@4 examples start example in dev mode, eg. example-start-retro
276-
@echo "${YELLOW}Starting ${WHITE}${*}${YELLOW} example dev server${RESET}"
277-
@cd examples/${*} && yarn start
278-
279-
examples-build: ##@4 examples build all examples
280-
@$(MAKE) example-build-retro
281-
@$(MAKE) example-build-typescript
282-
283-
example-build-%: ##@4 examples build an example, eg. example-build-retro
284-
@echo "${YELLOW}Building ${WHITE}${*}${YELLOW} example${RESET}"
285-
@cd examples/${*} && yarn build
286-
287255
########################################################################################################################
288256
#
289257
# API

0 commit comments

Comments
 (0)
Please sign in to comment.