-
Notifications
You must be signed in to change notification settings - Fork 0
Build System
We use cmake
to manage the compilation and installation of the server. We use cmake
to manage nodejs in the following ways.
-
Find NodeJS executable.
-
Initialize and update installed packages (thin wrapper around
npm
) -
Next.js
deploymentNext.js
needs to be "compiled" for deployment out of the development environment. We use a script (cmake/deploy_next.sh
) to make sure this is built to the directory we want and do on-demand recompilation based on thegit
status. (These settings are set in environment variables which are read by ournext.config.js
sinceNext.js
does not seem to provide a builtin environment variable for this). Our install command then installs all the necessary js source code, the compiled addon and the compiled/deployedNext.js
/webpack result to the target directory. -
DEB Package
We'll use cpack to create debian package. ArchLinux package should be fairly easy to make.