Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

start-read

start-runner49MIT0.3.0

Read task for Start

start, start-task

readme

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