Coder Social home page Coder Social logo

angular-es6-bookshelf-modules's Introduction

##Running the Code

This is the code accompanying the following article: Transpiling ES6 Modules to AMD & CommonJS Using Babel & Gulp

Before running the sample, make sure you have Node.js installed and that the Gulp package is installed globally on your system.

After cloning the sample, open a command prompt and run the following commands to install the dependencies:

  • npm install (to install node.js dependencies)
  • bower install (to install front-end packages)

The sample is an Angular application written in ES6. It uses Babel to transpile the code to ES5. It converts the modules into either AMD or, CommonJS depending on the Gulp task you choose to run.

  • gulp amd (Converts the code to ES5 with AMD style modules and starts Node.js server)
  • gulp commonjs (Converts the code to ES5 with CommonJS style modules and starts Node.js server)

After running one of the above commands, you will have to uncomment/comment a section in the index.html file. I have put comments in that file to make it easy to identify the sections. Once you made the change, open a browser and navigate to http://localhost:8000

angular-es6-bookshelf-modules's People

Contributors

rabi-innominds avatar sravikiran avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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.