Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Latest commit

 

History

History
69 lines (60 loc) · 1.64 KB

README.md

File metadata and controls

69 lines (60 loc) · 1.64 KB

Next module system

Start

Install dependencies

npm ci

Development

npm run dev

Production

npm ci
npm run dev

File structure

project/
├── core/
│   ├── index.ts
│   ├── builder/
│   ├── decorators/
│   ├── units/
│   └── utils/
└── modules/
    ├── root/ -> transform pages into '/' route
    │   ├── index.ts
    │   ├── module.ts
    │   ├── pages/ -> like next routing
    │   │   ├── index.ts
    │   │   ├── page/
    │   │   └── layout/
    │   └── components/
    │       ├── index.ts
    │       ├── (client component)/
    │       │   ├── index.ts
    │       │   ├── useLogic.ts
    │       │   └── view.tsx -> `use client` directive is required
    │       └── (server component)/
    │           ├── index.ts
    │           ├── useLogic.ts
    │           └── view.tsx
    └── (your module)/
        ├── index.ts
        ├── module.ts
        ├── pages/ -> like next routing
        │   ├── index.ts
        │   ├── page/
        │   └── layout/
        └── components/
            ├── index.ts
            ├── (client component)/
            │   ├── index.ts
            │   ├── useLogic.ts
            │   └── view.tsx -> `use client` directive is required
            └── (server component)/
                ├── index.ts
                ├── useLogic.ts
                └── view.tsx