Build

It is easy to build the spear project. You just execute yarn build command.

# yarn install
# yarn build
....
[Parse Pages]
  [Page]: index(/)

[Page]: articles/index

[Page]: /index
[Sitemap]: /sitemap.xml

The generated directory is dist by default. You can check this directory.

Dev mode

Spear has dev mode which has hot-realod feature. If you type yarn dev command, Spear will be started as dev mode.

# yarn dev
...
[Parse Pages]
  [Page]: index(/)

[Page]: articles/index

[Page]: /index

    Server started on port 8080 🚀
    You can access the following URL:

      http://localhost:8080

You can check generated site by accessing http://localhost:8080.

Note that: