Giter VIP home page Giter VIP logo

GulpKit Logo

Abstraction for front-end automation.

GulpKit aims to match the simplicity of CodeKit with the power of NPM and Gulp packages. In a matter of minutes, you can get setup with a highly configurable gulpfile that compiles your front-end site(s) and watches for changes.

Travis npm npm npm Join the chat at https://gitter.im/GulpKit/GulpKit

Install

npm i gulpkit

Creating a gulpfile

var GulpKit = require('GulpKit');

GulpKit(function(kit) {
    // tasks
});

Tasks

scss

Compile sass files, autoprefix vendor prefixes, combines media queries and concat/minify CSS with sourcemaps.

kit.scss({
    source: './scss/app.scss',
    output: './css/style.css'
});

js

Combine Javascript files, run JSHint and uglify with sourcemaps.

kit.js({
    source: './js/main.js',
    output: './build/script.js'
});

browserSync

Browsersync makes developing and testing faster by synchronising code changes and interactions like clicks, scrolls and form inputs across multiple devices.

All output from tasks are added to the list of files that Browsersync will watch and refresh connected browsers on changes.

kit.browserSync({
    proxy: 'yourapp.local'
});

Extending GulpKit

If the options in config aren't enough or you need extra functionality, you can extend GulpKit and make a custom task.

GulpKit.extend('custom', function(options) {

    return new GulpKit.Task('custom', options, function() {
        // return a gulp stream
    })
    .watch('path/to/watch')
    .ignore('path/to/ignore');

});

Credit

GulpKit's Projects

gulpkit icon gulpkit

🚩 Abstraction for front-end automation

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.