Skip to content
This repository has been archived by the owner on Aug 19, 2019. It is now read-only.

start-runner/less

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

start-less

npm travis coverage deps gitter

Less task for Start.

Install

npm i -S start-less

Usage

import start from 'start';
import reporter from 'start-pretty-reporter';
import files from 'start-files';
import clean from 'start-clean';
import read from 'start-read';
import less from 'start-less';
import rename from 'start-rename';
import write from 'start-write';

export function build() {
    return start(reporter())(
        files('build/'),
        clean(),
        files('lib/**/*.less'),
        read(),
        less({ sourceMap: true }),
        rename(file => file.replace(/\.less$/, '.css')),
        write('build/')
    );
}

Task is rely on [{ path, data, map }] input and provide the same, see documentation for details.

Arguments

less(options)