Skip to content

Building

gigafiga21 edited this page Dec 5, 2019 · 1 revision

This page contains additional information about building which may be necessary for developers. For user instructions of how to build see our README in project root.

Server

See soon.

Client

We use webpack to build client-side code, which is divided on pages and blocks.
To build frontend you should enter Client folder from project root and type npm run build with special flags described below. Everything you build will be placed in Build directory at the project root.

Flags

--page=PageName - points page to build, where PageName is name of the folder with targeting page resources. Page bundle will appear at the Build/Test/Pages/PageName/ folder.
Example: npm run build --page=Main

--block=BlockName - points block example page to build, where BlockName is name of the folder with targeting block resources. Block example bundle will appear at the Build/Test/Blocks/BlockName/ folder.
Example: npm run build --block=Plot

Clone this wiki locally