Now that we’ve solved the primary problem of upload.js not working, it’s time to start looking at how the code in this file can be a little better organized. Fortunately, there are a few easy places to start – functions. The upload.js file has a handful of functions that are already self-contained. They receive all […]
What does it take to get Babel v6 up and running? And how would you go about upgrading from v5 with Grunt, to v6? In this episode, you’ll learn exactly that – how to upgrade Babel to v6 and keep your system running. Along the way, you’ll see a few potential problems that you may run into, some solutions, and how to fix the differences between Babel v5’s module exports vs v6.
The watchify command line takes the same basic parameters as the browserify command line. But in addition to bundling your code once, it will watch for file system changes and re-bundle your code automatically. In this episode, you’ll see how to use watchify with browserify, to automate the bundle step for your development environment, reducing the amount of manual effort that it takes to get your application ready for your browser.
Reusing code is an important idea in software development. It saves time and effort, and lets us compose systems faster than if we had to rebuild everything from scratch every time. In this episode, you’ll learn how to build and deploy reusable modules of NodeJS code, using NPM.
Modules are an important concept in NodeJS. So important, in fact, that every .js file you create is a module – or has the potential to be one, at least. In this episode, you’ll learn the basics of the NodeJS module system and how to export functionality from one file and import it in to another.