mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +03:00
Generate PagesNew.elm UI module if not present.
This commit is contained in:
parent
47ff28050c
commit
d339ae4f49
@ -9,6 +9,7 @@ const chokidar = require("chokidar");
|
||||
const matter = require("gray-matter");
|
||||
const runElm = require("./compile-elm.js");
|
||||
const doCliStuff = require("./generate-elm-stuff.js");
|
||||
const { elmPagesUiFile } = require("./elm-file-constants.js");
|
||||
|
||||
const contentGlobPath = "content/**/*.emu";
|
||||
|
||||
@ -58,6 +59,7 @@ function run() {
|
||||
|
||||
app.ports.writeFile.subscribe(contents => {
|
||||
fs.writeFileSync("./gen/RawContent.elm", contents.rawContent);
|
||||
fs.writeFileSync("./gen/PagesNew.elm", elmPagesUiFile);
|
||||
fs.writeFileSync("./src/js/image-assets.js", contents.imageAssets);
|
||||
console.log("elm-pages DONE");
|
||||
doCliStuff(contents.rawContent, function(manifestConfig) {
|
||||
|
Loading…
Reference in New Issue
Block a user