How to run Nuclear in development mode and start coding
Ensure that you have installed the prerequisites:
- Node.js LTS (18)
- npm v8
- Your platform's build tools required to recompile native dependencies.
- Node-gyp is the tool we use to recompile them. It will be installed automatically, but you need to install its dependencies yourself. Check how to do it here: https://github.com/nodejs/node-gyp#installation
- Linux is recommended (but not required) for development
Start by cloning the repository:
Go to the project root and install the dependencies:
$ cd nuclear
$ npm install
This will install the dependencies in the project root, and automatically link the local packages with lerna.
Next, you can run the tests:
$ npm test
Or start the program in development mode:
$ npm start
To build a production release, run this:
$ GITHASH=<version> npm run build:<platform>
<version>with a string that will be added to the filenames of the built packages, e.g.
0.6.13or a short githash:
f4b6771. This only affects the filenames, but needs to be set.
<platform>with the name of your platform:
The binaries will be created in