This was built using the Project Error Svelte & Lua Boilerplate
- Node > v10.6
- Yarn (Preferred but not required)
A basic understanding of the modern web development workflow. If you don't know this yet, Svelte might not be for you just yet.
First clone the repository or use the template option and place
it within your resources
folder
The boilerplate was made using yarn
but is still compatible with
npm
.
Install dependencies by navigating to the web
folder within
a terminal of your choice and type npm i
or yarn
.
Hot builds
When developing in-game you can use the hot build system by running
the dev:game
script. This will write changes to disk meaning all
that is required is a resource restart to update the game script.
For development in browser you can just run dev
instead.
Usage
# yarn
yarn dev
# npm
npm run dev
Production Builds
When you are done with development phase for your resource. You must create a production build that is optimized and minimized.
You can do this by running the following:
npm run build
yarn build