@sonolus/generate-static

5.4.1 • Public • Published

Sonolus Generate Static

CLI tool to generate static Sonolus server from repository and database.

Links

Static Sonolus Server

While static Sonolus servers are easy to host and prepare, it has significant user experience disadvantages:

  • No Sonolus client version checking.
  • No localization according to user language.
  • No search or pagination.
  • All contents will be shown in one page.

It is recommended to develop with sonolus-express instead.

Usage

npx

Use npx to execute without installing.

Generating using default options:

npx @sonolus/generate-static

Use -h to see a list of available options:

npx @sonolus/generate-static -h

Install Globally

Installing globally (only need once):

npm i -g @sonolus/generate-static

sonolus-generate-static will become available to use:

sonolus-generate-static -h

Input

It is recommended to use sonolus-pack to prepare input.

Input contains:

  • /db.json contains information of items.
  • /repository contains processed resources.

Output

Output can be statically served by a web server, and Sonolus client can connect to and play.

Readme

Keywords

Package Sidebar

Install

npm i @sonolus/generate-static

Weekly Downloads

40

Version

5.4.1

License

MIT

Unpacked Size

29.9 kB

Total Files

33

Last publish

Collaborators

  • nonspicyburrito