From 86c3dac0fa6a5fbf9d23d7dc1a9ff03d955ac247 Mon Sep 17 00:00:00 2001 From: Dillon Kearns Date: Mon, 24 May 2021 12:23:01 -0700 Subject: [PATCH] Move generated browser-elm.js to an already ignored path. --- examples/docs/.gitignore | 2 -- examples/repos/.gitignore | 2 -- examples/routing/.gitignore | 2 -- examples/slides/.gitignore | 2 -- generator/src/compile-elm.js | 6 +++++- generator/template/gitignore | 1 - 6 files changed, 5 insertions(+), 10 deletions(-) diff --git a/examples/docs/.gitignore b/examples/docs/.gitignore index 41fa1c01..4fe1d6c5 100644 --- a/examples/docs/.gitignore +++ b/examples/docs/.gitignore @@ -4,5 +4,3 @@ dist/ .cache/ .elm-pages/ functions/render/elm-pages-cli.js -browser-elm.js - diff --git a/examples/repos/.gitignore b/examples/repos/.gitignore index 41fa1c01..4fe1d6c5 100644 --- a/examples/repos/.gitignore +++ b/examples/repos/.gitignore @@ -4,5 +4,3 @@ dist/ .cache/ .elm-pages/ functions/render/elm-pages-cli.js -browser-elm.js - diff --git a/examples/routing/.gitignore b/examples/routing/.gitignore index 41fa1c01..4fe1d6c5 100644 --- a/examples/routing/.gitignore +++ b/examples/routing/.gitignore @@ -4,5 +4,3 @@ dist/ .cache/ .elm-pages/ functions/render/elm-pages-cli.js -browser-elm.js - diff --git a/examples/slides/.gitignore b/examples/slides/.gitignore index 41fa1c01..4fe1d6c5 100644 --- a/examples/slides/.gitignore +++ b/examples/slides/.gitignore @@ -4,5 +4,3 @@ dist/ .cache/ .elm-pages/ functions/render/elm-pages-cli.js -browser-elm.js - diff --git a/generator/src/compile-elm.js b/generator/src/compile-elm.js index 97dd8e19..9ec4c025 100644 --- a/generator/src/compile-elm.js +++ b/generator/src/compile-elm.js @@ -4,7 +4,11 @@ const path = require("path"); const kleur = require("kleur"); const debug = true; const { inject } = require("elm-hot"); -const pathToClientElm = path.join(process.cwd(), "browser-elm.js"); +const pathToClientElm = path.join( + process.cwd(), + "elm-stuff/elm-pages/", + "browser-elm.js" +); async function spawnElmMake(elmEntrypointPath, outputPath, cwd) { const fullOutputPath = cwd ? path.join(cwd, outputPath) : outputPath; diff --git a/generator/template/gitignore b/generator/template/gitignore index b0371f83..289e75e1 100644 --- a/generator/template/gitignore +++ b/generator/template/gitignore @@ -3,4 +3,3 @@ elm-stuff/ dist/ .elm-pages/ functions/render/elm-pages-cli.js -browser-elm.js