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

start-runner/read

Repository files navigation

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