From ec4924f6780689798ee91bad7ebdb4b792acd9d0 Mon Sep 17 00:00:00 2001 From: Andrew Radford Date: Fri, 14 Oct 2016 14:34:34 +0100 Subject: Change 'transpile' to 'compile' Since Elm is *mostly* referred to as a compiler - including on the Elm homepage --- README.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 3b1030e..6977f60 100644 --- a/README.md +++ b/README.md @@ -125,7 +125,7 @@ Glorious. Now for the fun part. Here's how this goes when electron isn't in the picture. - write some elm code -- run `elm make Main.elm --output bundle.js` which transpiles the elm code into javascript +- run `elm make Main.elm --output bundle.js` which compiles the elm code into javascript - import bundle.js into javascript and embed it into a div in your html. That's still the general flow. Let's do this for real. @@ -177,7 +177,7 @@ Edit the index.html file to import the new bundle.js file and embed it into a di ``` Here you are grabbing the container div and embedding the javascript code in there. Elm automatically -creates the Main.embed function during transpilation. +creates the Main.embed function during compilation. A few more housekeeping items before we see this in action. @@ -194,7 +194,7 @@ to point to the location of your elm files. Run `electron main.js` and you'll see "Hello Electron. I'm Elm." This setup is all you need to build electron apps in Elm. However, you'll be missing out on some of the -latest and greatest web dev tools like hot reloading and automatic transpilation. That's where webpack +latest and greatest web dev tools like hot reloading and automatic compilation. That's where webpack comes in. # Webpack @@ -289,7 +289,7 @@ module.exports = { } ``` -The elm loader is going to transpile the .elm files into .js before webpack does its bundling magic. +The elm loader is going to compile the .elm files into .js before webpack does its bundling magic. Under the hood webpack uses *elm make* just like we did above. We could skip using the loader if we wanted to manually make the elm files every time, but webpack automates it for us now. -- cgit v1.2.3