nijikokun / sugarcube-starter

Easy to use starter kit for creating stories with Tweego, Twine and SugarCube.
16 stars 3 forks source link

Lack of error messages #6

Closed arthurming123 closed 5 months ago

arthurming123 commented 2 years ago

[builder] [init] Running build.

PS Dir>

Sometimes the builder just ends without an explanation. And a build is not even constructed. Without an error message, it's hard to debug.

nijikokun commented 5 months ago

Haven't ran into a build not being produced, but it definitely does not output any build messages once it's built. Will fix this.

$ npm run build

> sugarcube-starter@1.0.0 build
> node .build/build_run.js
nijikokun commented 5 months ago

The latest release now tells you when an error has occurred and why:

$ npm run build

> sugarcube-starter@1.0.0 build
> node .build/build_run.js

[   builder] ✔ Verifying installation.
[   builder] ✔ Building assets.
[   builder] ✔ Cleaning output directory.
[   builder] ✔ Moving media files.
[   builder] ✔ Moving font files.
[   builder] ✔ Moving stylesheets.
[   builder] ✔ Moving scripts.
[   builder] ✖ Build failed.

 error: Special passage "StoryTitle" not found.