From 22cc2bbf5f202dc77312e06114136c935230777d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Thu, 14 Jun 2018 17:33:59 +0200 Subject: [PATCH 1/2] docs(readme): Update lifecycle --- README.md | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 1de084ed8..c5f8f76e5 100644 --- a/README.md +++ b/README.md @@ -111,17 +111,24 @@ const app = createInstantSearchApp('~/lab/my-app', { app.create().then(() => console.log('App generated!')); ``` -### Tasks +### Lifecycle The app generation follows this lifecycle: +![Lifecycle](https://user-images.githubusercontent.com/6137112/41421858-f838c2a6-6ff7-11e8-8cef-4cc07f1f4f44.png) + +
+ Alternative text + 1. **Setup** 2. **Build** 3. **Install** -4. (**Clean**) _if the project generation fails_ +4. (**Clean**) _if the installation fails_ 5. **Teardown** -Each task can be plugged to the third argument of the call `createInstantSearchApp(path, options?, tasks?)`. +
+ +Each task can be plugged to the third argument of `createInstantSearchApp(path, options?, tasks?)` and is passed the configuration of the app.
Tasks example
From 7f20c819b599d09dfe449719063bebc335dbfd97 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Chalifour?= Date: Thu, 14 Jun 2018 17:34:18 +0200 Subject: [PATCH 2/2] docs(readme): Add React InstantSearch Native to supported templates --- README.md | 1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index c5f8f76e5..2e77734a8 100644 --- a/README.md +++ b/README.md @@ -63,6 +63,7 @@ Supported templates are: - [`InstantSearch.js`][instantsearchjs-github] - [`React InstantSearch`][react-instantsearch-github] +- [`React InstantSearch Native`][react-instantsearch-github] - [`Vue InstantSearch`][vue-instantsearch-github] - [`Angular InstantSearch`][angular-instantsearch-github]