Narrat Docs
Search…
Building and exporting your game

Building your game as a website

You can build your game as a static website
1
npm run build
Copied!
This will generate a built version of your game as a website in the build/ folder

Building your game as an app

The narrat template is already setup to use electron to easily build a desktop application out of your game.
You can run your game as an app:
1
npm run electron
Copied!
Or you can package it as an executable (should work on Windows, Mac, Linux):
1
npm run package
Copied!
Please look at the electron documentation if you want to customise how your app is built, window sizes and other things (hint: Most of it takes place in the electron-something.js files at the root of the repo)
This will create an application for your OS in the out/ folder