fix: pageLayer explanation
This commit is contained in:
@@ -1,28 +1,31 @@
|
|||||||
# Next.js + Feature-Sliced Design | Pure Template
|
# Next.js + Feature-Sliced Design | Pure Template
|
||||||
|
|
||||||
## Folders description
|
## Folders description
|
||||||
| Folder | Description |
|
|
||||||
|--------------|-----------------------------------------------------------------------------------------------------------------|
|
|
||||||
| app | Next App folder for [App Routing](https://nextjs.org/docs/app/building-your-application/routing#the-app-router) |
|
|
||||||
| public | Public files |
|
|
||||||
| src/app | App FSD Layer |
|
|
||||||
| src/pages | Pages FSD Layer |
|
|
||||||
| src/widgets | Widgets FSD Layer |
|
|
||||||
| src/features | Features FSD Layer |
|
|
||||||
| src/entities | Entities FSD Layer |
|
|
||||||
| src/shared | Shared FSD Layer |
|
|
||||||
|
|
||||||
|
| Folder | Description |
|
||||||
|
|-----------------|-----------------------------------------------------------------------------------------------------------------|
|
||||||
|
| app | Next App folder for [App Routing](https://nextjs.org/docs/app/building-your-application/routing#the-app-router) |
|
||||||
|
| public | Public files |
|
||||||
|
| src/app | App FSD Layer |
|
||||||
|
| src/pagesLayer* | Pages FSD Layer |
|
||||||
|
| src/widgets | Widgets FSD Layer |
|
||||||
|
| src/features | Features FSD Layer |
|
||||||
|
| src/entities | Entities FSD Layer |
|
||||||
|
| src/shared | Shared FSD Layer |
|
||||||
|
|
||||||
|
* **pagesLayer**, not **pages** because _*pages*_ is a reserved name for [Pages Router](https://nextjs.org/docs/pages) and an error occurs during [assembly](https://t.me/feature_sliced/1/107414).
|
||||||
## Remove junk _.gitkeep_ files
|
## Remove junk _.gitkeep_ files
|
||||||
|
|
||||||
### UNIX
|
### UNIX
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
rm -rf .src/app/.gitkeep .src/entities/.gitkeep .src/features/.gitkeep .src/shared/.gitkeep .src/widgets/.gitkeep ./public/.gitkeep
|
rm -rf .src/app/.gitkeep .src/entities/.gitkeep .src/features/.gitkeep .src/shared/.gitkeep .src/widgets/.gitkeep ./public/.gitkeep
|
||||||
```
|
```
|
||||||
|
|
||||||
### WINDOWS
|
### WINDOWS
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
del .\src\app\.gitkeep
|
del .\src\app\.gitkeep
|
||||||
del .\src\entities\.gitkeep
|
del .\src\entities\.gitkeep
|
||||||
del .\src\features\.gitkeep
|
del .\src\features\.gitkeep
|
||||||
del .\src\shared\.gitkeep
|
del .\src\shared\.gitkeep
|
||||||
@@ -32,10 +35,9 @@ del .\public\.gitkeep
|
|||||||
|
|
||||||
This template uses such development assistants
|
This template uses such development assistants
|
||||||
|
|
||||||
* Eslint
|
- Eslint
|
||||||
* Prettier
|
- Prettier
|
||||||
* Stylelint
|
- Stylelint
|
||||||
|
|
||||||
|
If you don't need it, you can disable it at any time by removing the
|
||||||
If you don't need it, you can disable it at any time by removing the
|
dependency from your _package.json_ and _.\*rc_ file.
|
||||||
dependency from your _package.json_ and _.*rc_ file.
|
|
||||||
|
|||||||
Reference in New Issue
Block a user