How to transpile
Running Gulp Tasks
The Task Runner Explorer is a shortcut to Gulp and Grunt tasks that you can use in Visual Studio to run the tasks we have configured. Double-clicking on a task with execute it. By default we are provided with clean and min tasks. Clean tasks usually will remove and of the already modified files from the deploy directory. Lets look at the code in the gulpfile to see how this works.
Looking at line 29, we can see that the clean task is made of two other tasks. Clean:js and clean:css are defined above the clean task and are calling rimraf on paths and passing a callback. Rimraf is a node module that will simply delete whatever path you hand it. Looking further up in the gulpfile you can see were the paths are defined and what directories are being cleared out.
So much to do, so little time
As you can see, we didn’t really accomplish anything this post. We looked at a few options and started to make a few decisions. That is how this project will go some weeks. There are times in any software project where progress will slow to a halt because a decision needs to be made or because some boiler plate needs to be written. In this project, the decision of which transpliler to use and which module system to use are fairly significant. So, I want to make sure we spend a little bit of time choosing something that will fit the needs that we can foresee. Next time we will choose our module system and start writing our first ES2015 code.