From f4955ecdcaaf9ecfcd089e06615e53169f3661dd Mon Sep 17 00:00:00 2001 From: Sheng Di Date: Mon, 31 Jul 2017 13:11:32 -0700 Subject: [PATCH] update component add gerator docs (#512) --- docs/chapter1/quick-start/start-with-component.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/chapter1/quick-start/start-with-component.md b/docs/chapter1/quick-start/start-with-component.md index 0965cbce7..c55d7954f 100644 --- a/docs/chapter1/quick-start/start-with-component.md +++ b/docs/chapter1/quick-start/start-with-component.md @@ -35,7 +35,9 @@ A webserver will be started on localhost:3000. Your new component will be used i ## Further: Adding More Components to the Packages -If you want to add more components to your project, go to `packages` directory and run `yo electrode:component-add` within the packages directory. You can skip this section if you do not need extra components. +> Note: You can skip this section if you do not need extra components. + +If you want to add more components to your project, go to `packages` directory and run `yo electrode:component-add` within the packages directory. ```bash $ cd packages @@ -48,6 +50,8 @@ Follow the prompts as above, for example: This will generate a new package and also update the demo-app. Don't get panic if you saw conflicts, the `demo-app/src/client/components/home.jsx` and `demo-app/package.json` expected to be overwritten during the update. +> Note: If you have installed `yo` at version 2.0.0 or higher, you can specify the `a` option for `overwrite this and all others`, or you need to specify the `y` option for `overwrite` each time. + After finished installation, you can preview the multi-components by using demo-app again. ```bash