Git Product home page Git Product logo

es6-lib-seed's Introduction

es6-lib-seed

This is a simple seed project for an ES6 library. You could also use it as an ES2015/ES6 scratchpad.

Disclaimer: This is my first Webpack project, so I am still learning. Suggestions welcome!

The goal of this repo is to get a simplest possible useful boilerplate project to be used to author libraries using ES2015, AKA ES6 (seriously, why did they have to name it after the year!)

This is also part of a two repo exploration of an ES6 ecosystem, check out es6-web-app-seed which is a simple web app that depends on this library.

If you have suggestions that are in the spirit of "keep it simple" please submit a pull request.

Setup

  • Clone the repo
  • Install or otherwise make available Node 5.11.0 (others will probably work, I use nodenv to avoid system installs)
  • cd into the project
  • run npm install

Testing and Development

  • npm test will run the jasmine specs
  • npm run build will build to the lib folder
  • npm run repl will get you into the groovy babel-node REPL, with the ES6 polyfill in scope.

Thanks to the babel test helper, jasmine is automatically transpiling the source code. However, in this simplest format, the source code can only be run through a babel transpiler, so you can't debug using the node cli directly. Since this is a library, I am NOT using babel-register to hook into require nor requiring the polyfill, so TDD is your most convenient way to work or play.

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.