GithubHelp home page GithubHelp logo

flexbox / babel-exercise Goto Github PK

View Code? Open in Web Editor NEW

This project forked from reactgraphqlacademy/babel-exercise

0.0 3.0 0.0 49 KB

This exercise is part of the training provided by https://leanjs.com

JavaScript 100.00%

babel-exercise's Introduction

Babel exercise

The goal of this exercise is to understand some basics of Babel.

Get started

If you have npm: git clone https://github.com/leanjscom/babel-exercise.git && cd babel-exercise && npm install

Exercise

1- Run this command node index.js and you'll see an error. Where is the problem?

2- Run this command npm install --save-dev babel-cli babel-preset-es2015

3- You should configure babel using the presets in the .babelrc file. Let's add the following presets: { "presets": ["es2015"] }

4- If this is working you should be able to see the transpiled code by running: npm run babel

5- Now you can use the -o flag to output this into a file: npm run babel:save

6- Now you should be able to run the transpiled file by running: node transpiled_index.js

7- More questions? Don't forget to check out the docs, in particular: http://babeljs.io/docs/usage/cli/

babel-exercise's People

Contributors

adzz avatar alexlobera avatar flexbox avatar ric9176 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.