Skip to content

Instantly share code, notes, and snippets.

@Chadtech
Created June 21, 2018 22:44
Show Gist options
  • Save Chadtech/db50be1fa018ffea60e78777e06536d8 to your computer and use it in GitHub Desktop.
Save Chadtech/db50be1fa018ffea60e78777e06536d8 to your computer and use it in GitHub Desktop.
var util = require("gulp-util");
var cp = require("child_process");
var paths = {
public: "./public",
mainElm: "./src/Main.elm",
};
function makeElm() {
util.log(util.colors.cyan("Elm"), "starting");
cp.spawn("elm-make", [
paths.mainElm,
"--warn",
"--output",
paths.public + "/elm.js",
"--yes"
], {
stdio: 'inherit'
}).on("close", function(code) {
util.log(util.colors.cyan("Elm"), "closed");
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment