Skip to content

Commit 5024596

Browse files
Raphaël BenitteRaphaël Benitte
Raphaël Benitte
authored and
Raphaël Benitte
committedNov 30, 2018
feat(api): move api to main nivo repo
1 parent 07b1bad commit 5024596

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

81 files changed

+2709
-24
lines changed
 

‎CONTRIBUTING.md

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Contributing
22

3+
- [requirements](#requirements)
34
- [setup](#setup)
45
- [development](#development)
56
- [formatting](#formatting)
@@ -8,6 +9,12 @@
89
- [website](#website)
910
- [deploy](#deploy)
1011

12+
## Requirements
13+
14+
- **Node.js**
15+
- **yarn**
16+
- **Make** (you also have the option to run the commands manually though)
17+
1118
## Setup
1219

1320
Nivo is structured into multiple packages handled by [lerna](https://lernajs.io/).

‎Makefile

+23
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ fmt: ##@0 global format code using prettier (js, css, md)
5959
"packages/*/README.md" \
6060
"website/src/**/*.{js,css}" \
6161
"examples/*/src/**/*.{js,ts,tsx,css}" \
62+
"api/**/*.{js,ts,tsx}" \
6263
"README.md"
6364

6465
fmt-check: ##@0 global check if files were all formatted using prettier
@@ -69,6 +70,7 @@ fmt-check: ##@0 global check if files were all formatted using prettier
6970
"packages/*/README.md" \
7071
"website/src/**/*.{js,css}" \
7172
"examples/*/src/**/*.{js,ts,tsx,css}" \
73+
"api/**/*.{js,ts,tsx}" \
7274
"README.md"
7375

7476
test-all: ##@0 global run all checks/tests (packages, website & examples)
@@ -208,6 +210,9 @@ website-install: ##@2 website install website dependencies
208210
@echo "${YELLOW}Installing website dependencies${RESET}"
209211
@cd website && yarn install
210212

213+
website-deps-up: ##@2 website interactive upgrade of website's dependencies
214+
@yarn upgrade-interactive --latest
215+
211216
website: ##@2 website start website in dev mode
212217
@echo "${YELLOW}Starting website dev server${RESET}"
213218
@cd website && yarn start
@@ -273,6 +278,9 @@ example-install-%: ##@4 examples install example dependencies, eg. example-insta
273278
@echo "${YELLOW}Installing ${WHITE}${*}${YELLOW} example dependencies${RESET}"
274279
@cd examples/${*} && yarn install
275280

281+
example-deps-up-%: ##@4 examples interactive upgrade of example's dependencies
282+
@cd examples/${*} && yarn upgrade-interactive --latest
283+
276284
example-start-%: ##@4 examples start example in dev mode, eg. example-start-retro
277285
@echo "${YELLOW}Starting ${WHITE}${*}${YELLOW} example dev server${RESET}"
278286
@cd examples/${*} && yarn start
@@ -284,3 +292,18 @@ examples-build: ##@4 examples build all examples
284292
example-build-%: ##@4 examples build an example, eg. example-build-retro
285293
@echo "${YELLOW}Building ${WHITE}${*}${YELLOW} example${RESET}"
286294
@cd examples/${*} && yarn build
295+
296+
########################################################################################################################
297+
#
298+
# API
299+
#
300+
########################################################################################################################
301+
302+
api-dev: ##@5 API run API in dev mode (watcher)
303+
@echo "${YELLOW}Starting API in dev mode${RESET}"
304+
@cd api && yarn dev
305+
306+
api: ##@5 API run API in regular mode (no watcher)
307+
@echo "${YELLOW}Starting API${RESET}"
308+
@cd api && yarn start
309+

0 commit comments

Comments
 (0)
Please sign in to comment.