From f616706f68f0177221a06bf3d92f5938a3566d81 Mon Sep 17 00:00:00 2001 From: Vahid Panjganj Date: Mon, 10 Jul 2017 18:22:40 +0100 Subject: [PATCH] Reformat folder structure (#50) --- README.md | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 60679e1..4336b8a 100644 --- a/README.md +++ b/README.md @@ -273,12 +273,11 @@ Before using a package, check its GitHub. Look for the number of open issues, da ## 6. Structure and Naming * Organize your files around product features / pages / components, not roles. Also, place your test files next to their implementation. - _why:_ - > Instead of a long list of files You will create small modules that encapsulate one responsibility including its test and so on. It gets much easier to navigate through and things can be found at a glance -**Bad** -``` + **Bad** + + ``` . ├── controllers | ├── product.js @@ -286,11 +285,11 @@ Before using a package, check its GitHub. Look for the number of open issues, da ├── models | ├── product.js | └── user.js -``` + ``` -**Good** + **Good** -``` + ``` . ├── product | ├── index.js @@ -300,9 +299,11 @@ Before using a package, check its GitHub. Look for the number of open issues, da | ├── index.js | ├── user.js | └── user.test.js -``` - + ``` + _why:_ + > Instead of a long list of files You will create small modules that encapsulate one responsibility including its test and so on. It gets much easier to navigate through and things can be found at a glance + * Put your additional test files to a separate test folder to avoid confusion. _why:_