Project Structure
Since Strapi does not has typescript support. So we use esbuild to compile ts in js quickly
.
โโโ app
โโโ docs
โโโ eslint
โโโ scripts
โ โโโ ...
โ โโโ compile # scripts/utility for complie typescript
โโโ strapi
โ โโโ ...
โ โโโ schema # joi schema
โ โโโ tests # e2e test
โ โโโ types # types using in development
โ โโโ typings # types expect to share with the client
โ โโโ ...
โโโ ...
strapi
The source code of the Strapi project written in typescript
app
The Strapi runtime scripts that complied from
/strapi
docs
This documentation source code
eslint
local eslint plugin
scripts
Notes
- To run the strapi command easier, we define
/strapi
and/app
as yarn workspace. But not/docs
. It is because- Docusaurus do not work with yarn workspace. The solutions mentioned in this issue does not work
- The version of React that use by Strapi is fixed to 16. We need to downgrade the React version to solve the limitation of multiple instances of React