0.3.0 • Published 7 years ago

start-read v0.3.0

Weekly downloads
5
License
MIT
Repository
github
Last release
7 years ago

start-read

npm linux build windows build coverage deps

Read task for Start.

Install

npm install --save-dev start-read
# or
yarn add --dev start-read

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 babel from 'start-babel';
import write from 'start-write';

export const build = () => start(reporter())(
  files('build/'),
  clean(),
  files('lib/**/*.js'),
  read(),
  babel(),
  write('build/')
);

This task relies on array of files and provides [{ path, data, map }] output, see documentation for details.

Arguments

read(encoding)

  • encodingfs.readFile encoding option, utf-8 by default