Join Eve Porcello for an in-depth discussion in this video Transpiling ES6 with Babel and babel-node, part of Up and Running with ECMAScript 6.
- In a real project, you're probably going to want…to use the real Babel.…To do this, we're going to install Babel with NPM.…Then we're going to use babel-node.…I first want to open my index.html file,…and we're going to make a few adjustments.…First, I'll get rid of the cdn link here on line four.…And then I'm going to take my nameBuilder function,…including its function call,…and I'm going to copy and paste this…into a new file called script.js.…
So we'll just go ahead and save this…as script.js,…and we'll clean it up a little bit too.…Okay, so now we need to install…a few things using NPM.…NPM is the package manager…that comes with Node.js.…If you don't have Node installed already,…you can go to the nodejs.org website…and follow the installation instructions.…Once we do that, we'll open up our terminal window.…Here we're going to type npm install…- g babel.…
So -g is going to install this globally.…Without the -g, we'll install this locally.…If you're using a PC, you can run your command line…as an administrator.…
- What is ECMAScript?
- Transpiling ECMAScript with Babel and Babel-node
- Using the let and const keywords
- Creating strings with template strings
- Enhancing object literals
- Working with ES6 classes and class inheritance
Skill Level Beginner
Learn React.js: The Basics (2015)with Eve Porcello1h 32m Beginner
Up and Running with AngularJS 1with Ray Villalobos1h 20m Intermediate
Building a Polling App with Socket IO and React.jswith Alex Banks3h 56m Intermediate
1. What Is ECMAScript 6 (ES6)?
2. Transpiling ES6
3. ES6 Syntax
4. ES6 Functions & Objects
5. ES6 Classes
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.