🚀 Big News:Socket Has Acquired Secure Annex.Learn More →
Socket
Book a DemoSign in
Socket

grunt-borschik

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

grunt-borschik

extendable builder for text-based file formats

latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

grunt-borschik

Extendable builder for text-based file formats

Getting Started

This plugin requires Grunt ~0.4.1

If you haven't used Grunt before, be sure to check out the Getting Started guide, as it explains how to create a Gruntfile as well as install and use Grunt plugins. Once you're familiar with that process, you may install this plugin with this command:

npm install grunt-borschik --save-dev

Once the plugin has been installed, it may be enabled inside your Gruntfile with this line of JavaScript:

grunt.loadNpmTasks('grunt-borschik');

The "borschik" task

Overview

In your project's Gruntfile, add a section named borschik to the data object passed into grunt.initConfig().

Example of use

grunt.initConfig({
    borschik: {
        firefox: {
            src: ['pages-desktop/common/common.css'],
            options: {
                minimize: false
            }
        },
        ie: {
            src: ['pages-desktop/common/common.ie**.css'],
            options: {
                minimize: true,
                tech: './techs/css-fast',
                beforeBuild: function() {
                    console.log('it will be in console before all imports');
                },
                afterBuild: function(err) {
                    // err can be Error or null
                    !err && console.log('it will be in consoled if succeed');
                }
            }
        },
        chrome: {
            src: ['pages-desktop/common/common.ch.css'],
            dest: ['pages-desktop/common/common.min.css'],
            options: {
                minimize: false
            }
        }
    }
})

Keywords

borschik

FAQs

Package last updated on 06 May 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts