Code Monkey home page Code Monkey logo

grunt-vs-gulp's Introduction

GRUNT vs GULP

This project includes functional Gulp and Grunt setups for a production ready Angular-Typescript project.

grunt vs gult

The Typescript project is based on DanWahlin/AngularIn20TypeScript


Notes about each setup:

  • Both tasks manager generate the same assets.
  • Each task is written on it's own file. I use plugins that automatically load all tasks from a tasks directory. grunt-config-dir & gulp-load-plugins
  • Generated CSS:
    • style.css => Using Less preprocesor, Autoprefixer and css minification. Import are declared within the less files.
  • Generated JAVASCRIPT:
    • libs.js => required libraries and dependencies for the app.
    • app.js => the Angular application, compiled from typescript.
    • views.js => all angulart templates are compiled in to a single file.

Conclusions on Grunt vs Gulp

  • Gulp better performance is a Myth. My personal opinion is that there is no performance diferrence, even though gulp task seems to finish faster, it takes almost the same time or more to refresh the browser. Performance depends a lot on how the watch task if configured, it can compile all project or jsut the relatred task.
  • SourceMaps works fine in Gulp, while in Grunt is almost impossible to produce SourceMaps that actually work.
  • Be extremely carefull with grunt async tasks execution. If you want to clean a directory, be sure do it syncronously, before any tother task is executed, or you might clean the directory after other tasks have finished.
  • Gulp watch may stop after some plugin fails.

grunt-vs-gulp's People

Contributors

m-jerez avatar

Watchers

 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.