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.

27 lines
730 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/data/changes.marko",
  13. "./marko/page/story-content/view.marko",
  14. "./marko/page/logs-content/view.marko",
  15. ]
  16. }).then(lassoPrebuildResult => {
  17. const builds = lassoPrebuildResult._buildsByPath
  18. for (const key in builds) {
  19. if (!builds.hasOwnProperty(key)) {
  20. continue
  21. }
  22. console.log("Built", key)
  23. }
  24. })