-
Notifications
You must be signed in to change notification settings - Fork 0
Dir Structure
FireJS projects usually look something like this.
Project
└─── out
│ └─── dist
│ | └─── lib
│ | └─── map
| └─── .cache
| |
| └─── .fly
|
└─── src
│ └─── pages
│ │ index.js
│ │ about.js
│ │ 404.js
│ │ ...
│
│ └─── static
│ │ example.png
|
| firejs.yml
Don't like it? No problem, change it effortlessly using firejs.yml file or if you are in a hurry change them using the command line interface.
👀 A Quick Explanation
The src dir is the place where you'll put all the bits and pieces of your website.
- The
pagesdir will hold all the pages of your website. Read this for more info. - The
staticdir will hold all the static assets of your website. These assets include stuff like images, videos, gifs etc.
The out dir is the place where FireJS will store all of its bits and pieces for your website.
-
The
distdir will hold all the chunks, HTML and maps when you export your project using[-e, --export]flag -
- The
libdir will hold all the chunks and maps. -
- The
mapdir will hold all the page maps. These are nothing but.map.jsfiles which will contain a registry of all the chunks and data required by the respected pages.
- The
- The
-
The
flydirectory will hold the chunks exported by[-E,--export-fly]flags. This dir is required for SSR using CustomRenderer.
The `.cache` dir will hold the babel cache and other stuff personal to FireJS.
.cache
| .babelCache
| disk
| f.......js
-
.babelCachedir will hold the cache required bybabelfor fast builds. -
diskdir will hold the bits and pieces of your website when you use[-d, --disk]flag. -
f.......jsis a chunk containingreact,react-domandreact-servercombined. FireJS uses this file to SSR your site. Usually its namefa3bae0103d2d9b32a978.js.
Star us on github or checkout our npmjs page.
🏡 Home
Getting Started
-
⚛️ Components
Advance
🗒️ All examples in this documentation are written in typescript