gulpkit

0.1.1 • Public • Published

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

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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.1
    0
    • latest

Version History

Package Sidebar

Install

npm i gulpkit

Weekly Downloads

0

Version

0.1.1

License

MIT

Last publish

Collaborators

  • danbovey