-
-
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.
- Loading branch information
Raphaël Benitte
authored and
Raphaël Benitte
committed
Apr 9, 2019
1 parent
319e7e0
commit 7ed59e9
Showing
579 changed files
with
71,227 additions
and
126,422 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 |
---|---|---|
|
@@ -13,3 +13,5 @@ build | |
|
||
*.lerna_backup | ||
|
||
_website | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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) | ||
|
@@ -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-${*} | ||
|
||
|
@@ -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 | ||
|
||
|
@@ -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 | ||
|
||
######################################################################################################################## | ||
# | ||
|
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.