The frontend/UI server, written in JS using the MarkoJS library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
691 B

  1. const prebuild = require("@marko/prebuild");
  2. const config = require("./marko-config")
  3. config.loadPrebuild = false
  4. prebuild.run({
  5. config: config,
  6. pages: [ // List of pages to prebuild.
  7. "./marko/page/story/list.marko",
  8. "./marko/page/story/tag-list.marko",
  9. "./marko/page/logs/list.marko",
  10. "./marko/page/data/channels.marko",
  11. "./marko/page/data/characters.marko",
  12. "./marko/page/story-content/view.marko",
  13. "./marko/page/logs-content/view.marko",
  14. ]
  15. }).then(lassoPrebuildResult => {
  16. const builds = lassoPrebuildResult._buildsByPath
  17. for (const key in builds) {
  18. if (!builds.hasOwnProperty(key)) {
  19. continue
  20. }
  21. console.log("Built", key)
  22. }
  23. })