GithubHelp home page GithubHelp logo

lab1_grunt_shootout's Introduction

The Lab: The Great Grunt Shootout

This repository contains the source code for the above Lab episode of James Shore's Let's Code: Test-Driven JavaScript screencast. Let's Code: Test-Driven JavaScript is a screencast series focused on rigorous, professional JavaScript development.

This episode was focused on comparing Grunt and Jake, two automated build tools for JavaScript. Grunt was evaluated in comparison to Jake by reimplementing the Automatopia project's primary build script in Grunt.

To evaluate the results yourself, compare Gruntfile.js to Jakefile.js. For more information, watch the screencast.

Update, 11 January 2014: Added a Gulp implementation of the build. See Gulpfile.js and compare it to Gruntfile.js and Jakefile.js.

Building and Testing

Before building for the first time:

  1. Install Node.js.
  2. Download and unzip the source code into a convenient directory.
  3. All commands must run from the root of the source tree: cd <directory>.
  4. To cause the build to fail unless certain browsers are tested, edit REQUIRED_BROWSERS at the top of Jakefile.js and in requiredBrowsers config section of Gruntfile.js. Otherwise, comment those lines out.

To build (and test):

  1. Run ./jake.sh karma (Unix/Mac) or jake karma (Windows) to start the Karma server.
  2. Start the browsers you want to test and point each one at http://localhost:8080.
  3. Run ./jake.sh (Unix/Mac) or jake (Windows) every time you want to build and test.

Use ./grunt.sh (or grunt on Windows) instead of ./jake.sh (or jake) to use Grunt instead of Jake. Use ./gulp.sh (or gulp) to use Gulp.

License

MIT License. See LICENSE.TXT.

lab1_grunt_shootout's People

Contributors

jamesshore avatar

Watchers

Massimiliano Filacchioni 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.