Skip to content

Commit

Permalink
feat(website): rename demo to website
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphaël Benitte committed Dec 5, 2017
1 parent 968e645 commit 14a375c
Show file tree
Hide file tree
Showing 246 changed files with 38 additions and 26 deletions.
51 changes: 27 additions & 24 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
SOURCES = packages

.PHONY: help init build-all clean-all demo demo-build demo-deploy storybook storybook-build storybook-deploy deploy-all
.PHONY: help init build-all clean-all website website-build website-deploy storybook storybook-build storybook-deploy deploy-all

########################################################################################################################
#
Expand Down Expand Up @@ -36,19 +36,20 @@ help: ##prints help
.DEFAULT_GOAL := help

init: ##@init cleanup/install/bootstrap
make clean-all
yarn install
./node_modules/.bin/lerna bootstrap
make build-all

deploy-all: ##@deploy deploy demo website & storybook
@make demo-deploy
@make clean-all
@yarn install
@./node_modules/.bin/lerna bootstrap
@make build-all
@cd website && yarn install

deploy-all: ##@deploy deploy website & storybook
@make website-deploy
@make storybook-deploy

build-all: ##@build build all packages
@echo "${YELLOW}Building all packages${RESET}"
$(foreach source, $(SOURCES), $(call clean-source-lib, $(source)))
./node_modules/.bin/lerna run --ignore nivo-demo --ignore nivo-example-retro build
@$(foreach source, $(SOURCES), $(call clean-source-lib, $(source)))
@./node_modules/.bin/lerna run build

########################################################################################################################
#
Expand All @@ -57,9 +58,11 @@ build-all: ##@build build all packages
########################################################################################################################

clean-all: ##@cleanup uninstall node modules, remove transpiled code & lock files
rm -rf node_modules
rm -rf package-lock.json
$(foreach source, $(SOURCES), $(call clean-source-all, $(source)))
@rm -rf node_modules
@rm -rf package-lock.json
@$(foreach source, $(SOURCES), $(call clean-source-all, $(source)))
@rm -rf website/node_modules
@rm -rf website/package-lock.json

define clean-source-lib
rm -rf $(1)/*/es
Expand All @@ -75,23 +78,23 @@ endef

########################################################################################################################
#
# DEMO
# WEBSITE
#
########################################################################################################################

demo: ##@demo start demo in dev mode
@echo "${YELLOW}Starting demo${RESET}"
@cd demo && yarn start
website: ##@website start website in dev mode
@echo "${YELLOW}Starting website dev server${RESET}"
@cd website && yarn start

demo-build: ##@demo build demo
@echo "${YELLOW}Building demo${RESET}"
@cd demo && yarn build
website-build: ##@website build website
@echo "${YELLOW}Building website${RESET}"
@cd website && yarn build

demo-deploy: ##@demo build & deploy demo
@make demo-build
website-deploy: ##@website build & deploy website
@make website-build

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

########################################################################################################################
#
Expand Down
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,15 @@ it's built on top of d3.
Several libraries already exist for React d3 integration,
but just a few provide server side rendering ability and fully declarative charts.

## Installation

In order to use nivo, you must install the core package
and then pick the packages according to the charts you wish to use.

```
yarn add @nivo/core @nivo/bar ...
```

## Features

- Highly customizable
Expand Down
File renamed without changes.
4 changes: 2 additions & 2 deletions demo/package.json → website/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
"name": "nivo-demo",
"name": "nivo-website",
"version": "0.32.0-9",
"private": true,
"description": "nivo demo",
"description": "nivo website",
"author": "Raphaël Benitte <[email protected]>",
"devDependencies": {
"react-scripts": "1.0.14",
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 14a375c

Please sign in to comment.